Set the padding will work, but line-height works the best.
Example
a{ font-size 12px; line-height:20px;}
This would give you a "hit-space" of 20px vertically on the anchor tag.
Cheers,
Jamie
On Sun, Oct 5, 2008 at 12:19 PM, Dinsdale <[EMAIL PROTECTED]> wrote:
>
> I can change the background color of a link, no problem. But the
> background is cut so close to the text, it doesn't look good.
>
> How can I expand the background area (similar to "hit space" in
> Flash) around linked text?
>
> I'm reluctant to go back and create graphics for both "states" but
> there MUST be a way to expand the background area behind linked
> text.
>
> Padding, or margins of some sort?
>
> Has anyone succeeded in doing this?
>
> Thanks so much - I'll keep scouring the Internet for something like
> this.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS"
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---