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
Michael Whitehead
Courses Plus Student 470 PointsCSS - styling a front page
Currently styling up my first website - obviously making lots of schoolboy errors.
- Can't seem to get any of the elements to spread across the screen - all clinging to left-hand side of the page ( Nav a's / lower sections)
- Image - i've used CSS rather than html for a background image on some text. Image has magnified considerably (When i use HTML it won't spread across the screen and text sits outside of the image).
Any help re what code i should be using would be appreciated. TIA.
1 Answer
Mike Fondario
11,286 PointsTry using
margin-left: auto; margin-right: auto; text-align: left, right, center;
This should get you started. The CSS courses will get you where you want to go very fast. Try those first.