Please help me also if it is html and not javascript

M

MY

Please take a look to this little sample that works best (for my purposes)
only with MSIE

Infact I want that the <div>#conteiner is the background of <div>#one and
<div>#two and it must be height like the most height <div> conteined into
In this case <div>#two is the most height therefore I want that
<div>#conteiner is height like <div>#two.
BUT that is true only with MSIE but not with FF


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style type="text/css">
div#conteiner{width:100%;background-color:silver;height:auto}
div#one {width:49%;background-color:red;float:left}
div#two{width:49%;background-color:yellow;float:right}
</style>
</HEAD>

<BODY>
<div id="conteiner">
<br>
<div id="one">
<h2>This div is floating to left</h2><br>and have some rows
</div>
<div id="two">
<h2>This div is floating to right</h2><br>blha blhablha blhablha blhablha
blhablha blhablha blhablha blhablha blhablha blhablha blhablha blhablha
blhablha blhablha blhablha blhablha blhablha blhablha blhablha blhablha
blha<br>and have many rows

</div>
<br><br><br><br>

</div>
<h1>This div is out of div#conteiner and </h1>
</BODY>
</HTML>
 
P

Peter Michaux

Please take a look to this little sample that works best (for my purposes)
only with MSIE

Infact I want that the <div>#conteiner is the background of <div>#one and
<div>#two and it must be height like the most height <div> conteined into
In this case <div>#two is the most height therefore I want that
<div>#conteiner is height like <div>#two.
BUT that is true only with MSIE but not with FF

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style type="text/css">
div#conteiner{width:100%;background-color:silver;height:auto}
div#one {width:49%;background-color:red;float:left}
div#two{width:49%;background-color:yellow;float:right}
</style>
</HEAD>

<BODY>
<div id="conteiner">
<br>
<div id="one">
<h2>This div is floating to left</h2><br>and have some rows
</div>
<div id="two">
<h2>This div is floating to right</h2><br>blha blhablha blhablha blhablha
blhablha blhablha blhablha blhablha blhablha blhablha blhablha blhablha
blhablha blhablha blhablha blhablha blhablha blhablha blhablha blhablha
blha<br>and have many rows

</div>
<br><br><br><br>

</div>
<h1>This div is out of div#conteiner and </h1>
</BODY>
</HTML>

There is no JavaScript in this. The best place to ask about CSS is on

<URL: http://www.css-discuss.org/>

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top