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

CSS

Whats the right way to layout my page

Hi all,

i have a question. Is there any Design Pattern for CSS how i should layout my page? Should i work with floats or with positioning in CSS? Whats the better way to handle this?

Thanks :)

There's no simple answer but, for general layout, floats and/or blocks and inline-blocks are usually the order of the day.

What you really need to do my friend is to go through Treehouse's excellent 'CSS Layout Techniques' course, by Guil. Covers everything you need to know to get started, as well as common bugs.

Mark Josephsen
Mark Josephsen
8,803 Points

I'll check that out for sure.

2 Answers

Mark Josephsen
Mark Josephsen
8,803 Points

Floats are always better than absolute positioning. This makes your page dynamic. If you use absolute positioning, users with different screen sizes will have a poor experience on your site.

ok, thank you! :)