Jump to content

letter-spacing & borders


Guest sovietbot
 Share

Recommended Posts

Guest sovietbot

i'm using a dotted border instead of an underline for my links' hover state. this works fine except where i've got links with additional letterspacing. the border extends beyond the word to the edge of the space, which looks rather ugly...examplethe CSSso my question: is there an efficient way of clipping the right edge of that border?

Link to comment
Share on other sites

i'm using a dotted border instead of an underline for my links' hover state. this works fine except where i've got links with additional letterspacing. the border extends beyond the word to the edge of the space, which looks rather ugly...examplethe CSSso my question: is there an efficient way of clipping the right edge of that border?

the letter-spacing you have defined will apply to every letter - so the extra space is from .5 space being added to the area it takes up.The only way around that would be to class the last letter of each link to not have the letter-spaceing.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...