Forum Moderators: not2easy

Message Too Old, No Replies

use 3 div's

         

Lolalola

2:14 pm on Apr 9, 2010 (gmt 0)



Hi,
I need three tables (div).
The left and right sides of the occupied 50% of the free window.
The center is fixed.

Everything seems fine, but right down to jump off the table.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<style type="text/css">
body{
margin:0;
padding:0;
}
#left{
float: left;
width: 50%;
background: #FDA02E;
margin-left: -300px;
}
#center{
float: left;
width: 600px;
margin-right: 300px;
background: #C8FF98;
}
#right{
float: left;
width: 50%;
margin-left: -300px;
background: #FDE95E;
}
</style>
</head>
<body>
<div id="pag">
<div id="left">
Left
</div>
<div id="center">
Center
</div>
<div id="right">
Right
</div>
</div>
</body>
</html>

seomasters1

8:52 am on Apr 12, 2010 (gmt 0)

10+ Year Member



If you are using more than 2 divs, life would just be easier just to use a table, as long as you are containing data inside them. There is no error in putting data in tables just images is kind of a no no.

Hope this helps a little,

Thanks