Skip to content Skip to sidebar Skip to footer

Css Two Column Full Width

So I have a website which has a header, a footer and two main content columns inbetween. The left column is for navigation. The right one is a map. I want both to fill the width of

Solution 1:

You need something like this:

#map {
    margin-left:250px;    
    height:572px;
}
#leftnav {
    float:left;
    width:250px;
    height: 572px;  
}

The idea is to float the leftnav and then set a left margin for the map that is equal to the width of the leftnav.

You can see it live here: http://dabblet.com/gist/2767788

Solution 2:

#nav {
position:absolute; 
left:0px; width:250px;
height:375px; top:50px; /* height of your top bar*/
}

#map{
margin-left:250px;
height:572px;
}

Solution 3:

Something like this should be what you need.

<style>#main
{
    width: 900px;
    overflow: hidden;
}

#leftnav
{
    float: left;
}

#map
{
    float: right;
}
</style><divid="header"></div><divid="main"><divid="leftnav"></div><divid="map"></div></div><divid="footer"></div>

Solution 4:

Write like this:

#map{
    overflow:hidden;
    height:572px;
    border-right: 2px solid #000;
    border-bottom: 3px solid #000;
    }

#leftnav{
    float:left;
    width:250px;
    height: 572px;  
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    }

Post a Comment for "Css Two Column Full Width"