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 trial
Nathan Begnaud
8,221 PointsMy Text Keeps Moving When Resizing My Browser?
Here's my code, .about-us-paragraph p { font-size: 24px; font-family:Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif; color: white; margin-top: 5%;/580px/ margin-right: 0%;/50px/ margin-left: 29%;/80px/ margin-bottom:0px; top:540px; bottom: 0px; left: 0; right: 0px; position: absolute; padding-right: 10px; padding-top: 10px; height: 100%; width: 85%; line-height: normal;
}
It seems like I've tried everything from giving things percentages to switching stuff up. What am I doing wrong?
2 Answers
Mark Josephsen
8,803 PointsI think you width:85%; is messing it up. Replace it with this instead:
min-width: 100%;
Now your text will stay put.
Nathan Begnaud
8,221 PointsI figured it out, It was due to the @media screen I made lol.
Nathan Begnaud
8,221 PointsNathan Begnaud
8,221 PointsI think it has something to do with my other code somehow. Was using a website template to start off with, but thanks for your input.