Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKayla Pasciullo
Front End Web Development Techdegree Student 8,325 Pointswhy would some webpages on my site appear "zoomed in??"
I have completed my first website but have been struggling for weeks with my background/nav bar on 1/2 of my site
my home page and projects page look good, but my about page and contact page have the background image and nav bar appearing larger.. it looks like those two webpages are zoomed in??
has anyone seen this before?? ive tried playing with literally every line of code and nothing seems to fix it!! AHH
please look at my site and let me know if you have any ideas of how i can fix this!!
thank you SO much!!!
SOME OF MY ABOUT PAGE CODE
*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: sans-serif;
text-align: center;
}
html {
background-image: url('domenico-loia-hGV2TfOh0ns-unsplash.jpg');
background-repeat: repeat;
background-attachment: fixed;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
-moz-background-size: cover;
background-position: center;
}
body, html {
height: 100%;
}
<script src="jquery-3.5.1.min.js"></script>
<link rel="stylesheet" href="aboutstyles.css">
<title>Kayla Pasciullo - Web Developer</title>
<meta charset="UTF-8">
<meta name="description" content="Freelance web developer">
<meta name="keywords" content="HTML, CSS, JavaScript">
<meta name="author" content="Kayla Pasciullo">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> '''
3 Answers
Zaid Khan
12,769 PointsTry this:
body, html{
overflow-y: hidden;
}
It looks like the scroll bar on the about and contact page making the page look zoom in.
Zaid Khan
12,769 PointsTry setting max-width and height of nav-links. This will at least stop the contact page nav links from stretching.
.nav-links{
max-width: 365px;
max-height: 16px;
}
Rich Donnellan
Treehouse Moderator 27,696 PointsHmmm ... not exactly sure. But you do have a duplicate <meta>
which might affect the layout.
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
Kayla Pasciullo
Front End Web Development Techdegree Student 8,325 PointsKayla Pasciullo
Front End Web Development Techdegree Student 8,325 Pointsthanks for the idea!!! i really appreciate your help no such luck tho :( its the worst on my iphone 6plus which doesnt even show the scrollbar...
Kayla Pasciullo
Front End Web Development Techdegree Student 8,325 PointsKayla Pasciullo
Front End Web Development Techdegree Student 8,325 Pointsit must be a mistake in my HTML because even using an exact copy of my projects page stylesheet didnt change it... anyone see an error here??