when i insert a div tag in dreamweaver, around a column of text, the div box goes all the way right, making a huge horizontal box instead of wrapping around my text. any help greatly appreciated. thanks. derek
here is the code dreamweaver produced. instead of wrapping around the text, it creates a huge square div.
Code:
<!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>
</head>
<body>
<div>
<p>asdfasdf</p>
<p>asdfasdf</p>
<p>asdfasdf</p>
<p>sadfasdf</p>
<p>asdfasdf</p>
<p>asfsdaf</p>
<p>asdfasd</p>
</div>
<p> </p>
</body>
</html>
i fixed it using this, but id rather have dreamweaver do it so i can easily make it into a css
Code:
v class="leftbox" style="width:8%;float:left">
Last edited by silverglade; 09-03-2008 at 01:26 PM..
|