Jump to content

Making a DIV be 100% - 400px;


Xyphon

Recommended Posts

You can do it like this:

<html>
<head>
<style>
#left
{
   position:fixed;
   left:0;
   width:200px;
   height:400px;
   background-color:#F00;
}
#right
{
   position:fixed;
   right:0;
   width:200px;
   height:400px;
   background-color:#0F0;
}
#content
{
   height:400px;
   background-color:#00F;
   padding:0 200px 0 200px;
}
</style>
</head>
<body>
<div id="left"></div>
<div id="right"></div>
<div id="content">text</div>
</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.