Pri tvorbe stranky som chcel vyskusat metodu vyhradne prostrednictvom div a css. avsak narazil som na problem hned pri zaciatku.. Zatial na nej nic nie je ale hodil som ju na svoju staru stranku aby ste si to mohli pozriet http://www.morb.pacienti.sk. Na Firefox 2.0.0.1 sa mi to zobrazuje ako chcem. Na FF 1.0.3 je to uz ale ine a na IE este horsie. Poradte prosim..dik
Kod - default.css
body{
background: url("bg_body.gif")repeat-x 0px 55px;
background-color:#3f3f3f;
margin: 0;
padding-top: 5px;
}
#container {
margin: 0 auto;
padding: 0;
position: relative;
width: 800px;
text-align: left;
}
#top{
background: url("top.gif") no-repeat;
width: 800px;
height: 50px;
}
#logo{
background: url("mid.gif") no-repeat;
width: 800px;
height: 186px;
}
.invisible{ display:none; visibility:hidden;}
#navlist {
margin: 0;
width: 800px;
height: 30px;
list-style: none;
padding: 20px 0 0 375px;
}
#navlist li {
list-style-type: none;
display: inline;
margin: 0;
padding: 0;
}
#navlist li a {
text-decoration: none;
float: left;
height: 30px;
overflow: hidden;
padding-left: 5px;
}
#navlist li a span{ visibility:hidden;}
#about{ width: 98px; height: 30px; background: url("about.gif") no-repeat; }
#about:hover{ background: url("about_hover.gif") no-repeat; }
#about:active, #about:focus, #about #active { background: url("about_hover.gif") no-repeat; }
index.htm
<body>
<div id="container">
<div id="top"><h1 class="invisible">Top</h1>
<ul id="navlist">
<li><a id="about" href="#"><span>About me</span></a></li>
<li><a id="about" href="#"><span>About me</span></a></li>
<li><a id="about" href="#"><span>About me</span></a></li>
<li><a id="about" href="#"><span>About me</span></a></li>
</ul>
</div>
<div id="logo"><h1 class="invisible">Logo</h1></div>
</div>
</body>