Hi everyone,
This is apparently a very simple “menu” style but it contains a problem I cannot solve by myself
This is my HTML code:
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<meta charset='utf-8'>
<link rel="stylesheet" type="text/css" href="css/test.css" />
</head>
<body>
<ul>
<li class="no_border"><a href="#">a</a></li>
<li><a href="#">b</a></li>
<li><a href="#">c</a></li>
<li><a href="#">d</a></li>
</ul>
</body>
</html>
and this is my “test.css” file
ul {
position:absolute;
border-bottom:1px solid #9fa9aa;
border-right:1px solid #9fa9aa;
border-left:1px solid #9fa9aa;
list-style-type:none;
}
ul li {
float:right;
border-right:1px solid #9fa9aa;
color:#9fa9aa;
font-family:tahoma, arial,"sans serif";
font-size:100%
}
ul li.no_border {border-right:none}
a {
text-decoration:none;
color:#9fa9aa;
background-color:e6d9ad;
}
a:hover {background-color:red;}
Attached is a screenshot of how my page is displayed through a Chrome browser.
Why is “d” menu item wider then the other menu items !!!
What did I do wrong to make “d” menu item wider then the rest of them menu items?!!:injured:
How can I make “d” menu item as wide as the rest of the menu item ?!
henks a lot !