i have been studying website design for just over a year i previously used tables as a way of layout
but now i want to get to the nuts and bolts and start using purely css and html i have been trawling through code and now finally get the jist.
my question is why cant i sit a div in the middle of two column here is the code i have been working on
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrap">
<div id="header"></div>
<div id="sidebar2">Content for id "sidebar2" Goes Here</div>
<div id="main">
<div id="sidebar1">Content for id "main" Goes Here </div>
</div>
</div>
</body>
</html>
Enter your message below
Sign in or Join us (it's free).