Forum Moderators: not2easy

Message Too Old, No Replies

bug in css with background image

         

NewSkool

12:18 am on Mar 12, 2006 (gmt 0)



ok i have :

a { background: url("../img/stuff.gif") center right no-repeat; }

but!

it works but the image becomes "stuck" in the link like its whole width is inside the text not pushed to the right of it

how can i add space here i know you know what i mean thnaks

JAB Creations

12:32 am on Mar 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just give your anchor padding.

For example I have various background icons in my anchors to signify various types of links (music, download, external, email, etc).

If your icon is 30px in width give yourself about 32px padding.

padding: 0px 32px 0px 0px;
or
padding-right: 32px;

I put the icons on the right side but thats just me.

John

NewSkool

12:53 am on Mar 12, 2006 (gmt 0)



than#*$! i fixed it thanks to u