set header and footer with in master page

Posted by  ezra heywood
 1393  View(s)
Rate this:

Hi Everyone!

I want to create header and footer for my master page. problem is that, When I have set div with as 100%, When we resize window then header contain

disturbed. When I have set div with in px then it's behave differ for every browsers. Pleas tell me how to manage it.

my line of code as below
<div style="header"></div>
<div style="contain"></div>
<div style="footer"></div>

Thanks in advance!

  1. Re: set header and footer with in master page

    Hi Ezra!

    Put your div into another div and set that backgorund color same as you fixed main div.

    <style type="text/css">
                width: 100%;
                background-color: #e5e5e5;
                margin: -8px -8px 0px -8px;
                width: 1200px;
                height: 100px;
                background-color: #e5e5e5;
                margin: 0px auto 0px auto;

    <div class="maindiv">
            <div class="innerdiv">