Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9197051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:59:14+00:00 2026-06-17T21:59:14+00:00

What I have I have a normal HTML link, like <a href=#>Link</a> . In

  • 0

What I have
I have a normal HTML link, like <a href="#">Link</a>. In my stylsheet, I have set that link to display: inline-block; because I have to push it around a bit to match the layout.
The font-style is set to italic.

The problem
This leads to the following problem: Because the text is set in italics, the last letter of the linked word exceeds the box around the link. Because of that, Safari & Chrome “cut up” a color change on hover. See that screenshot where I assigned a background color to the link to make it more clear.
enter image description here
The normal link color is the light one, the blue one is the hover color.

Firefox manages this correctly without cutting anything up.

Setting a padding for the link would probably be the simplest solution, but I feels like a workaround for me. Is there any other solution?

Fiddle: http://jsfiddle.net/qD78e/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:59:15+00:00Added an answer on June 17, 2026 at 9:59 pm

    You could always add padding to the italic class, something like:

    a{
        display: inline-block;
        font-style: italic;
        font-size: 100pt;
        background-color: red;
        color: white;
        padding: 0 10px;
    }
    

    would give you this: http://jsfiddle.net/8ZAUf/ – this seems to display the same in all the browsers I tested (opera, safari, chrome, firefox).

    You could also take Kamo’s suggestion, although I’d modify it slightly and do this:

    #prob:after{
      content: '\00a0';
      font-size: 18pt;
    }
    

    giving you: http://jsfiddle.net/AZS6S/, you can then re-use this (obviously by using a class, not an id).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view that contains an anchor link. That link has an href
I have 1 link surrounding another one like this: <a href=# class=video-link> <a href=#
I might be doing something stupid. But if I have a normal link like:
What I want to do is have a normal link for desktop browsers like
I have normal sqlite database and want to use fts3. As mentioned in http://www.sqlite.org/fts3.html
I have a normal asp.net page containing some code that I want to measure
I have read that 'Normal' ARM instructions are fixed length - 32 bits. And
Is it normal to have tests that are way bigger than the actual code
I want my HTML page to load like normal, but I want one section
my aspx (html) code is like below : this is first button (something that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.