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
when i float anything on my css the structure of the page changes. How to solve?
when i float anything on my css the structure of the page changes. The footers comes to section.
I was trying to make the website responsive :(
even the border is not coming to the center. Anybody know how to make borders to the center?
How to solve?
Codin - Codesmite8,600 Points
Floating an element removes it from the normal page flow in the same way as if you had set the element to fixed or absolute positioning.
If responsive is your goal I would recommend using as little floats as possible and aim to use relative positioning, percentage sizes and CSS media queries to adapt to display sizes.
If you post your code here or on somewhere like www.codepen.io I can help show you how to acheive the layout you are aiming for and keep it responsive.