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 trialjohn knight
Courses Plus Student 9,155 PointsI Fairly got a bad time positioning the header in the browser.
My website that am working on is having fairly bad time at positioning the header and the Navigations in my website, I Fixed the problem with the fixed positioning, What do i want right now is give my header the full with with no margins or paddings and does not follow the user when he scrolls more on the webpage. How I would do that?.
john knight
Courses Plus Student 9,155 PointsYes, Here's the code: <head> <style> header{ width:100%; top:0; left:0; margin:0 auto; padding:0 auto; } </style> </head> <body> <header> <p>am a p tag</p> </header> </body> </html>
1 Answer
Lee Cockcroft
10,278 PointsSorry, I dont quite understand what you want?
Is it the P tag you want as the full width? width 100% will make it the full length, for example if you put a background-color on now it will be the full length
Lee Cockcroft
10,278 PointsLee Cockcroft
10,278 PointsDo you have the code?