Home > DeveloperSection > Forums > set header and footer with in master page
ezra heywood
ezra heywood

Total Post:145

Posted on    March-12-2013 2:14 AM


 1 Reply(s)
 694  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!


Total Post:604

Posted on    March-12-2013 8:26 AM

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">

Don't want to miss updates? Please click the below button!

Follow MindStick