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 6662915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:26:31+00:00 2026-05-26T02:26:31+00:00

I have a link with display set to inline-block , and next to it

  • 0

I have a link with display set to inline-block, and next to it is a <div> with the same height. However, the <div> is somehow appearing offset downwards, and I’m not sure why.

Here’s a jsFiddle: http://jsfiddle.net/2bWjx/1/

What’s happening

#stats (grey) is appearing lower down than a.sector one-letter.

What I want to happen

#stats should be equally set (top and bottom at the same point) as a.sector one-letter.

I’ve been struggling with this for a while, and could use some help. Should be a simple fix!

Thanks for any help in advance!

  • 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-05-26T02:26:32+00:00Added an answer on May 26, 2026 at 2:26 am

    You need to add vertical-align: top to whatever has display: inline-block.

    See: http://jsfiddle.net/thirtydot/2bWjx/2/

    The default vertical-align is baseline, which causes the problem you’re seeing.

    You can see the difference between the various possible values here: http://www.brunildo.org/test/inline-block.html

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

Sidebar

Related Questions

http://jsfiddle.net/nicktheandroid/3LxRr/ When highlighting a paragraph containing a link that's set to display:inline-block, there appears
In my main CSS file, I have my a:link selector set to display links
I have a html.actionlink that i wish to display a link to a members
I have a four divs all set display:none and on document.ready i am showing
I have a header set up like this: <div id=header> <div class=container_16> <div class=grid_4><img
Hi I have a comment posting function where public user can link and display
I've got a set of product listings that each have a link below them
I have set up the DOM Element (hidden div) exmplae of nyroModal on my
I have this link: <div id='up_arrow_div'> <%= link_to &uArr;.html_safe, video_votes_path( :video_id => video.id, :type
I have 4 div's on the page with unique ID's. Example external link: www.website.com/page.html#one

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.