Michael Grigsby Michael Grigsby - 20 days ago 7
CSS Question

css and html section structure issues

I have a webpage I need help restructuring. Each section in this html webpage uses the

<section>
tag. The issue I am having is getting each
<section>
tag to span the full width using css. For example, on stackoverflow there is obviously a header
<section>
tag, body
section
tag and a footer
<section>
tag. The header and footer both have background colors and span the full width of the page (no whitespace). I know css frameworks like bootstrap achieve this stuff, but I wanna know how do I achieve this using html and css without having to use a framework?

Answer

Do you want something like this ?

Want something like this

Comments