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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:25:21+00:00 2026-06-07T23:25:21+00:00

Fiddle: http://jsfiddle.net/pMZ5T/ HTML: <div id=arrowcont> <img width=30px height=30px src=check.jpg style=float:left; /> <div id=verticalcenter>Full Guide</div>

  • 0

Fiddle: http://jsfiddle.net/pMZ5T/

HTML:

<div id="arrowcont">
    <img width="30px" height="30px" src="check.jpg" style="float:left;" />
    <div id="verticalcenter">Full Guide</div>
</div>
<br>
<br>

CSS:

#arrowcont {
    height: 40px;
    width: 275px;
    border: 1px solid black;
    vertical - align: middle;
    background - position: 0 50 % ;
}

#verticalcenter {
    vertical - align: middle;
    background - position: 0 50 % ;
}​

i want to vertically center both of these so that it looks better when they are next to each other. the image is actually a check mark next to it.

i know this question has been asked a lot and i actually even asked it in the past, but i used the method in the other question i had but i still can’t center this vertically. does anyone see where i went wrong? i was trying the background-position tag and the vertical middle tag, but neither worked?

  • 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-07T23:25:23+00:00Added an answer on June 7, 2026 at 11:25 pm

    This works: http://jsfiddle.net/GyVSt/

    What I did:

    1. Changed #arrowcont to display: table-cell (will allow vertical-align)
    2. Removed float: left from img
    3. Added display: inline-block for img and #verticalcenter (will put img and #verticalcenter next to each other)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Relevant JS Fiddle http://jsfiddle.net/arosen/FMQtR/ Problem My HTML looks something like this: <div id='parent'> <div
I have this fiddle: http://jsfiddle.net/yub2B/4/ HTML: <input type=text /> <input type=text /> <input type=text
fiddle: http://jsfiddle.net/vVJGD/ ::-webkit-scrollbar{ width: 10px; padding-top: 40px; } ::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0 0 1px
Here is my fiddle http://jsfiddle.net/vZjnd/ Given the facts .wrapper height is fixed. .main is
If you check out this JS fiddle: http://jsfiddle.net/DE5Bp and try to sort the Tariff
http://jsfiddle.net/9aaNh/ Please check this Fiddle. I am having problem with spacing in between text
In this fiddle - http://jsfiddle.net/zyUkd/26/ I am attempting to enable the div Hello 01
Kindly refer to the fiddle : http://jsfiddle.net/ukzKT/8/ . I want the inner div #this-bottom
JS fiddle : http://jsfiddle.net/Rkh8L/ I am trying to vertically middle div inside div. The
Here's my fiddle : http://jsfiddle.net/34TM4/1/ As you can see, the red div has a

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.