How can I make a DIV expand to the size of the content in which I have put it? I've done this:
I tried using a table but it still doesn't work. p.s. forgive my rubbish coding :] I'm new to it all.HTML Code:CSS: #content { position:absolute; width:680px; left: 170px; top: 120px; border: 1px solid black;} ---------------------------- <div id="content"> <table width="680" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#336699"><marquee> Welcome to Habbo Positive :-: A positive place full of positive people :-: Visit our forums by clicking <a href="http://www.habbo-positive.co.uk" target="resourcewindow">here</a> </marquee></td> </tr> <tr> <td bgcolor="#FFFFFF"><iframe src="welcome.html" width="100%" height="100%" frameborder="0" scrolling="no" name="main">Your browser doesn't support inline frames</iframe></td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> </tr> </table> </div>






Reply With Quote




