Question

I have a webpage which the main body is about 95% in width, So the problem i have is i want the footer to be 100% even though i am aware that the footer is a child of the main body this making the footer an equal width as the body.

Here is an example of my problem

Is there anyway i can override the footer without having to increase the body to 100% width?

I already attempted to set the footer inside a div but i still haven't been able to come up with a solution to my problem

Was it helpful?

Solution

Make a wrapper that is 100% width. Give your content 95% width, give everything else 100%.

<div class="wrapper">
    <header>...</header>
    <div id="content">...</div>
    <footer>...</footer>
</div>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top