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!

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

CSS Introducing the Practice

Grace Weaver
Grace Weaver
1,388 Points

#text div and image box are not lining up.

I'm having problems getting my image and text box to line up. The text box is far too wide. I entered the following code for the #text id:

text {

width: 600px; padding: 100px 50px; border: 25px solid lightsalmon; margin: 10px; background-color: floralwhite; } Am I doing or missing something? Or is there a setting that I can adjust on my computer? thanks!

1 Answer

If your screen is wider than 600px, probably it will be out of your screen because you set width:600px. maybe you can try width:100% (but it depends on your container size.)

Or put in your HTML heading:

<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">