invalid4564
Programmer
Hello. I need help creating menu tabs using CSS. I found one tutorial and it uses the following code:
This doesn't completely work. It adds the left and right tabs but it doesn't cut the edges of the background color. So the result is left and right tabs with the edges of the background color sticking out past the tab images.
The complete tutorial can be found at
Does anyone know how to correct this problem?
Thank you for your help.
HTML:
<div id="navigation">
<a href="#"><span>Home</span></a></div>
CSS:
#navigation a
{
color: #000;
background: #ffa20c url('images/left-tab.gif') left top no-repeat;
text-decoration: none;
padding-left: 10px
}
#navigation a span
{
background: url('images/right-tab.gif') right top no-repeat;
padding-right: 10px
}
This doesn't completely work. It adds the left and right tabs but it doesn't cut the edges of the background color. So the result is left and right tabs with the edges of the background color sticking out past the tab images.
The complete tutorial can be found at
Does anyone know how to correct this problem?
Thank you for your help.