Media query css works just for seconds - html

I'm trying to use media queries in order to adapt image plus text to cellphone cases.
This is what I've tried and it was working properly, but not anymore:
HTML:
<section class="section">
<p id="title">Missão</p>
<div class="flex-container">
<div id="missao" class="col-3"><img src="js/missao.jpg"></div>
<div class="col-9" id="textoMissao">
<h3>Simplificar a vida nas organizações, aumentado
a criação de valor, é a nossa grande missão.</h3>
<p>Desafiar o desconhecido. Explorar possibilidades. Transpor barreiras.
Inovar. São estas as motivações que desde 1993 nos conduzem na busca
de soluções de gestão inovadoras que simplificam a vida nas organizações.</p>
<p>A paixão pela inovação na gestão empresarial está no ADN da PRIMAVERA. Um
entusiasmo contagiante que colocamos ao serviço das organizações,
disponibilizando-lhes um leque crescente de soluções de gestão que agilizam as
operações e aumenta a rentabilidade do negócio.
</p>
<p>Acreditamos na força das ideias. Auxiliamos a sua concretização. Impulsionamos
os resultados. Defendemos que com a tecnologia certa, crescer é o caminho. Do
mais pequeno micronegócio a uma grande multinacional, disponibilizamos soluções
ajustadas, ágeis e funcionais que dão mais força ao negócio.
</p>
» Conheça a nossa brochura institucional
</div>
</div>
<br><br><p class="separador"></p>
</section>
CSS:
#media only screen and (max-width: 768px){
#missao{
display:block;
align-items: center;
margin-right: auto;
margin-left: auto;
}
.flex-container{
flex-direction: column;
padding-left: 0px;
padding-right: 0px;
}
#textoMissao{
padding-left: 0px;
justify-content: space-around;
}
}
complete css:
body{
font-family: 'Roboto';
}
.topBar {
height: 80px;
background-color: #f5f5f5;
}
img{
padding-top: 20px;;
}
.logo{
float:left;
padding-left:45px;
}
.login{
position:relative;
float:right;
color:#1da2dc;
padding-top: 30px;
padding-right: 40px;
}
.lupa{
position:absolute;
top:18px;
right: 110px;
}
.lupa:hover{
position:absolute;
top:20px;
}
.login:hover{
color:#a4a3a3;
}
.pesquisa{
position: absolute;
top:30px;
right:150px;
background: transparent;
border:none;
width:0px;
height: 30px;
transition: all 0.5s;
}
.pesquisaClick{
width:300px;
background-color: white;
outline:none;
border:1px solid #aaa;
}
.banner{
position:relative;
height:500px;
background-image: url("/js/fundoBanner.jpg");
background-repeat: no-repeat;
background-position: center;
background-position-y: 0%;
background-size: 98% 88%;
}
.pc{
float: right;
position:absolute;
right: 40px;
bottom: 40px;
height: 380px;
}
.p1{
position:absolute;
left:60px;
top:40px;
margin-top: 0px;
font-size: 48px;
font-weight: bold;
color:white;
}
.p2{
position:absolute;
top:90px;
left:60px;
font-size: 30px;
color:#ccc;
}
.p3{
position: absolute;
top:150px;
left:60px;
font-size:20px;
font-style: italic;
color: white;
}
.saberMais{
position: absolute;
top: 250px;
left:60px;
padding: 8px 20px;
color:white;
text-decoration: none;
font-weight: bold;
background-color: #f16248;
border-radius: 20px;
}
.saberMais:hover{
background-color: #c8c8c8;
color: #252525;
}
.flex-container{
display:flex;
padding-left: 100px;
padding-right: 100px;
align-items: flex-start;
justify-content: space-around 10px;
}
.flex-container > div > p{
color:#7d7d7d;
}
h3{
color: #252525;
}
#title{
font-size: 250%;
color: #3c368c;
text-align: center;
}
section{
margin-left: 150px;
margin-right: 150px;
}
.separador{
border: 1px solid #7d7d7d;
}
#brochura{
font-size: 120%;
color: #0075be;
text-decoration: none;
font-weight: bold;
}
#textoMissao{
padding-left: 50px;
}
#brochura:hover{
text-decoration: underline;
}
.people{
margin:40px;
padding:40px;
}
.flex-container2{
display:flex;
justify-content: center;
}
.flex-container2 > div{
margin-right:15px;
margin-left: 15px;
}
.flex-container2 > div > img{
border-radius: 50%;
position: relative;
padding: 0px;
}
.flex-container2 > div > img:hover{
border-radius: 0%;
}
.titulo{
font-size: 42px;
font-weight: bold;
}
.subtitulo{
font-size: 35px;
font-weight: bold;
}
.texto{
font-size: 26px;
}
#t0{
color:#f27d29;
}
#t1{
color:#153c85;
}
#t2{
color:#ebc711;
}
#t3{
color:#153c85;
}
#t4{
color:#ff701e;
}
#s0, #txt0{
color:#153c85;
}
#media only screen and (max-width: 768px){
#missao{
display:block;
align-items: center;
margin-right: auto;
margin-left: auto;
}
.flex-container{
flex-direction: column;
padding-left: 0px;
padding-right: 0px;
}
#textoMissao{
padding-left: 0px;
justify-content: space-around;
}
}
.carousel-caption{
top:60%;
transform: translateY(-50%);
bottom:initial;
}
.carousel-fade .carousel-item {
opacity: 0;
transition-duration: .6s;
transition-property: opacity;
}
.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
opacity: 1;
}
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
opacity: 0;
}
.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
transform: translateX(0);
transform: translate3d(0, 0, 0);
}
footer{
margin-top: 50px;
padding-top: 30px;
background-color: #ebebeb;
}
.flex-container3{
display:flex;
text-align: center;
justify-content: space-around;
}
When I refresh the page, this configuration remains for 1/2 seconds (photo 1) but after that this configuration disappears (photo 2).
Photo1
Photo2
Any idea what it can be?

Move all the modification on #missao, .flex-container or #textoMissao which are outside of your current query inside another query for bigger screen sizes, this way they won't overwrite them.
#media only screen and (min-width: 769px){
#textoMissao{
padding-left: 50px;
}
.flex-container{
display:flex;
padding-left: 100px;
padding-right: 100px;
align-items: flex-start;
justify-content: space-around 10px;
}
}
Complete CSS:
body{
font-family: 'Roboto';
}
.topBar {
height: 80px;
background-color: #f5f5f5;
}
img{
padding-top: 20px;;
}
.logo{
float:left;
padding-left:45px;
}
.login{
position:relative;
float:right;
color:#1da2dc;
padding-top: 30px;
padding-right: 40px;
}
.lupa{
position:absolute;
top:18px;
right: 110px;
}
.lupa:hover{
position:absolute;
top:20px;
}
.login:hover{
color:#a4a3a3;
}
.pesquisa{
position: absolute;
top:30px;
right:150px;
background: transparent;
border:none;
width:0px;
height: 30px;
transition: all 0.5s;
}
.pesquisaClick{
width:300px;
background-color: white;
outline:none;
border:1px solid #aaa;
}
.banner{
position:relative;
height:500px;
background-image: url("/js/fundoBanner.jpg");
background-repeat: no-repeat;
background-position: center;
background-position-y: 0%;
background-size: 98% 88%;
}
.pc{
float: right;
position:absolute;
right: 40px;
bottom: 40px;
height: 380px;
}
.p1{
position:absolute;
left:60px;
top:40px;
margin-top: 0px;
font-size: 48px;
font-weight: bold;
color:white;
}
.p2{
position:absolute;
top:90px;
left:60px;
font-size: 30px;
color:#ccc;
}
.p3{
position: absolute;
top:150px;
left:60px;
font-size:20px;
font-style: italic;
color: white;
}
.saberMais{
position: absolute;
top: 250px;
left:60px;
padding: 8px 20px;
color:white;
text-decoration: none;
font-weight: bold;
background-color: #f16248;
border-radius: 20px;
}
.saberMais:hover{
background-color: #c8c8c8;
color: #252525;
}
.flex-container > div > p{
color:#7d7d7d;
}
h3{
color: #252525;
}
#title{
font-size: 250%;
color: #3c368c;
text-align: center;
}
section{
margin-left: 150px;
margin-right: 150px;
}
.separador{
border: 1px solid #7d7d7d;
}
#brochura{
font-size: 120%;
color: #0075be;
text-decoration: none;
font-weight: bold;
}
#brochura:hover{
text-decoration: underline;
}
.people{
margin:40px;
padding:40px;
}
.flex-container2{
display:flex;
justify-content: center;
}
.flex-container2 > div{
margin-right:15px;
margin-left: 15px;
}
.flex-container2 > div > img{
border-radius: 50%;
position: relative;
padding: 0px;
}
.flex-container2 > div > img:hover{
border-radius: 0%;
}
.titulo{
font-size: 42px;
font-weight: bold;
}
.subtitulo{
font-size: 35px;
font-weight: bold;
}
.texto{
font-size: 26px;
}
#t0{
color:#f27d29;
}
#t1{
color:#153c85;
}
#t2{
color:#ebc711;
}
#t3{
color:#153c85;
}
#t4{
color:#ff701e;
}
#s0, #txt0{
color:#153c85;
}
#media only screen and (min-width: 769px){
#textoMissao{
padding-left: 50px;
}
.flex-container{
display:flex;
padding-left: 100px;
padding-right: 100px;
align-items: flex-start;
justify-content: space-around 10px;
}
}
#media only screen and (max-width: 768px){
#missao{
display:block;
align-items: center;
margin-right: auto;
margin-left: auto;
}
.flex-container{
flex-direction: column;
padding-left: 0px;
padding-right: 0px;
}
#textoMissao{
padding-left: 0px;
justify-content: space-around;
}
}
.carousel-caption{
top:60%;
transform: translateY(-50%);
bottom:initial;
}
.carousel-fade .carousel-item {
opacity: 0;
transition-duration: .6s;
transition-property: opacity;
}
.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
opacity: 1;
}
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
opacity: 0;
}
.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
transform: translateX(0);
transform: translate3d(0, 0, 0);
}
footer{
margin-top: 50px;
padding-top: 30px;
background-color: #ebebeb;
}
.flex-container3{
display:flex;
text-align: center;
justify-content: space-around;
}

Related

Property: text-decoration-skip-ink does not exist: none

When I check my website with the W3C CSS Validator I get this errors:
Property text-decoration-skip-ink does not exist: none.
Property backdrop-filter does not exist: blur(10px).
I heard that this is an error from W3C.
Does this affect my website in the future? If so, How can I solve the errors?
This is my whole css:
#font-face{
font-family: 'montserrat';
src: url(../fonts/Montserrat-Light.ttf);
font-style: normal;
font-weight: 100;
}
#font-face{
font-family: 'playfair';
src: url(../fonts/PlayfairDisplay-Medium.ttf);
font-style: normal;
font-weight: 100;
}
html{
scroll-behavior: smooth;
text-decoration-skip-ink: none;
}
*{
padding:0;
margin:0;
box-sizing: border-box;
font-family: montserrat;
}
body{
background-color: white;
}
/* LOADER */
.preload{
position: fixed;
top:0;
width: 100%;
height: 100vh;
background: black;
display: flex;
justify-content: center;
align-items: center;
transition: 0.5s ease;
z-index:9999;
}
.loader {
border: 5px solid #ffffff;
border-top: 5px solid black;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 2s linear infinite;
}
#keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.preload-finish{
opacity:0;
pointer-events: none;
}
/* BANNER & NAV */
.banner{
margin:0px;
position: relative;
width: 100%;
height: 100vh;
background-size:cover;
background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/pozabackground-home2.jpg);
background-position: center;
box-shadow:1px 2px 4px 0px #00000075 !important;
background-attachment: fixed;
}
.navigatie{
background-color:transparent;
width:100%;
position:fixed;
z-index: 99;
margin:0px;
padding:0px;
}
.logo {
float: left;
padding: 8px;
margin-left: 40px;
margin-top: 8px;
}
.navbar-brand{
color:white !important;
}
.navbar-brand img{
width: auto;
height: 100px;
margin:-32px 0px -25px 0px;
}
nav ul {
float: right;
list-style-type: none;
padding-top:5px;
margin-right:20px;
}
nav ul li {
float: left;
}
nav ul li:not(:first-child) {
margin-left: 48px;
}
nav ul li:last-child {
margin-right: 24px;
}
nav ul li a {
display: inline-block;
outline: none;
color: #fff;
text-transform: uppercase;
text-decoration: none;
font-size: 13px;
letter-spacing: 1.1px;
font-weight: 600;
}
nav ul li a:hover{
color:#fff;
text-decoration: underline;
}
/* FUNDAL JS */
.fundal{
background:#104f47 !important;
box-shadow:1px 2px 4px 0px #00000075 !important;
}
.fundal .nav-btn {
background-color:#104f47;
border-radius: 50%;
box-shadow:1px 2px 4px 0px #00000075;
}
.fundal .nav-btn i{
background: #fff;
border-radius: 2px;
}
#nav:checked + .nav-btn {
transform: rotate(45deg);
background-color: #104f47;
}
#nav:checked + .nav-btn i {
background: #fff;
transition: transform 0.2s ease;
}
#nav:checked + .nav-btn i:nth-child(1) {
transform: translateY(6px) rotate(180deg);
}
#nav:checked + .nav-btn i:nth-child(2) {
opacity: 0;
}
#nav:checked + .nav-btn i:nth-child(3) {
transform: translateY(-6px) rotate(90deg);
}
#nav:checked ~ .nav-wrapper {
z-index: 9990;
display:block
}
#nav:checked ~ .nav-wrapper ul li a {
opacity: 1;
transform: translateX(0);
}
.hidden {
display: none;
}
/* MEDIA SCREEN NAVBAR PTR TLF */
#media only screen and (max-width: 991px){
.navigatie{
background-color:transparent;
width:100%;
position: absolute;;
z-index: 99;
margin:0px;
padding:0px;
}
.navbar-brand img{
height:100px;
margin:-20px 0px 0px 0px;
}
.nav-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background: #fff;
display:none;
transition: all 0.2s ease;
}
.nav-wrapper ul {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
}
.nav-wrapper ul li {
display: block;
float: none;
width: 100%;
text-align: center;
padding-top:10px;
margin-bottom: 10px;
}
.nav-wrapper ul li:not(:first-child) {
margin-left: 0;
}
.nav-wrapper ul li a {
padding: 10px 24px;
opacity: 0;
color: #000;
font-size: 14px;
font-weight: 600;
letter-spacing: 1.2px;
transform: translateX(-20px);
transition: all 0.2s ease;
}
.nav-btn {
position: fixed;
right: 30px;
top: 28px;
display: block;
width: 47px;
height: 46px;
cursor: pointer;
z-index: 9999;
border-radius: 50%;
}
.nav-btn i {
display: block;
width: 20px;
height: 2px;
background: #fff;
border-radius: 2px;
margin-left: 14px;
}
.nav-btn i:nth-child(1) {
margin-top: 16px;
}
.nav-btn i:nth-child(2) {
margin-top: 4px;
opacity: 1;
}
.nav-btn i:nth-child(3) {
margin-top: 4px;
}
}
/* SCRIS DE LA BANNER */
.title{
position: absolute;
top:47%;
left:35%;
text-align: left;
transform: translate(-50%,-50%);
}
.title h1{
color:#fff;
font-family: playfair;
font-size:50px;
color:#f5f6f8;
padding-bottom: 20px;
letter-spacing:3px;
}
.title .button a{
display: inline-block;
font-size:12px;
text-transform: uppercase;
text-align: center;
padding:13px 20px;
border:none;
color:white;
font-family: montserrat;
text-decoration: none;
transition: 0.6s ease;
background-color:#104f47;
box-shadow:1px 2px 4px 0px #00000075;
outline:none;
border-radius: 5px;
}
.title .button a:hover{
background-color:#104f47;
color:white;
}
/* DESPRE NOI */
.About-head-section{
padding-top:0px;
padding-bottom:50px;
}
.servicii{
padding-top:130px;
padding-bottom:30px;
text-align: center;
}
.About-head-section .servicii h1{
margin-top: -45px;
padding-bottom: 15px;
font-size: 30px;
font-family: montserrat;
font-weight: 700;
text-transform: uppercase;
text-align: center;
color:#072523;
}
.About-head-section .servicii h1::after{
content:'';
background:#148071;
display:block;
width: 320px;
height: 3px;
margin:10px auto;
margin-left:-50px;
}
.servicii p{
text-align: left;
padding-bottom:20px;
}
.buton-despre{
text-align: center;
}
.buton-despre a{
background-color: white;
border: 1px solid rgb(87, 87, 87);
color: rgb(24, 24, 24);
padding:10px 25px;
display: inline-block;
font-family: montserrat;
font-weight: normal;
text-decoration: none;
font-size:12px;
outline:none;
text-transform: uppercase;
}
.buton-despre a:hover{
background-color:rgba(241, 241, 241, 0.678);
}
.servicii img{
margin-top:20px;
width: 420px;
}
/* DE CE NOI */
.curved{
margin:0px;
padding-top:5px;
padding-bottom:50px;
clip-path:polygon(0 0, 100% 0, 100% 100%, 0 85%);
background:#b1b1b12c;
}
.details{
text-align:center;
color:rgb(24, 24, 24);
padding-top:50px;
padding-bottom:110px;
}
.details .row{
margin-right:-50px;
}
.details .container {
padding:0px;
}
.details h1{
margin:0px;
font-size: 30px;
font-family: montserrat;
font-weight: 700;
text-transform: uppercase;
padding-bottom:30px;
color:#072523;
}
.details h1::after{
content:'';
background:#148071;
display:block;
width: 875px;
height: 3px;
margin:10px auto;
margin-left:-50px;
}
.details .interior{
text-align: left;
padding-top:10px;
margin-bottom:10px;
margin-right:10px;
}
.details .number span{
color:#072523;
font-size:35px;
font-weight: 700;
}
.details .number h2{
display: inline-block;
font-size:18px;
font-family: montserrat;
font-weight: bold;
text-transform: uppercase;
color:#072523;
}
.details p{
font-size:15px;
font-family: montserrat;
}
.details .coloana-scris{
padding-top:10px !important;
padding-left:30px;
}
.details .coloana-poza{
padding-top:35px;
}
.details .coloana-poza img{
background-repeat: no-repeat;
box-shadow: 0px 0px 5px 1px #bbbbbb;
}
/* SERVICII */
/* SERVICII */
/* features design */
/* boxes */
.explore-section{
margin:0;
padding:10px 10px 80px 10px;
padding-bottom:30px;
}
.explore-section .container{
/* flexbox style */
display:flex;
flex-direction: row;
justify-content: space-around;
flex-flow:wrap;
width: 100%;
}
.explore-section .container .box{
box-sizing: border-box;
margin:20px;
width: 320px;
box-shadow: 0px 0px 4px 1px #bbbbbb;
}
.explore-section .titlu h1{
padding-top:50px;
font-size: 30px;
font-family: montserrat;
font-weight: 700;
text-transform: uppercase;
padding-bottom:60px;
text-align: center;
color:#072523;
}
.explore-section .titlu h1:after{
content:'';
background:#148071;
display:block;
width: 720px;
height: 3px;
margin:10px auto;
}
.explore-section .container .box .scris{
padding:20px 20px 20px 10px;
}
.poza-servicii{
width: 100%;
}
.poza-servicii:hover{
opacity:0.8;
}
.poza-servicii h2{
padding-top:30px;
padding-bottom:20px;
letter-spacing: 1px;
font-family: montserrat;
text-transform: uppercase;
text-align: center;
color:white;
font-weight: 500;
font-size: 20px;
margin:10px;
}
.poza-servicii a{
text-decoration: none;
}
.buton-servicii{
text-align: center;
padding-top:0px;
padding-bottom:0px;
}
.buton-servicii a{
background-color: #104f47;
color: white;
border: none;
padding:10px 20px;
display: inline-block;
font-size:12px;
outline:none;
border-radius: 5px;
text-decoration: none;
text-transform: uppercase;
}
.buton-servicii::before{
content:'';
background:#104f47;
display:block;
width: 30px;
height: 3px;
margin:30px auto;
}
.buton-servicii a:hover{
background-color: #148071;
}
#media screen and (max-width:1200px){
.box{
width:20%;
}
#media screen and (max-width:600px){
.box{
width:65%;
}
}
}
/* TESTIMONIALS */
.testimonials{
background:#b1b1b12c;
padding-bottom:110px;
clip-path:polygon(0 0, 100% 15%, 100% 100%, 0 100%);
}
.testimonials-title h1{
padding-top:130px;
text-align: center;
font-size: 30px;
font-family: montserrat;
font-weight: 700;
text-transform: uppercase;
padding-bottom:30px;
color:#072523;
}
.testimonials .container{
margin:0 auto;
}
.testimonials .interior{
box-shadow: 0px 0px 4px 0.5px #bbbbbb;
padding:40px;
background:white;
margin-top:20px;
}
.testimonials .container .interior:hover{
background:#104f47;
}
.testimonials .interior p{
margin:0;
padding:0;
transition:0.5s;
font-family: montserrat;
padding-bottom: 15px;
}
.testimonials .interior h2{
margin:20px 0 0;
padding:0;
transition: 0.5s;
font-size:18px;
color:#104f47;
font-weight: 700;
line-height: 20px;
text-transform: uppercase;
}
.testimonials .container .interior h2 span{
font-weight: 600;
font-size:14px;
color:#afb8b7;
transition:0.5s;
}
.testimonials .container .interior:hover p,
.testimonials .container .interior:hover h2,
.testimonials .container .interior:hover h2 span,
.testimonials .container .interior:hover i{
color:#fff;
}
.testimonials .coloana i{
padding-bottom:15px;
font-size:40px;
transition:0.5s;
}
/* BACK TO TOP BUTTON */
#TopBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
font-size: 15px;
width: 40px;
height: 40px;
z-index: 99;
border: none;
outline: none;
background-color: #8dadac;
color: white;
cursor: pointer;
border-radius: 5px;
}
#TopBtn:hover {
opacity:0.8;
}
/* ------------------------------------------TELEFON - 991 ------------------------- */
/* MEDIA */
#media only screen and (max-width: 991px){
.banner{
background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/pozabackground-home2-991px.jpg);
background-attachment: scroll;
}
.title .button a{
padding: 10px 16px;
}
/* DESPRE NOI */
.button button{
font-size: 12px;
}
.buton-despre{
text-align: center;
}
.servicii{
padding-top:100px;
padding-bottom:30px;
text-align: center;
}
.servicii .poza img{
width: 430px;
padding-top:50px;
padding-bottom:10px;
}
.servicii p{
padding-bottom:20px;
}
/* DE CE NOI */
.curved{
clip-path:polygon(0 0, 100% 0, 100% 100%, 0 95%);
padding-bottom:20px;
}
.details{
padding-top:30px;
padding-bottom:40px;
}
.details h1::after{
content:'';
background:#148071;
display:block;
width: 500px;
height: 3px;
margin:10px auto;
margin-left:-50px;
}
.details .number h2{
font-size:18px;
padding-top:10px;
padding-bottom:10px;
text-align: left;
padding-left: 10px;
color:#148071;
}
.details .coloana-poza{
display:none;
}
/* SERVICII */
.explore-section .titlu h1:after{
width: 150px;
height: 3px;
margin:10px auto;
}
.explore-section{
margin:0;
padding:10px 10px 80px 10px;
padding-bottom:30px;
}
.explore-section .container{
/* flexbox style */
border-radius: 15px;
display:flex;
flex-direction: row;
justify-content: space-around;
flex-flow:wrap;
width: 100%;
}
.explore-section .container .box{
box-sizing: border-box;
margin:20px;
width: 300px;
border-radius:30px;
}
/* TESTIMONIALS */
.testimonials{
padding-bottom:80px;
clip-path:polygon(0 0, 100% 5%, 100% 100%, 0 100%);
}
}
#media only screen and (max-width: 400px){
/* DE CE NOI? */
.details .number i{
font-size:20px;
padding-right:5px;
}
.details .number h2{
font-size:14px;
padding-bottom:10px;
}
}
/* 700 ------------------------------------------------------------------- */
#media only screen and (max-width: 700px){
.title{
top:45%;
left:50%;
margin-right: -100px;
text-align: center;
}
.title h1{
padding-top:50px;
font-size:30px;
}
.title .button a{
font-size: 10px;
text-align: center;
padding:13px 20px;
margin-top:0px;
color:#fff;
}
}
/* 600 ------------------------------------------------------------------- */
#media only screen and (max-width: 600px) {
.navbar-brand img{
height:100px;
margin:-20px 0px 0px -20px;
}
.banner{
background-image: linear-gradient(to left, rgba(0,0,0,0.5),rgba(0, 0, 0, 0.7)), url(../img/pozabackground-home2-mobil.jpg);
}
.title h1{
font-size:30px;
text-align: center;
letter-spacing:2px;
}
.title .button a{
text-align: center;
padding:13px 20px;
margin-top:0px;
color:#fff;
font-size:13px
}
/* DESPRE NOI*/
.About-head-section{
padding-top:20px;
padding-bottom:30px;
}
.servicii{
padding-top:20px;
}
.About-head-section .servicii h1{
padding-top: 60px;
font-size: 23px;
padding-bottom: 20px;
text-align: left;
}
.About-head-section .servicii h1::after{
width: 150px;
height: 3px;
margin:10px auto;
margin-left:-50px;
}
.buton-despre{
text-align: center;
margin-bottom:0px;
}
.servicii .poza img{
width: 320px;
padding-bottom:10px;
}
/* DE CE NOI */
.curved{
margin:0px;
padding-top:30px;
}
.details{
padding-top:20px;
padding-bottom:50px;
padding-left:20px;
}
.details .row {
margin-right: -20px;
}
.details h1{
margin:0px 0px 0px 12px;
font-size: 23px;
padding-bottom: 5px;
text-align: left;
}
.details h1::after{
width: 150px;
height: 3px;
margin:10px auto;
margin-left:-50px;
}
.details .interior{
margin-bottom:25px;
text-align: left;
margin-right: 0px;
}
.details .number i{
font-size:30px;
padding-right:0px;
text-align: left;
}
.details .number h2{
font-size:18px;
padding-top:10px;
padding-bottom:10px;
text-align: left;
padding-left: 10px;
}
.details p{
padding-top:0px;
padding-left:0px;
font-size:15px;
padding-bottom:15px;
}
.details .coloana-scris {
padding-top: 10px !important;
padding-left: 10px;
}
/* SERVICII */
.explore-section{
padding:0px 15px 50px 15px;
}
.explore-section .titlu h1{
margin-top:0px;
font-size:23px;
padding-bottom:5px;
text-align: left;
margin-left: 20px;
}
.explore-section .titlu h1:after{
width: 150px;
height: 3px;
margin:10px auto;
margin-left:-50px;
}
.explore-section .container .box{
border-radius: 15px;
box-sizing: border-box;
margin:20px 0px 20px 0px;
width: 100%;
}
.poza-servicii h2{
padding:10px 5px 0 5px;
}
/* TESTIMONIALS */
.testimonials h1{
padding-top:100px;
font-size:23px;
text-align: left;
margin-left:30px;
padding-bottom: 10px;
}
.testimonials h1::after{
content:'';
background:#148071;
display:block;
width: 150px;
height: 3px;
margin:10px auto;
margin-left:-50px;
}
.testimonials .interior {
padding: 20px;
}
/* BACK TO TOP BUTTON */
#TopBtn {
font-size: 15px;
width: 47px;
height: 47px;
border-radius: 50px;
}
}
/* 450-----------------------------*/
#media only screen and (max-width: 450px) {
.title .button a{
text-align: center;
border:none;
color:#fff;
font-size:12px;
padding:12px 17px;
}
.banner{
background-attachment: scroll;
}
/* DESPRE NOI */
.servicii .poza img{
width: 240px;
}
}
/* 300-----------------------------*/
#media only screen and (max-width: 300px) {
.navbar-brand img{
height:100px;
margin:-20px 0px 0px -20px;
}
.title h1{
font-size:23px;
}
.title .button a{
text-align: center;
padding: 10px 13px;
margin-top:6px;
border:none;
color:#fff;
text-decoration: none;
transition: 0.6s ease;
font-size:12px;
}
.interior h2{
font-size:13px;
}
.banner{
background-attachment: scroll;
}
/* DE CE NOI */
.details .row {
margin-right: -20px;
}
}
/* INCLUDE LA FOOTER SI CONTACT */
/* PARTEA DE CONTACT */
.background-contact{
background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/background-contact-3-fullscreen.jpg);
background-repeat: no-repeat;
background-size: cover;
background-attachment: scroll;
padding: 50px 0px 50px 0px;
}
.mesaj{
padding-top:80px;
padding-bottom:50px;
text-align: center;
}
.mesaj h1{
color:#fff;
font-family: montserrat;
font-size: 30px;
text-transform: uppercase;
color:#fff;
}
.buton-contact{
text-align: center;
padding-bottom:45px;
}
.buton-contact a{
border: none;
padding:12px 30px;
color:#fff;
text-decoration: none;
transition: 0.6s ease;
background-color:#104f47;
box-shadow:1px 2px 4px 0px #00000075;
border-radius: 5px;
}
.buton-contact a:hover{
background-color:#104f47;
color:white;
border:none;
text-decoration: none;
}
/* FOOTER */
.page-footer{
background-color: #222 !important;
color:white !important;
margin-top:-50px !important;
}
.page-footer .social-media{
padding-top:20px !important;
}
.page-footer .container{
padding-top:50px;
}
.page-footer ul li a{
text-decoration: none !important;
color:#fff !important;
font-size:14px;
}
.page-footer ul li a:hover{
text-decoration: none !important;
color:#104f47 !important;
}
.social-media a i{
padding-top:10px;
width: 50px;
height: 45px;
background-color: #333;
border-radius:50%;
}
.social-media a i:hover{
color:#104f47 !important;
}
.social-media{
margin-top:-20px;
padding-bottom:20px;
margin-left: 10px;
}
.footer-copyright{
background-color:#333;
}
.footer-copyright p{
margin-bottom:-5px;
font-size:13px;
}
.text-contact::after{
content:'';
background:#148071;
display:block;
width: 75px;
height: 2px;
margin-top:7px;
}
#media only screen and (max-width: 600px) {
/* CONTACT */
.mesaj h1{
font-family: montserrat;
font-size: 23px;
}
.background-contact{
background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/background-contact-3.jpg);
background-repeat: no-repeat;
background-size: cover;
background-attachment: scroll;
padding: 4px 0px 0px 0px;
}
.text-contact::after {
content: '';
background: #148071;
display: block;
width: 75px;
height: 2px;
margin: 10px auto;
}
}
#media only screen and (max-width:400){
body{
font-size:13px;
}
.banner-contact{
background-attachment: scroll;
}
}
#media only screen and (max-width: 300px) {
body{
font-size:13px;
}
.banner-contact{
background-attachment: scroll;
}
.mesaj h1{
font-family: montserrat;
font-size: 19px;
}
}
It seems text-decoration-skip-ink is in working draft phase.
Check this
mdn-documentation
which also indicates lack of cross-browser support at this point.
This is a just warning. So just ignore it.
We hope that in the future this property will work in all browsers.

After Using CSS animation other element not showing on the page

Good day, guys, I tried to work on my code and I wasn't able to fix it on my own, the class .hello2 and .more are not showing on the page whereas it should appear below the id="flip" content, which happened it disappear the .hello2 and .more class element, it was my first time to use animation this time guys. here's the code that I been using. Looking forward
.possible {
color: #fff;
text-align: center;
letter-spacing: 10px;
text-transform: uppercase;
padding-top: 2rem;
font-family: "Coiny", sans-serif;
}
.circle {
position: relative;
border-radius: 50%;
width: 30rem;
height: 30rem;
background-color: #6CA9A5;
margin: 5rem auto;
}
.hello, .hello2 {
position: relative;
text-transform: uppercase;
font-family: "Montserrat", sans-serif;
font-weight: 900;
letter-spacing: .2rem;
font-size: 2.5rem;
color: #fff;
text-align: center;
padding-top: 100px;
/* z-index: 1; */
}
.hello span:hover {
color: #f4511e;
transition: .59s;
}
.circle a {
font-size: 15px;
text-decoration: none;
}
/* .more a {
height: 150px;
width: 500px;
background-color: #fff;
} */
#container {
color:#999;
text-transform: uppercase;
font-family: "Montserrat", sans-serif;
font-size:36px;
font-weight:bold;
padding-top:180px;
position: relative;
width:100%;
bottom:45%;
display:block;
text-align: center;
}
#flip {
height:60px;
overflow:hidden;
}
#flip > div > div {
border-radius: 30px;
color:#fff;
padding:4px 15px;
height:45px;
margin-bottom:45px;
display:inline-block;
}
#flip div:first-child {
animation: show 5s linear infinite;
}
#flip div div {
background:#42c58a;
}
#flip div:first-child div {
background:#4ec7f3;
}
#flip div:last-child div {
background:#DC143C;
}
#keyframes show {
0% {margin-top:-270px;}
5% {margin-top:-180px;}
33% {margin-top:-180px;}
38% {margin-top:-90px;}
66% {margin-top:-90px;}
71% {margin-top:0px;}
99.99% {margin-top:0px;}
100% {margin-top:-270px;}
}
<div class="content">
<h1 class="possible">Everything is Possible</h1>
<div class="circle">
<p class="hello">Let's Make </p>
<div id="container">
<div id="flip">
<div><div>wOrK</div></div>
<div><div>lifeStyle</div></div>
<div><div>Everything</div></div>
</div>
</div>
<p class="hello2">Awesome</p>
Read More
</div>
</div>
I added position:absolute to .hello2
.possible {
color: #fff;
text-align: center;
letter-spacing: 10px;
text-transform: uppercase;
padding-top: 2rem;
font-family: "Coiny", sans-serif;
}
.circle {
position: relative;
border-radius: 50%;
width: 30rem;
height: 30rem;
background-color: #6CA9A5;
margin: 5rem auto;
}
.hello, .hello2 {
position: relative;
text-transform: uppercase;
font-family: "Montserrat", sans-serif;
font-weight: 900;
letter-spacing: .2rem;
font-size: 2.5rem;
color: #fff;
text-align: center;
padding-top: 100px;
/* z-index: 1; */
}
/* I added */
.hello2 {
position:absolute;
top:80px; /* changeable */
left:50%;
transform:translateX(-50%);
}
/* I added */
.hello span:hover {
color: #f4511e;
transition: .59s;
}
.circle a {
font-size: 15px;
text-decoration: none;
}
/* .more a {
height: 150px;
width: 500px;
background-color: #fff;
} */
#container {
color:#999;
text-transform: uppercase;
font-family: "Montserrat", sans-serif;
font-size:36px;
font-weight:bold;
padding-top:180px;
position: relative;
width:100%;
bottom:45%;
display:block;
text-align: center;
}
#flip {
height:60px;
overflow:hidden;
}
#flip > div > div {
border-radius: 30px;
color:#fff;
padding:4px 15px;
height:45px;
margin-bottom:45px;
display:inline-block;
}
#flip div:first-child {
animation: show 5s linear infinite;
}
#flip div div {
background:#42c58a;
}
#flip div:first-child div {
background:#4ec7f3;
}
#flip div:last-child div {
background:#DC143C;
}
#keyframes show {
0% {margin-top:-270px;}
5% {margin-top:-180px;}
33% {margin-top:-180px;}
38% {margin-top:-90px;}
66% {margin-top:-90px;}
71% {margin-top:0px;}
99.99% {margin-top:0px;}
100% {margin-top:-270px;}
}
<div class="content">
<h1 class="possible">Everything is Possible</h1>
<div class="circle">
<p class="hello">Let's Make </p>
<div id="container">
<div id="flip">
<div><div>wOrK</div></div>
<div><div>lifeStyle</div></div>
<div><div>Everything</div></div>
</div>
</div>
<p class="hello2">Awesome</p>
Read More
</div>
</div>

Website shows white space on the right part of page

We are making a website in a team, and we struck at the famous white blank space in the right of page problem. We are looking for other possible causes.
In the homepage, there is a blank white part on the right for
iOS(Iphone5 and Ipad, browsers are Safari and Chrome)
Mac(Browsers are Safari and Chrome)
Ubuntu(Firefox)
but, the same problem is not seen in the Android with chrome or Ubuntu with chrome.
We have tried the following suggestions in the StackOverflow, but no luck.
Setting body and html margin and padding 0
Setting img width 100%
Checking font sizes(most of them is defined 1.2 rem)
Also, I have checked each layout in the dev tools, but none of them appears to exceed body width.
We have also tried to add an extra div after footer, or changing position:fixed to-the-page-top, but the result were the same.
Anyone have a sugguestion?
html, body, div, span, {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
body {
line-height:1;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
display:block;
}
nav ul {
list-style:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content:'';
content:none;
}
a {
margin:0;
padding:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
input, button, textarea, select {
margin: 0;
padding: 0;
background: none;
border: none;
border-radius: 0;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
/*all-1.css*/
#charset "UTF-8";
html {
font-size: 62.5%;
}
body {
position: relative;
background-color: #fff;
color: #333;
font-size: 1.2rem;
font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
*, *::before, *::after {
box-sizing: border-box;
}
a:link, a:visited, a:hover, a:active {
text-decoration: none;
}
font-family:'Helvetica Neue','Helvetica','Arial',YuGothic,'Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','メイリオ', Meiryo,'MS ゴシック',sans-serif;
.tyousei{}
.clearfix::after{
content: '';
display:block;
clear: both;
}
.btn img{
height:40%;
margin-top: 10px;
margin-left: 10px;
}
.btn .right-icon{
position: absolute;
top: 7px;
right: 10px;
}
.btn::before{
content: "";
position: absolute;
left:0%;
bottom:0px;
display: block;
width: 0%;
height: 2px;
background: #2F4D55;
transition: all .4s ease;
}
.btn:hover::before{
width: 100%;
}
#up-btn a{
position: fixed;
right:1%;
bottom:40%;
z-index: 5;
opacity: 0.8;
text-align: center;
height:50px;
width:50px;
padding-top: 8px;
border-radius: 25px;
background-color:#666;
}
#up-btn img{
display: inline-block;
width:65%;
height:75%;
}
.header{
width: 100%;
font-size: 0;
}
.global-navi{
height: 50px;}
.logo{
max-width: 250px;
width:40%;
min-width:200px;
float: left;
padding:20px 10px 10px 20px;
background-color: rgba(255,255,255,0.4)
}
.logo img{
display: block;
width: 100%;
height: auto;
}
.form-top{display: none;}
.sbox > *{
font-size: 1.2rem;
}
.form .sbtn{
width:34px;
height: 28px;
position: absolute;
left:517px;
top: 12px;
border:none;
font-size:20px;
outline: 0;
}
.suggestion{
border-bottom: solid 1px #666;
border-right: solid 1px #666;
border-left: solid 1px #666;
z-index:10;
}
.suggestion:hover{
background-color: rgba(240,240,240,1);
}
.word-suggestion{
width: 236px;
height: 30px;
font-size: 16px;
text-align: left;
padding: 7px 5px;
background-color: rgba(255,255,255,1);
color:#333;
}
.article-suggestion{
width: 350px;
height: 75px;
font-size:16px;
padding: 5px;
background-color: rgba(255,255,255,1);
}
.article-suggestion-title{
position: relative;
height:18px;
overflow:hidden;
font-weight:normal;
letter-spacing: 1px;
line-height:18px;
margin-bottom:12px;
text-decoration: underline;
color:#333;
}
.article-suggestion-desc{
position: relative;
height:30px;
overflow:hidden;
font-size:14px;
line-height: 16px;
color: #666;
padding-left:6px;
}
.article-suggestion-desc::after{
content: "";
position: absolute;
top:0px;
left:0px;
width:3px;
height:100%;
background-color: #74c0d5;
}
.article-number{
width: 350px;
height:30px;
background-color: rgba(255,255,255,0.7);
z-index:20;
font-size:14px;
color:#666;
text-align: center;
padding-top: 7px;
}
.result{
position: absolute;
top:41px;
left:282px;
z-index: 20;
}
#no-result{
width: 350px;
height:210px;
background-color: rgba(255,255,255,1);
border-bottom: solid 1px #666;
border-right: solid 1px #666;
border-left: solid 1px #666;
font-size:16px;
line-height:20px;
padding:10px;
z-index: 10;
}
#no-result .kobetuba-mail-link{
display: block;
width:80%;
height:60px;
text-align: center;
margin:10px auto 5px;
border: solid 1px #666;
padding: 2px;
cursor: pointer;
border-radius: 3px;
position: relative;
}
#no-result .kobetuba-mail-link img{
height:32px;
}
#no-result .kobetuba-mail-link p{
font-size: 16px;
color:#666;
}
#no-result .right-icon{
position: absolute;
top:15px;
right:5px;
color:#666;
}
#no-result .kobetuba-mail-link:hover{
background-color: rgba(230,230,230,0.6)
}
#media (min-width: 800px){
.form-top{
display: block;
position:relative;
}
}
.navi-box{
float:right;
}
.navi{
display: inline-block;
vertical-align: middle;
padding: 5px 2px;
}
#media (max-width:365px){
.article-and-toiro{
display: none;
}
}
#media (min-width:768px){
.article-and-toiro p
{font-size:16px;}
}
.message-box :hover{
opacity: 0.3;
}
.account :hover{
opacity: 0.7;
}
.article-and-toiro:hover {
background:rgba(255,255,255,0.2);
}
.navi-icon a{
position:relative
}
.navi-icon span{
display: inline-block;
top: -45px;
left: 30px;
width:20px;
height: 20px;
border-radius: 50%;
background-color: rgba(255,255,255,0.8);
position:absolute;
color: #666;
text-align: center;
line-height: 20px;
vertical-align: middle;
font-size:16px;
}
.wrapper {
width: 96%;
min-width: 320px;
max-width: 1200px;
padding-bottom:50px;
margin: 10px auto 20px;
}
footer{
display: none;
}
#media (max-width:800px){
footer{
display: block;
}
footer{
box-shadow: 0px -3px 4px -2px rgba(0, 0, 0, 0.1);}
.footer-bottom {
width: 100%;
position: fixed;
bottom: 0;
height:44px;
border-top:double #2F4D55;
background-color: #fff;
padding-top: 5px;
/*background-color:#2F4D55;*/
}
.footer-bottom.close{
box-shadow: 0px -6px 8px -2px rgba(0, 0, 0, 0.3);}
.footer-bottom img{
height:70%;
display: block;
margin:0 auto;
}
.footer-open{
width:100%;
position: fixed;
bottom: 0;
background-color:#fff;
z-index: 10;
}
.footer-bottom.open{
border-top:solid 1px #696969
}
.category-list-bottom {
width:100%;
position: fixed;
top:0px;
bottom: 0px;
left:0px;
right:0px;
overflow-y: scroll;
height:100%;
text-align: center;
background-color:rgba(255,255,255,0.9);
box-shadow: 0px -6px 8px -2px rgba(0, 0, 0, 0.3);
}
}
.category-list-bottom{
}
.close-btn{
height:30px;
background-color: rgba(100,100,100,0.3)
}
.down-icon{
color: #666;
}
.category-list-bottom .form-bottom{
display: inline-block;
width: 100%;
padding-bottom:10px;
position: relative;
}
.category-list-bottom .form .sbtn{
position: absolute;
top:41px;
left:10px;
width:40px;
height:40px;
border-radius:20px;
background-color: transparent;
border:solid 2px #2F4D55;
color:#737575;
box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.3);
}
.category-list-bottom .form-bottom{
display: inline-block;
width: 100%;
}
.category-list-bottom .form .sbox{
position:absolute;
top:18px;
right:11%;
left:2%;
width:85%;
height:44px;
font-size: 16px;
border:solid 1px #535353;
}
.category-list-bottom .form .sbtn{
position: absolute;
top:20px;
right:2%;
left:88%;
border-radius: 50%;
}
.result-word-suggestion{
position: absolute;
top:64px;
right: 11%;
left: 3%;
width:85%;
z-index: 10;
}
.result-article-suggestion{
position: absolute;
top:64px;
right: 11%;
left: 2%;
width: 95%;
z-index: 10;
}
.form-bottom .word-suggestion{
width:100%;
height: 64px;
/* font-size: 16px; */
z-index: 100;
background-color: #f2fbfd;
}
.form-bottom .article-suggestion{
width: 100%;
z-index: 100;
text-align: left;
background-color: #f2fbfd;
border-left:solid 1px rgba(0,0,0,0.3);
border-right:solid 1px rgba(0,0,0,0.3);
}
.form-bottom .article-number{
width:100%;
z-index: 100;
text-align: center;
background-color: #f2fbfd;
border-left:solid 1px rgba(0,0,0,0.3);
border-right:solid 1px rgba(0,0,0,0.3);
}
.form-bottom .article-suggestion:hover,.form-bottom .article-number:hover{
background-color: rgba(255,255,255,1);
}
#form-bottom-no-result{
width:100%;
z-index: 100;
background-color: #f2fbfd;
border-left:solid 1px rgba(0,0,0,0.3);
border-right:solid 1px rgba(0,0,0,0.3);
border-bottom:solid 1px rgba(0,0,0,0.3);
font-size: 16px;
padding: 10px;
line-height: 20px;
color: #666;
text-align: left;
}
#form-bottom-no-result .kobetuba-mail-link{
display: block;
width:95%;
margin:10px auto 5px;
height:70px;
padding: 3px;
border: solid 1px #666;
border-radius: 3px;
font-size:16px;
text-align: center;
position: relative;
cursor: pointer;
}
#form-bottom-no-result .kobetuba-mail-link img{
max-height:60%;
max-width:95%;
}
#form-bottom-no-result .kobetuba-mail-link .right-icon{
position: absolute;
top:50%;
right:10px;
color:#666;
}
#form-bottom-no-result .kobetuba-mail-link:hover{
background-color: rgba(230,230,230,0.4)
}
.category-list-bottom .category-list-wrapper{
padding:55px 7px 7px;
text-align: left;
min-height:370px;
height:90%;
}
.category-list-bottom .category-list{
margin-top:5px;
margin-bottom:5px;
position: relative;
height:35%;
border:solid 1px #acabab;
border-bottom:solid 2px #2F4D55;
background-color:rgba(255,255,255,0.5)
}
.category-list-bottom .category-list-img{
position:absolute;
top:50%;
left:50%;
transform: translateX(-50%) translateY(-50%);
padding-top:2px;
padding-bottom:2px;
}
.category-list-bottom .category-mini-list-wrapper li{
height:44px;
list-style: none;
margin:6px 10px 6px 10px;
padding:12px 7px;
background-color: rgba(200,200,200,0.5);
border-radius: 7px 22px 22px 7px;
zoom:0.8;
position: relative;
}
.category-list-bottom .article .category-mini-list-wrapper li{
display: inline-block;
width:47%;
margin-top:3px;
margin-bottom:3px;
margin-right: 0px;
}
.category-list-bottom .right-icon{
color:#666;
position: absolute;
top:50%;
right:5px;
transform:translateY(-50%);
}
.category-list-bottom .category-list.torio{
height:25%;
border-radius: 3px 22px 22px 3px;
text-align: center;
}
.category-list-bottom .category-list.torio img{
zoom:0.8;
}
.category-list-bottom .category-list.torio .new-icon{
margin-top:40px;
padding-left: 160px;
width:210px;
}
.category-list.all-close{
height:35%;
}
.category-list.close{
height:30%;
min-height:80px;
}
.category-list.close .category-mini-list-wrapper,.category-list.all-close .category-mini-list-wrapper{
display: none;
}
.category-list.open{
height:auto;
border:none;
}
.category-list.open .category-list-img{
display:block;
position:relative;
top:0;
left:0;
transform:none;
margin:5px auto;
}
.category-list.open .right-icon{
display:none;}
.category-list.open .category-mini-list-wrapper{
display:block}
#media (max-width:500px){
.category-list.close{height:44px}
}
#media (max-width:346px){
.category-list-bottom .article .category-mini-list-wrapper li{
display: inline-block;
width:45%;
}
.category-list-bottom .article .category-mini-list-wrapper img{
zoom:0.9;
}
}
#media(min-width:500px){
.category-list-bottom .kobetuba .category-mini-list-wrapper li{
display: inline-block;
width:46%;
margin-top:3px;
margin-bottom:3px;
}
.category-list-bottom .kobetuba .category-mini-list-wrapper img{
zoom:0.9;
}
}
/* hp_style-1.css */
#charset "UTF-8";
html {
font-size: 62.5%;
}
body {
background-color: #fff;
color: #333;
font-size: 1.2rem;
font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
*, *::before, *::after {
box-sizing: border-box;
}
a:link, a:visited, a:hover, a:active {
color: #7C5119;
text-decoration: none;
}
font-family: 'Helvetica Neue','Helvetica','Arial',YuGothic,'Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','メイリオ', Meiryo,'MS ゴシック',sans-serif;
.header{
width: 100%;
}
.main-visual{
height: 250px;
background-image: url(../img/main-visual-mini.jpg);
background-position: center center;
background-size: cover;
position: relative;
}
#vision{
padding:10px;
position: absolute;
top:40%;
right:2%;
width:45%;
min-width:270px;
max-width:450px;
z-index: 0;
}
#media(max-width:568px){
#vision{background-color: rgba(237,231,221,0.8)}
}
#media (min-width:500px){
.main-visual{
background-image: url(../img/main-visual.jpg);}
}
#media (min-width: 800px){
.main-visual{
height:450px;
background-image: url(../img/main-visual.jpg);
position: relative;
background-position: center;
}
#vision{
background-color: transparent;
}
}
#media (min-width: 1020px){
#vision{
top:30%;
width:55%;
left:55%;
}
}
.sbox{
border:solid 1px #535353;
background-color: rgba(255,255,255,0.3)
}
.form .sbtn{
color:#999;
/*ここから臨時対応*/
border-leftsolid 1px #737575;
}
.sbtn:hover{
color#151e76;
}
.suggestion{
border:none;
border-bottom: solid 1px #666;
}
.suggestion:hover{
opacity: 1;
background-color: rgba(255,255,255,0.9);
}
.word-suggestion{
background-color: rgba(255,255,255,0.4);
}
.article-suggestion{
background-color: rgba(255,255,255,0.7);
}
#no-result{
background-color: rgba(255,255,255,0.8)
}
.message-box :hover{
opacity: 0.6;
}
.account :hover{
opacity: 0.6;
}
.category-navi{
display: none;
}
/*タブレット縦以降*/
#media (min-width: 801px){
.category-mini-list{
list-style-type:none;
}
.category-navi{
display: block;
width: 100%;
height: 50px;
background-color: rgba(255,255,255,0.7);
position: absolute;
bottom: 0px;
border-bottom:double #022567;
font-size: 0;
padding-left:5%;
padding-right:5%;
text-align: center;
}
.category-list {
display: inline-block;
position: relative;
width: 30%;
top:0px;
min-width: 130px;
height: 50px;
vertical-align: middle;
padding-left: 16%;
padding-right: 16%;
}
.category-list-button{
position:absolute;
width: auto;
max-width: 280px;
top:0;
bottom: 0;
left: 0;
right:0;
margin: auto;
cursor: pointer;
}
.category-list-img {
position: absolute;
top: 60%;
left: 50%;
transform: translateX(-50%)translateY(-50%);
width: auto;
max-width: 100%;
height:auto;
margin: auto;
}
.category-list.toiro .category-list-img {
top: 50%;
}
.category-list:hover{
background:rgba(116,192,213,0.3);
}
.category-mini-list-wrapper{
display: none;
background-color: rgba(255,255,255,0.7);
position: absolute;
bottom:50px;
left:0;
width:100%;
height:192px;
opacity: 0.9;
text-align: center;
}
.category-mini-list{
width: 100%;
padding:10px 15px;
}
.category-list-mini-img {
width:auto;
max-width: 100%;
height:auto;
}
.category-mini-list:hover{
background: rgba(116,192,213,0.1);
}
.category-list.toiro .new-icon{
margin-top:15px;
padding-left: 55px;
width:100px;
height:40px;
}
}
.wrapper{
padding-top:20px;
}
section{
margin-top: 40px;
}
#media (min-width: 920px){
.wrapper{
width: 90%;
margin: 20px auto 40px;}
}
#media (max-width:800px){
.recomend,.new {
width:100%;
}
}
#media(min-width:800px){
.new{
width:
}
}
Maybe you didn't set the body/html width and height.
Try this:
html,body
{
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow-x: hidden;
}
I added
overflow-x: hidden
You should remove this line, if you need to scroll left and right.

Border-bottom not showing correctly

I am trying to put a border-bottom to the titles on my page, but It seems to underline the whole div instead of just the text. Does anyone whats causing this and how to fix it?
http://jsfiddle.net/1sue4ueg
html
<body>
<div id="mainContent">
<div id="infoContent">
<img src="./style/logo.svg" class="logo" alt="Drift">
<canvas resize="true" id="canvas" style="-webkit-user-select: none; touch-action: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);" width="657" height="780" data-paper-scope="1"></canvas>
</div>
<div id="projectContent" style="height: auto;">
<div id="newBlock">
<div id="aboutBlock">
<p>DRIFT is een nieuwe organisatie in het Gentse: een ‘ontwikkelingsplatform’ dat zich volledig richt op de artistieke en zakelijke ontwikkeling van jonge kunstenaars.</p>
</div>
<div id="newsBlock">
<div id="newsHead"><div id="newsTitle" class="blockTitle"><p>NIEUWS</p></div><div class="newsDate">13.12.2015</div> </div><div id="newsContent">PARADIS — Hof van Eede & LOD
Componist<br>Thomas Smetryns koopt online een oude foto van een jonge danseres. Even later valt er een lijvig fotoboek in zijn brievenbus. Een leven in puzzelvorm, zo lijkt het.</div> </div>
</div>
<div id="recentWorkBlock">
<div id="recentWorkTitle" class="blockTitle">BINNENKORT</div>
<table>
<tbody>
<tr class="blockRecentProjet" data-projet="17"><td class="colNameProj"><span class="nameProject">Kein applaus für scheisse</span></td><td class="colNumberProj "><span class="">17.12.2015</span></td></tr>
<tr class="blockRecentProjet recentSelectedProject" data-projet="16"><td class="colNameProj"><span class="nameProject">Kokokito</span></td><td class="colNumberProj "><span class="">24.12.2015</span></td></tr>
<tr class="blockRecentProjet" data-projet="15"><td class="colNameProj"><span class="nameProject">We don’t speak to be understood</span></td><td class="colNumberProj "><span class="">06.01.2016</span></td></tr>
<tr class="blockRecentProjet" data-projet="14"><td class="colNameProj"><span class="nameProject">So you can feel</span></td><td class="colNumberProj "><span class="">22.01.2016</span> </td></tr>
<tr class="blockRecentProjet" data-projet="13"><td class="colNameProj"><span class="nameProject">Mystery Magnet</span></td><td class="colNumberProj "><span class="">12.02.2016</span>
</td>
</tr>
</tbody>
</table>
</div>
<div id="newsBlock">
<div id="newsHead"><div id="newsTitle" class="blockTitle">DRIFT ORGANISEERT</div><div id="newsContent">
LAB — Vrijplaats voor experiment, ontmoeting en uitwisseling van artiesten voor/tijdens het creatieproces.<br><br>
OP DRIFT — Ad hoc-creatiesessies waarin artistieke talen elkaar kruisen en uitmonden in hogedruktoonmomenten bij In de Ruimte<br><br>
DE AVONDEN — Leessalon in NTGent: hedendaags repertoire en nieuwe stukken worden samen gelezen en bediscussieerd met een groep jonge acteurs, makers, regisseurs en dramaturgen; begeleid door NTGent.<br><br>
WORKSHOPS — Vanaf 2017 organiseert DRIFT workshops rond verschillende inhouden, vormen en disciplines, i.s.m. diverse partnerorganisaties.<br><br>
RESIDENTIES — Ontwikkelingsresidenties vanaf 2017.</div> </div>
</div>
<div id="contactBlock">
<div id="contactTitle" class="blockTitle">CONTACT:</div>
<div id="listContact">
<div class="personnalInfo">
<a href="#">
<p>Campo Victoria<br>
Fratersplein 7<br>
9000 Gent<br>
Ruth Mariën <br>
+32497186317<br>
info#drift.be
<div id="contactBlock">
<div id="contactTitle" class="blockTitle">MAATSCHAPPELIJKE ZETEL</div>
<div id="listContact">
<div class="personnalInfo"
<p>Kouter 108<br>
9000 Gent<br>
Ondernemingsnummer: 633756230</p>
</a>
</div>
</div>
</div>
</div>
</div></body></html>
css
body, html
{
width: 100%;
height: 100%;
overflow: hidden;
}
body, html, div, p, table, th, tr, td, li, ul, form, img
{
margin: 0;
}
body
{
-webkit-font-smoothing: antialiased;
-moz-font-feature-settings: "liga", "kern";
-moz-font-feature-settings:"liga=1, kern=1";
-ms-font-feature-settings:"liga", "kern";
-o-font-feature-settings:"liga", "kern";
-webkit-font-feature-settings:"liga", "kern";
font-feature-settings: "liga", "kern";
}
/*
#font-face
{
font-family: Swiss!important;
src: url('AtlasGrotesk-Medium.otf');
}
*/
#font-face {
font-family: "Swiss";
src: url("swiss-721-medium-bt.eot");
src: url("swiss-721-medium-bt.eot#iefix") format("embedded-opentype"),
url("swiss-721-medium-bt.woff") format("woff"),
url("swiss-721-medium-bt.ttf") format("truetype"),
url("swiss-721-medium-bt.svg") format("svg");
font-weight: normal;
font-style: normal;
}
.logo {
display: block;
padding-top: 15px;
width: 275px;
height: auto;
}
canvas[resize] {
width: 100%;
height: 100%;
}
.blockTitle
{
font-family: Swiss!important;
font-size: 8pt;
line-height: 12pt;
display: inline-block;
vertical-align: top;
height: 10px;
margin-bottom: 15px;
}
.blockTitle > p {
border-bottom: 3px solid black;
}
#mainContent
{
position: absolute;
left: 15px;
right: 15px;
top: 0px; /*7px;*/
/*padding-top:6px;*/
bottom: 0px;
overflow: auto;
/* min-width: 984px; 1024 - 2x20 */
/*
margin-left: 10px;
margin-right: 10px;
margin-top: 7px;
*/
}
#infoContent
{
/*width: 624px;*/
width: 580px;
display: inline-block;
z-index: 42;
position: relative;
height: 100%;
overflow: hidden;
/* background-color: #fff; */
}
#wrapperRight {
right: 0px;
cursor: e-resize;
}
#wrapperLeft {
left: 0px;
cursor: w-resize;
}
.navArrow {
position: absolute;
top: 0;
bottom: 0;
width: 100px;
z-index: 99;
}
#projetsList
{
position: relative;
}
#mainTitles
{
margin-top: 6px;
height: 10px;
}
#mainTitles > div
{
display: block;
float: left;
}
#mainInfoTitle
{
/*
margin-left: 105.7px;
width: 105.7px; */
margin-left: 98.3px;
width: 98.3px;
height: 10px;
/* display: inline-block;*/
}
#mainInfoTitle a:visited,
#mainInfoTitle a:active,
#mainInfoTitle a:hover,
#mainInfoTitle a
{
text-decoration: none;
color: black;
}
#aboutTitle, #overviewTitle
{
/*width: 105.7px;*/
width: 98.3px;
display: inline-block;
height: 10px;
}
#overviewTitle
{
/*margin-left: 105.7px;*/
margin-left: 98.3px;
cursor: pointer;
}
#recentWorkTitle
{
/*margin-left: 105.7px;*/
margin-left: 98.3px;
}
#newBlock
{
margin-top: 3px;
}
/** 5 most recents projects **/
.blockRecentProjet
{
font-family: Swiss!important;
font-size: 8pt;
line-height: 10pt;
/*width: 250px;*/
cursor: pointer;
}
.blockRecentProjet .colNameProj
{
/*width: 211.4px;*/
width: 196.6px;
}
.blockRecentProjet.recentSelectedProject .colNumberProj
{
color: blue;
}
#aboutBlock
{
font-family: Swiss!important;
font-size: 15pt;
line-height: 16pt;
text-align: left;
padding-top: 15px;
}
/*
#aboutBlock .line1 {
letter-spacing: 0;
}
#aboutBlock .line2 {
letter-spacing: -0.010em;
}
#aboutBlock .line3 {
letter-spacing: -0.005em;
}
#aboutBlock .line4 {
letter-spacing: 0;
}
#aboutBlock .line5 {
letter-spacing: 0.015em;
}
*/
#aboutBlock .line1 {
letter-spacing: -0.015em;
}
#aboutBlock .line2 {
letter-spacing: 0.0em;
}
#aboutBlock .line3 {
letter-spacing: 0.0em;
}
#aboutBlock .line4 {
letter-spacing: 0.015em;
}
#aboutBlock .line5 {
letter-spacing: -0.015em;
}
#aboutBlock .line6 {
letter-spacing: 0.0em;
}
/** News block style
**/
#newsBlock
{
margin-top: 10px;
font-family: Swiss!important;
font-size: 15pt;
line-height: 17pt;
}
#newsBlock .newsDate, #newsBlock #newsTitle
{
display: inline-block;
height: 10px;
line-height: 12pt;
}
#newsBlock #newsTitle
{
/*width: 95.7px;
margin-left: 105.7px;*/
width: 200px;
margin-left: 98.3px;
}
#newsBlock .newsDate
{
font-family: Swiss!important;
font-size: 8pt;
/*margin-left: 221.4px;*/
margin-left: 196.6px;
}
#newsBlock #newsContent
{
/*margin-top: 2px;*/
text-align: left;
font-family: Swiss!important;
font-size: 15pt;
line-height: 17pt;
}
/** list of all last projects **/
#recentWorkBlock
{
margin-top: 10px;
}
#recentWorkBlock table{
border-collapse: collapse;
border-spacing: 0px;
padding: 0;
}
#recentWorkBlock table td,
#recentWorkBlock table tr
{
vertical-align: top;
padding: 0;
}
#projetsList
{
margin-top: 2px;
font-family: Swiss!important;
font-size: 8pt;
line-height: 10pt;
-webkit-column-count: 2; /* Chrome, Safari, Opera */
-moz-column-count: 2; /* Firefox */
column-count: 2
}
#projetsList .blockInfoProjet
{
margin-bottom: 0px;
display: block;
cursor: pointer;
margin: 0;
-webkit-column-break-inside: avoid; /* Chrome, Safari */
page-break-inside: avoid; /* Theoretically FF 20+ */
break-inside: avoid-column; /* IE 11 */
}
#projetsList .blockInfoProjet .numProjet
{
/*width: 85px;*/
/*margin-left: 115.7px;*/
margin-left: 108.3px;
display: inline-block;
}
#projetsList .blockInfoProjet .mainInfoProject
{
/*width: 95.7px;*/
width: 88.3px;
display: inline-block;
vertical-align: top;
}
#projetsList .blockInfoProjet .contentProj
{
vertical-align: top;
/*width: 191.4px;*/
width: 176.6px;
display: inline-block;
margin-left: 10px;
}
.projectSelected .numProjet
{
color: blue;
}
.viewedProj
{
/* color: #9400D3;*/
}
#projetsList .titleCategory
{
margin-top: 12pt;
/*width: 95.7px;*/
width: 88.3px;
display: inline-block;
}
/*
#projetsList .charCategory
{
width: 105.7px;
display: inline-block;
}
*/
#projetsList .categoryName
{
display: inline-block;
}
/**
* Right part
**/
#projectContent
{
vertical-align: top;
position: absolute;
overflow: auto;
z-index: 20;
top: 0px;
/*right: 10px;*/
/*width: 507px;*/
width: 580px;
left: 590px;
height: 100%;
/* bottom: 40px; */
display: inline-block;
}
.wrapperPreview
{
float: left;
display: inline-block;
height: 100%;
cursor: pointer;
position: absolute;
top: 0;
z-index: 30;
}
#infoZoomProject
{
z-index: 20;
top: 22px;
/*bottom: 0px;*/
position: absolute;
/*width: 507px;*/
width: 580px;
background-repeat: no-repeat;
background-size: contain;
background-position: center top;
cursor: pointer;
}
#infoZoomProject .previewBigImage,
#tempNewBlock .previewBigImage,
#tempOldBlock .previewBigImage
{
/*width: 507px;*/
width: 580px;
height: auto;
/* max-height: 100%;*/
max-width: 100%;
}
#tempNewBlock
{
background-repeat: no-repeat;
background-size: contain;
background-position: center top;
top: 22px;
/*width: 507px;*/
width: 580px;
position: fixed;
}
#tempOldBlock
{
z-index: 20;
top: 22px;
/*bottom: 0px;*/
position: absolute;
/*width: 507px;*/
width: 580px;
background-repeat: no-repeat;
background-size: contain;
background-position: center top;
cursor: auto;
}
.zoomImageProject
{
width: 100%;
height: 100%;
overflow: hidden;
}
#infoZoomProject img
{
}
#indexProject, #indexProjectWrapper, #zoomTitleProject
{
font-family: Swiss!important;
font-size: 8pt;
display: inline-block;
}
#indexProject
{
color: blue;
}
#indexProjectWrapper
{
width: 100%;
height: 20px;
text-align: center;
margin: 0 auto;
padding-top: 4px;
}
#zoomTitleProject
{
/* position: fixed;
bottom: 14px;
left: 634px;
right: 15px;
*/
text-align: center;
height: 20px;
/*width: 507px;*/
width: 580px;
margin-top: 6px;
}
/**
** zoom on a project
**/
#listPictureProject
{
display: none;
position: fixed;
top : 20px;
/*width: 507px;*/
width: 580px;
/*left: 649px; 634 + 15 */
left: 605px;
bottom: 0px;
}
.mainViewDetail
{
width: 580px;
height: 100%;
background-position-x: center;
background-position-y: top;
background-size: contain;
background-repeat: no-repeat;
}
.wrapperEvent
{
float: left;
display: inline-block;
height: 100%;
cursor: pointer;
}
#wrapperListProject
{
width: 100%;
height: 100%;
overflow: hidden;
}
.imageDetailProject
{
background-repeat: no-repeat;
background-size: contain;
background-position: center top;
width: 100%;
height: 172px;
margin-bottom: 20px;
text-align: center;
display: inline-block;
cursor: pointer;
}
.imageDetailProject img
{
/* width: 100%*/
height: 250px;
margin: 0 auto;
}
.wrapperDetailBlock
{
width: 49%;
display: inline-block;
}
#wrapperListProject .leftDetail
{
margin-right: 2%;
}
/**
** show list of project previews
**/
#listOverviewProjects
{
display: none;
position: fixed;
top : 0px;
width: 1160px;
/*left: 649px;*/
left: 15px;
bottom: 0px;
}
#wrapperOverview
{
width: 100%;
height: 100%;
padding-top: 23px;
overflow: hidden;
}
.colOverview
{
padding: 0 5px;
width: 24.1%;
display: inline-block;
vertical-align: top;
float: left;
position: relative;
}
#wrapperOverview .firstCol .previewImageProj
{
padding-left: 0 !important;
}
#wrapperOverview .lastCol .previewImageProj
{
padding-right: 0 !important;
}
.blockPreviewOverview
{
cursor: pointer;
width: 250px;
display: inline-block;
vertical-align: top;
}
.previewMargin
{
margin-right: 7px;
}
.previewImageProj
{
background-repeat: no-repeat;
background-size: contain;
background-position: center top;
width: 100%;
/*height: 200px;*/
cursor: pointer;
margin-bottom: 20px;
/* padding: 0 5px;*/
text-align: center;
display: inline-block;
}
.previewImageProj img
{
width: 100%;
}
/**
* contact block
*/
#listContact
{
width: 100%;
overflow: overlay;
}
.personnalInfo
{
vertical-align: top;
/*width: 201.3px;*/
width: 400px;
float: left;
font-family: Swiss!important;
font-size: 15pt;
display: inline-block;
margin-right: 10px;
}
.personnalInfo a, .personnalInfo a:hover, .personnalInfo a:visited
{
text-decoration: none;
color: #000;
cursor: pointer;
}
.BMEMail
{
letter-spacing: -0.015em;
}
#contactTitle
{
margin-top: 10px;
/*margin-left: 105.7px;
width: 95.7px;*/
margin-bottom: 4px;
margin-left: 98.3px;
width: 150px;
}
.lineHeadProj
{
display: inline-block;
}
thanks in advance
I suggest to you please take span replace of p tag bcz, p tag use for paragraph, if you want work on the same code so modify css
.blockTitle > p {
border-bottom: 3px solid black;
display: inline-block;
}
<p>'s are block elements meaning that they have a width of 100%. Add this to your CSS .blockTitle > p { display: inline-block; } and it should work
JSFiddle

Font weight is thicker on windows than mac?

I don't know whats wrong with my code? The font weight changes when I'm on windows, but it stays the same on my android and mac. I've also attempted to change the font face because I that it might have been that windows doesn't come installed with the helvetica font.
#font-face {
font-family: Helvetica;
src: url(Helvetica.dfont);
}
a,p{
text-decoration: none;
font-weight: normal;
font-family: Helvetica;
font-size: 12px;
}
li{
list-style-type: georgian;
font-family: Helvetica;
font-weight: lighter;
padding-top: 5px;
}
h3{
font-weight: lighter;
font-family: Helvetica;
margin: 0px;
}
hr{
height: 2px;
background-color: lightgray;
border: 0px;
}
/*MOBILE SUPPORT*/
#media screen and (max-width: 414px) and (min-width: 337px) {
#headnav{
text-align: center;
margin-right: 40px;
}
#updatelog{
margin-top: 10px;
}
img.footer_pi{
width: 90%;
height: 90%;
}
}
/*END OF MOBILE SUPPORT*/
/*wrappers*/
.wrapper{
margin: 0 auto;
padding: 10px;
display: block;
max-width: 750px;
}
footer.wrapper{
overflow: hidden;
}
/*end of wrappers*/
/*homepage*/
#updatelog{
margin-top: 10px;
margin-left: 5px;
}
#robotics_notes{
max-width: 100%;
width: auto;
}
article#home_article > img{
float: left;
}
article#home_article > p{
padding-top:10px;
clear: both;
}
article#home_article > aside{
display: inline-block;
}
#homepage_header{
font-family: Helvetica;
font-weight: 300;
}
#selected{
background-color: #65448C;
}
div>h1{
margin: 0 auto;
text-align: center;
}
li > a{
color: #ED1148;
padding: 8px;
}
ul#headnav > li{
list-style-type: none;
display: inline-block;
}
li > a:hover{
background-color: #ED1148;
}
li:hover a {
color: white;
}
/*end of homepage*/
/*login*/
#middle{
background-color: #E6CCCC;
padding-top: 30px;
width: 25%;
min-width: 249px;
}
.login{
text-align: center;
}
button.login{
font-family: Helvetica;
margin-top: 10px;
margin-bottom: 7px;
}
h2.login{
color: #6A1B1B;
display:block;
padding: 0px;
margin-top: 0px;
}
/*end of login*/
/*footer*/
a.footer_pi{
width: auto;
max-width: 100%;
visibility: visible;
float: right;
}
img.footer_pi{
opacity: 0.65;
transition: opacity .5s ease-in;
}
img:hover{
opacity: 1;
}
/*end of footer*/
http://intimite.biz.tm/