CosaNostra
Registered
Здравейте! Имам меню с линкове и за бекграунд съм сложил картинка обаче, за да се вижда цялата картинка използвам падинг иначе картинката свършва там където свърши и името на линка. Надявам се да сте ме разбрали а ето и кода:
[css]#menu-l-links { margin-left: -33px; position: absolute; }
#menu-l-links ul, li { list-style: none; padding-bottom: 15px; }
#menu-l-links span { padding-top: 2px; padding-bottom: 4px; padding-left: 26px; background: url(../images/menu-button.gif) no-repeat; padding-right: 120px; }
#menu-l-links span:hover { background: url(../images/menu-hover.gif) no-repeat; width: 100px; }
#menu-l-links a:link { font: 12px Tahoma; font-weight: bold; color: #252525; text-decoration: none; }
#menu-l-links a:visited { font: 12px Tahoma; font-weight: bold; color: #252525; text-decoration: none; }
#menu-l-links a:hover { font: 12px Tahoma; font-weight: bold; color: #c6c6c6; text-decoration: none; }
#menu-l-links a:active { font: 12px Tahoma; font-weight: bold; color: #c6c6c6; text-decoration: none; }[/css]
[css]#menu-l-links { margin-left: -33px; position: absolute; }
#menu-l-links ul, li { list-style: none; padding-bottom: 15px; }
#menu-l-links span { padding-top: 2px; padding-bottom: 4px; padding-left: 26px; background: url(../images/menu-button.gif) no-repeat; padding-right: 120px; }
#menu-l-links span:hover { background: url(../images/menu-hover.gif) no-repeat; width: 100px; }
#menu-l-links a:link { font: 12px Tahoma; font-weight: bold; color: #252525; text-decoration: none; }
#menu-l-links a:visited { font: 12px Tahoma; font-weight: bold; color: #252525; text-decoration: none; }
#menu-l-links a:hover { font: 12px Tahoma; font-weight: bold; color: #c6c6c6; text-decoration: none; }
#menu-l-links a:active { font: 12px Tahoma; font-weight: bold; color: #c6c6c6; text-decoration: none; }[/css]
HTML:
<div id="menu-l">
<div id="menu-l-links">
<ul>
<li>
<a href="home.php">
<span>Profile</span>
</a>
</li>
</ul>
</div>
</div>