Ahojte mám problem chcem aby mi li ukazovalo po celej šírke nie len po tial ako skončí text odkazu, ako na to ?
v index.php
Kód:
<div id="bar"><div class="cat"><h4>Categories</h4></div><?php require("bar.php");?></div>
bar.php
Kód:
<?php
$catsql = "SELECT * FROM categories;";
$catres = mysql_query($catsql);
while($catrow = mysql_fetch_assoc($catres))
{
echo "<li><a href='" . $config_basedir
. "/products.php?id=" . $catrow['id'] . "'>"
. $catrow['name'] . "</a></li>";
}
?>
a css
Kód:
#bar {width:190px;float:left;background-color:#625b3e;margin-left:15px;}
#bar li{width:190px;;height:30px;list-style-type:none;display: block;}
#bar li a{height:30px;width:190px;font-size:14px;font-family: Arial;color:white;text-decoration:none;}
#bar li a:hover{background-color:#000;width:190px;height:30px;}
Prečo mi to nefunguje kde je problém ?