How do you do this: (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Giomanach -> How do you do this: (1/5/2004 10:27:07)

I know the CSS for links with backgrounds is:

a:link {
font: bold
color: #FFFFFF;
text-decoration: none;
background: #000000
}

But how do you make the background wider than the link itself.

Cheers




bobby -> RE: How do you do this: (1/5/2004 17:50:56)

Try adding this:

padding-left: 10px;
padding-right: 10px;

see if that does it... you can adjust the size to suit your needs.

You'll need to add that to each state of the link... link, visited, hover, active.




Giomanach -> RE: How do you do this: (1/6/2004 3:45:34)

Works Thanx




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125