You are here: 3 horizontal divs « HTML « IT news, forums, messages
3 horizontal divs

Posted by sfitas on 09/01/06 06:55

Hello,
I need to have 3 divs (or table rows) in horizontal aligment , the
first and third should have about 30px and the second(the centre one)
should take the rest of remaining space between them. The example below
is to ilustrate what I want do achieve but the center divs height is
set to 90% which is not very good for every screen size.


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body style="height: 100%; margin: 0 0 0 0;">
<form id="form1" runat="server">
<div style="height: 100%; width: 100%; background-color:
Fuchsia; ">
<div style="height: 30px; background-color: Aqua; width:
100%;">
header</div>
<div style="height: 90%; width: 100%; background-color:
Beige;">
w</div>
<div style="height: 30px; background-color: Brown; width:
100%;">
footer
</div>
</div>
</form>
</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

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