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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:44:31+00:00 2026-05-29T12:44:31+00:00

This is my fiddle: http://jsfiddle.net/7UwD2/ I’ve tried everything I found on the internet –

  • 0

This is my fiddle: http://jsfiddle.net/7UwD2/

I’ve tried everything I found on the internet – setting:

margin: 0px auto; with width, but it doesn’t work.

Only if I’ll add an attribute: text-align: center; to the head-title class it does center – but only the text, image is still on the left position.

Where is my problem?

  • 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-29T12:44:34+00:00Added an answer on May 29, 2026 at 12:44 pm
    • Remove the float from the image,
    • use text-align: center on the outer DIV,
    • use a SPAN instead of the inner DIV,
    • apply vertical-align: middle to the image and SPAN

    HTML:

    <div class="head-title">
        <img class="list-icon" src="...">
        <span>Menu</span>
    </div>
    

    CSS:

    .head-title {
        width: 150px;
        height: 26px;
        padding: 5px;        
        text-align: center;
    }
    
    .head-title > * {
        vertical-align: middle;
    }
    
    .list-icon {
        width: 24px;
        height: 24px;
    }
    

    Live demo: http://jsfiddle.net/7UwD2/6/

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

Sidebar

Related Questions

I have the following javascript code found also in this fiddle: http://jsfiddle.net/periklis/k4u4c/ <button id
Observe this fiddle: http://jsfiddle.net/pixelfreak/AN5Wb/ Everything is fine until you try to scroll by clicking
In this fiddle http://jsfiddle.net/dAHqe/2/ I've created examples for the 2 main uses (that I've
Referencing this Fiddle ( http://jsfiddle.net/j5uGN ), how can I toggle a clicked image's border
I have this fiddle: http://jsfiddle.net/yub2B/4/ HTML: <input type=text /> <input type=text /> <input type=text
I have this fiddle : http://jsfiddle.net/XjeCf/1/ that works like I want and this one
look at this fiddle: http://jsfiddle.net/ugxNK/ I want that the first list element is in
Please look at this fiddle: http://jsfiddle.net/dyv88/16/ On IE7, if I put width: 100% on
Hi please take a look at this fiddle http://jsfiddle.net/bloodygeese/pwjNQ/1/ I am trying to figure
Is it possible to get help with this fiddle: http://jsfiddle.net/aLCfb/ . I am trying

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.