mam ju v jednom riadku
a:hover aj obycajne a mi idu iba ten active mi nejde...
co mam urobit? ak v zdojovom to mam asi takto:
- Kód: Vybrať všetko
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<title>PANTHER's Web Pages (Home)</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="index.html"><div id="logo">
</div></a>
<div id="navigation">
<a class="navlink" href="index.html">Home</a>
<a class="navlink" href="index.html">News</a>
<a class="navlink" href="index.html">Download</a>
<a class="navlink" href="index.html">Contact</a>
<a class="navlink" href="index.html">About</a>
</div>
<div id="content">
<div id="col-one">
<div class="margin-news">
<h2>Najnovšie</h2>
</div>
</div>
<div id="col-two">
</div>
<div id="col-three">
<h3>Kamaráti</h3>
<p>blablabla...</p>
</div>
<div style="clear: both;"></div>
</div>
</span>
<div id="footer">
<p>PANTHER © 2007 | Created by <a href="contact.html">PANTHER</a></p>
</div>
</body>
</html>
a v CSS takto:
- Kód: Vybrať všetko
...
/*** Navigation ***/
#navigation
{
width: 760px;
height: 20px;
background: url('images/navigation.png');
font-size: 12px;
border-left: 1px solid black;
border-right: 1px solid black;
margin: auto;
}
a.navlink
{
float: left;
display: block;
height: 20px;
width: 90px;
text-decoration: none;
color: white;
font-weight: bold;
line-height: 20px;
text-align: center;
}
a.navlink:hover
{
height: 20px;
color: black;
background: white;
}
skusal som uz tam v indexe pomenit, ze iba jedneho a som dal class navlink a potom som do css zadal:
- Kód: Vybrať všetko
a.navlink.active
{
width: 90px;
height: 20px;
color: black;
background: url('images/nav_bg.png');
}
a furt nejde
pls help...




News
![Validate my Atom 1.0 feed [Valid Atom 1.0]](http://validator.w3.org/feed/images/valid-atom.png)