
Chcę aby oba elementy <div> (menu i text) miały identyczną wysokość, płynnie dostosowywaną do zawartości. Już nie raz robiłem taki układ i działał, a teraz nie chce. Wrrr...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link rel="shortcut icon" href="favicon.png" /> <link rel="stylesheet" href="style.css" /> </head> <body> <div id="header"> </div> <div id="main"> <div id="menu"> <img src="menu_header.png" alt="Nagłówek menu" /> <ul id="menu"> </ul> <img src="menu_footer.png" alt="Stopka menu" /> </div> </div> </div> </body> </html>
body { background-image:url('background.png'); margin-top: 30px; padding: 0; border: 0; } img { border: 0; } div#header { width: 1000px; margin-left: auto; margin-right: auto; margin-bottom: 0; border: 0; } div#main { margin-left: auto; margin-right: auto; width: 1000px; margin-top: 0; overflow: hidden; } div#menu { padding-bottom: 2000px; margin-bottom: -2000px; width: 200px; float: left; } div#text { padding-bottom: 2000px; margin-bottom: -2000px; margin-top: 10px; width: 800px; background : url('text.png'); float: right; } ul#menu { list-style: none; margin: 0; padding: 0; } div#menu a { margin-left: 10px; color: #ffffff; text-decoration: none; } div.clear { clear: both; } #menu li { width : 200px; height : 50px; background : url('menu_normal.png'); } #menu li:hover { background : url('menu_hover.png'); } #menu li a { vertical-align: middle; line-height:50px; } div#footer { margin-bottom: 30px; }