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
Gabriel E
8,916 PointsGood way to get text to go only so far on one page?
I have a snippet of code that aligns some <p> text and a headline to the left, with a left margin of 30px; But there's this really annoying x axis scroll bar that appears with I add another div with an element in it. (I have a page that has 1 image to a div for a scrolling background.) Right now, I added overflow-x: hidden, but now there's a little bit of each end of the paragraph lines that go off the page. Either how can I keep from going off with a limiting margin, or how can I kill this nasty x axis bar? Thanks all!
G
1 Answer
Belve Marks
7,332 PointsResize your container div max-width to be 100%.
Gabriel E
8,916 PointsGabriel E
8,916 PointsAh! Thanks Belve! I assume I keep overflow x hidden?