You are here: CSS - horizontally aligned containers at same height « HTML « IT news, forums, messages
CSS - horizontally aligned containers at same height

Posted by hgwoss on 03/22/06 13:03

Hi everybody,

I have already read quite a bit about this subject. But I did not find
any recent postings. This is why I would like to ask you a question.
Inside a containing element I have arranged two more containers so that
they are aligned horizontally (float:left).
Now if the height of one of these containers gets greater then that of
the other container (due to more lines of text inside that container),
I still want them to have the same height.

As far as I understand, this may not be realizable unless the
containing element is given a specific height.

If there should be a solution, i would be greatfull for advice.

In order to illustrate the problem, here is some code:

<html>
<head>
<style type="text/css">
<!--
..links
{
width:245px;
float:left;
background-color:#E3E5DA;
border: #000000 1px solid;
margin-right:5px;


}


..rechts
{
background-color:#E3E5DA;
border: #000000 1px solid;
float:left;
width:436px;

}


-->
</style>
</head>
<body>
<div>
<div class="links">
Zeile 1<BR>
Zeile 2
</div>
<div class="rechts">
Zeile 1
</div>
</div>
</body>
</html>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация