Spent the entire day yesterday attempting to make my page responsive while Zooming In, but I just can't seem to get it right. Even after adding height and weight, elements still get mixed up when zooming in on the page.
I've scoured countless web pages and tried every solution out there, but nothing seems to work.
Feeling lost and unsure of what to do next.
.container-header-image {
width: 100%;
height: auto;
}
.top-menu {
width: 100%;
height: auto;
}
.logo-name-wording {
width: 100px;
height: auto;
position: absolute;
font-family: Montserrat;
font-weight: bold;
font-size: 20px;
top: 43px;
left: 230px;
}
.link-top-menu {
width: 100%;
height: auto;
font-family: MontserratExtraLight;
font-size: 14px;
font-weight: bold;
}
.container-header-image {
width: 100%;
height: auto;
position: relative;
color: white;
}
.signup-frame-btn {
width: auto;
height: auto;
position: absolute;
top: 38px;
right: 270px;
border: 2px solid;
padding: 5px;
padding-left: 20px;
padding-right: 20px;
border-radius: 100px;
}
.login-frame-btn {
width: auto;
height: auto;
position: absolute;
top: 45px;
right: 390px;
}
.contact-frame-btn {
width: auto;
height: auto;
position: absolute;
top: 45px;
right: 460px;
}
.blog-frame-btn {
width: auto;
height: auto;
position: absolute;
top: 45px;
right: 550px;
}
.partners-frame-btn {
width: auto;
height: auto;
position: absolute;
top: 45px;
right: 620px;
}
.activities-frame-btn {
width: auto;
height: auto;
position: absolute;
top: 45px;
right: 720px;
}
.share-your-dream-top {
width: auto;
height: auto;
position: absolute;
top: 37%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: MontserratExtraBold;
font-size: 50px;
}
.share-your-dream-bottom {
position: absolute;
top: 47%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: MontserratExtraBold;
font-size: 50px;
}
.find-perfect-friend {
position: absolute;
top: 58%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: RobotoLight;
font-size: 22px;
}
.find-holiday {
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: MontserratSemiBold;
font-size: 14px;
border: 1px solid none;
padding: 5px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 25px;
padding-right: 25px;
border-radius: 100px;
background-color: #FF4E50;
}
.meet-partner {
margin-top: 58px;
color: #444444;
font-family: MontserratSemiBold;
font-size: 22px;
text-align: center;
}
<header>
<div class="container-header-image">
<img src="https://placeimg.com/80/80/any" alt="header-picture" style="width:100%;" class="image-background" />
<div class="top-menu">
<span class="logo-name-wording">TRAVELLING</span>
<span class="link-top-menu">
<span class="activities-frame-btn">Menu 1</span>
<span class="partners-frame-btn">Menu 2</span>
<span class="blog-frame-btn">Menu 3</span>
<span class="contact-frame-btn">Menu 4</span>
<span class="login-frame-btn">Menu 5</span>
<span class="signup-frame-btn">Menu 6</span>
</span>
</div>
<div class="share-your-dream-top">
<span>TELL YOUR</span>
</div>
<div class="share-your-dream-bottom">
<span>TRAVEL EXPERIENCE</span>
</div>
<div class="find-perfect-friend">
<span>And find the perfect friend to tell</span>
</div>
<div class="find-holiday">
<span>Find your friend</span>
</div>
</div>
</header>
On JSFiddle, the layout doesn't display properly at 100% zoom; you need to zoom out to 50% or less to view the entire page. However, in a regular browser, it's showing correctly at 100% zoom.