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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:37:31+00:00 2026-06-09T01:37:31+00:00

http://tinkerbin.com/ojXJuQfl i managed to use instructions from another user and centered text vertically, but

  • 0

http://tinkerbin.com/ojXJuQfl

i managed to use instructions from another user and centered text vertically, but it doesn’t allow me to center the whole thing vertically. i figured if i put the text in it’s own div, it would do it, but it didn’t. how can i center a PARAGRAPH next to the arrow?

vertical aligning CSS is very confusing…

CSS

#arrow {
       width:33px;
       height:25px;
       background-image:url('http://i.imgur.com/26tbf.png');
       margin-left:55px;
       background-position:0 50%;
       float:left;
       height:100%;
       background-repeat:no-repeat;
 } 

#bulletwrap {
       border:1px solid black;
       width:325px;
       height:75px;
 } 

#text {
      background-position:0 50%;
      line-height:75px;    
 } 

HTML

<div id="bulletwrap"><div id="arrow"></div><div id="text">This is some longer text that needs to be centered next to the arrow grouped together</div></div>
  • 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-09T01:37:33+00:00Added an answer on June 9, 2026 at 1:37 am

    Vertical centering something can be rather difficult. I have an alternate proposal to your solution. It is a bit of a hacky solution, but as far as I know it’s the best and most effective.

    You will need to have your #bulletwrap div (or any other container type element) behave as a table, and your #text (paragraph or div, it doesn’t matter) as a table cell. This will allow you to use vertical-align: middle; for the #text element, centering it vertically.

    This is the important css:

    #bulletwrap {
      border:1px solid black;
      width:325px;
      height:75px;
      display: table; /*set your container to behave as table*/
    } 
    
    #text {
      display: table-cell; /*set your text to behave as table cell*/
      vertical-align: middle; /*... and vertically align it*/
    }
    

    Here it is in action http://tinkerbin.com/jSocLUGX

    I hope that was clear enough. If you have any further questions or feel your question was not really answered, please do not hesitate to ask.

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

Sidebar

Related Questions

http://jqueryui.com/demos/accordion/ You can do $('#itename').accordion('activate', 0) to make an accordion closed but that'll change
http://jsbin.com/eyeqer/2/edit var x = document.evaluate('//p/following-sibling::text()', document, null, XPathResult.ANY_TYPE, null); var theTitle = x.iterateNext(); while
Weird stuff happening here. See this tinkerbin page, if you may: http://tinkerbin.com/UZy6H6q4 Here's the
http://tinkerbin.com/pla4NzJ9 I've created a tiny demo, where a backbone view is instantiated and using
From http://java.sun.com/developer/technicalArticles/J2SE/security/#3 : Note: These two system properties are ignored when applications run on
http://loopj.com/jquery-tokeninput/ The code I am working with is from a jquery-tokeninput fork which allows
http://lakefrontmotorlodge.co.nz/new/ I am trying to get the background to fade smoothly, but it fades
http://www.example.com?a=1&a=2 has a valid form-urlencoded querystring and has two values ( 1 and 2
http://ano-mag.com/black-foil/ please check this url - click the Order Now button on the left
http://jsfiddle.net/h2vMN/1/ I have a text box text inside it already, in the actual application

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.