Forum Moderators: not2easy

Message Too Old, No Replies

Div within Divs not expanding to fit content

         

lakeo

2:16 pm on Jul 25, 2007 (gmt 0)

10+ Year Member



There is a main container then a div inside that labelled "one" with 12px padding...then another div with 4px padding labelled "two".

This second div is not expaninding like the first should the page have alot of text or imagery. Its been doing my head in for some time and i would love for someone to tell me where im going wrong.

Code below:

<!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=iso-8859-1" />
<link href="syles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
<div id="first">
<div id="second">
<div id="left">
<div class="info">
<div class="hash">
<div class="lefttitle">asdasd</div>
<div class="righttitle"><?php include ("logo.php");?></div>
<div>
<p>sdfdsfsf</p>
<p>asdasdsa</p>
<p>asd</p>
<p>asdasd</p>
<p>asdasdasd</p>
<p>asd</p>
<p>mklm</p>
</div>
</div>
</div>
</div>
<div id="right">
<p>xczxczxcxzc</p>
<p>zxczcz</p>
<p>zxczxcxzc</p>
<p>zxczxczxc</p>
<p>zcxzczcdasdasd</p>
<p>adasd</p>
<p>sddad</p>
</div>
</div>
</div>
</div>
</body>
</html>

Xapti

8:29 pm on Jul 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is CSS forum, where's your CSS code?