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

  • Home
  • SEARCH
  • 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 7886375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:18:09+00:00 2026-06-03T05:18:09+00:00

I need to get a link with an icon after a link. For example:

  • 0

I need to get a link with an icon after a link.

For example:

Link [icon]

The line height I’d like is 30px. So, I have such a markup:

<div class="phone-support">
   <a href="#">We'll call you</a><i class="icon"></i>
</div>

.phone-support a {
   display       : inline-block;
   line-height   : 30px;
   padding-right : 5px;
   height        : 30px;
}

.phone-support i.icon {
   display       : inline-block;
   height        : 30px;
   width         : 30px;
   background    : url('/path/to/sprite.png') -10px -10px;
}

I considered it should work, but the height of .phone-support becomes 41px, but why? And elements aren’t aligned vertically. They simple stays each after each, why this happens?

P.S. My browser is Chromium 18. Don’t pay attention on that there is no ie-inline-block-fix, etc. CSS code is simplified just to point to the problem.

enter image description here

  • 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-03T05:18:11+00:00Added an answer on June 3, 2026 at 5:18 am

    jsBin demo

    Just put your <i> inside the <a>. The benefit? your image will be linkable.

    <div class="phone-support">
       <a href="#">We'll call you  <i class="icon"></i> </a>
    </div>
    

    Than set a vertical-align:top; to set your image at the top of the <a> parent.

    .phone-support i.icon {
         display       : inline-block;
         vertical-align: top;
         height        : 30px;
         width         : 30px;
         background    : url(your url here);
         margin-left   : 10px;  /*add some space*/
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After load content to page using div.load('page.php'); I need get all of links from
I need to get the parent div of the hyperlink clicked. In the example
I have this link http://lazhalazha.livejournal.com/data/rss with RSS in it, what I need to get
I need get all items these have no categories int? categoryId = null; var
I have two tables with a weak relation. I need get a text value
Need to get the 10 word before and 10 words after for the given
Need to get an div with overflow:hidden; not to wrap its children. I need
In our web-aplication we use several alerts like this: I need to retrieve link
I need to get the datahours , etc. for the specific clicked link within
I have this small problem with jquery: I need to do something like this:

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.