there is white space vertically between the texts in chrome but not in firefox?
-
Hallo,
this is the code :
.box-container { width: 100%; height: 100px; border: 1px solid #4b5054; background-color: #4b5054; display: flex; flex-direction:row; overflow:hidden; } .item { opacity: 0; transition: opacity 1s ease-in-out; width: 100%; display:none; /* hide all items initially */ } .item.active { opacity: 1; display: flex; /* Show the active item */ flex-direction:column; } .item1 h2 { display:flex; justify-content: center; align-items:center; text-align: center; margin-top:0.5rem; font-size: 1.4rem; color:#ffd978; font-family: 'Ravi Prakash', cursive; } .item2 h2{ display:flex; justify-content: center; align-items:center; text-align: center; margin-top:0.5rem; font-size: 1.4rem; color: #ffd978; font-family: 'Ravi Prakash', cursive; } .item3 h2 { display:flex; justify-content: center; align-items:center; text-align: center; margin-top:0.5rem; font-size: 1.4rem; color: #ffd978; font-family: 'Ravi Prakash', cursive; } .item p { display:flex; flex-direction:column; justify-content: center; text-align: center; font-size: 1rem; line-height: 0.8; color: white; margin-top:-0.35rem; font-family: 'Ravi Prakash', cursive; } .item p1 { display:flex; justify-content: center; text-align: center; font-size: 1rem; line-height: 0.8; color:white; margin-top:-1.5rem; font-family: 'Ravi Prakash', cursive; } .item p2 { display:flex; justify-content: center; text-align: center; font-size: 1rem; line-height: 0.8; color: white; margin-top:-0.05rem; font-family: 'Ravi Prakash', cursive; }
when I open the home page in firefox under 380px it is OK.
but when I open the same page in chrome under 380px there is white space vertically in the texts : Direct-bellen and Tel:xxxxxxx
opening tijden and ma t/m vridag etc.
How I can solve this problem?
do I have to use webkit to solve this problem . if yes!
what is the syntax and where do I have to insert it?
I am writting media queries and this problem is under 380px when you open inspect elements.
thanks
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘there is white space vertically between the texts in chrome but not in firefox?’ is closed to new replies.