<!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" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/> <link href="styl.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="content"> <div id="left"> <ul> </ul> <div class="gl_obr">jakis tekst tutaj bedzie hadzia ... jakis tekst tutaj bedzie hadzia ... jakis tekst tutaj bedzie hadzia ... jakis tekst tutaj bedzie hadzia ... jakis tekst tutaj bedzie hadzia ... jakis tekst tutaj bedzie hadzia ... jakis tekst tutaj bedzie hadzia ... jakis tekst tutaj bedzie hadzia ... </div> </div> </div> </body> </html> /** CMS * domyslny szablon * dyktek/hadzia... */ body { font-family: Arial, Verdana, Tahoma; font-size: 13px; margin: 0px; } /* szkielet szablonu */ #top { background-image: url(img/backg_right_top.gif); background-repeat: repeat-x; height: 88px; } #content { background-color: #95B9DD; height: 100%; } #left { width: 178px; height: 100%; float: left; } #left ul { background-image: url(img/gora_menu.gif); background-repeat: no-repeat; margin: 12px; padding: 20px 0px 14px 0px; width: 144px; } #left li { list-style: none; background-image: url(img/backg_menu.gif); background-repeat: repeat-y; border-top: 1px solid #2C609A; border-bottom: 1px solid white; border-left: 1px solid #2C609A; border-right: 1px solid #2C609A; padding: .4em; cursor: pointer; } #left li:hover { background-image: url(img/backg_menu_hover.gif); } #left li.bottom { border: 0px; background-image: url(img/dol_menu.gif); background-repeat: no-repeat; width: 144px; height: 31px; cursor: auto; } #left a, a:hover { background-image: url(img/lista_strzal.gif); background-repeat: no-repeat; background-position: left center; font-family: Tahoma, Arial, Verdana; font-size: 17px; color: #004180; padding: 0px 0px 0px 14px; text-decoration: none; } #left a:hover { background-image: url(img/lista_strzal_hover.gif); color: #0076E8; } #right { padding: 20px 0px 14px 0px; margin: 0px 8px 0px 180px; min-width: 500px; } #right .gl_obr{ border: 1px solid #2C609A; background-color: #C9DCEF; background-image: url(img/tlo_menu_gl.gif); background-repeat: repeat-x; padding: 24px 4px 4px 4px; } #right .ozd_dziubek { background-image: url(img/ozd_dziubek_glowne.gif); background-repeat: no-repeat; background-position: right; height: 24px; position: relative; } #footer { clear: both; background-color: #95B9DD; height: 20px; } /* koniec szkieletu */
i problem mam tego typu w divie content mam dwa divy lef i right div left ma ustawione
co powoduje że tło diva content nie rozciąga się względem najdluzszego i tło jest niekompletne. W IE w sumie to działa bo dodałem do content height: 100%; w FF i Operze niestety już nie jak temu zaradzić?
float: left;