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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:34:04+00:00 2026-06-12T17:34:04+00:00

I have a div which contain 2 images inside it. First image’s height is

  • 0

I have a div which contain 2 images inside it.

First image’s height is just as per div height but second image height is less then div height. I want to vertically central align this image which I have failed to do. Here is my markup, please advise me how to do this so that it will work in all current browsers.

Thanks

 <div class="left">
        <img alt="" src="Images/Logo.png" style=" border:2px dashed red;" />
        <img class=TI alt="Tayyiba Institute" src="Images/TayyibaInstitute.png" style=" border:2px dashed orange;" />
    </div>

    div.Container div.Left
{
width:50%;
float:left ;
display:inline;
}

div.Container div.Left img.TI
{        
 width:92px;
 height:95px;
 float:left;
 line-height:200px;
 vertical-align:middle;
 margin:auto 0 auto 0;
 display:block ;
}
  • 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-12T17:34:05+00:00Added an answer on June 12, 2026 at 5:34 pm

    Well here’s a lot of mistakes…let me go through 1 by 1…

    1) No quotes here class=TI

    2) Where’s the container div over here? div.Container div.Left img.TI

    You need to float your first image to the left and give position: relative; to the second image like this :

    My fiddle

    HTML

    <div class="left">
        <img alt="" src="Images/Logo.png" style=" border:2px dashed red; float: left;" />
        <img class="TI" alt="Tayyiba Institute" src="http://www.cbfaizabad.org.in/images/bullet/0043_bullet2.png" style=" border:2px dashed orange;" />
    </div>
    

    CSS

    .Left
    {
    float:left ;
    }
    
    .TI
    {        
        position: relative;
        top: 5px;
    }​
    

    SUGGESTION: Clean up the CSS And learn more

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

Sidebar

Related Questions

I have a div for my posts which may contain images with different sizes
I have some divs which contain an image that fills the whole div: <div
I have a Div with position:relative which contains one or more images inside it
I have a div which contains a number of images. I would like to
I have a <div> which contains a background image, the <div> sits within a
I have a div which contain lots of input[type=text] fields. I want to put
How can have a div which contain multiple multiple div it may 4-6-8 how
So I have a div which will contain 3 buttons and I want these
I have a div which contains 2 elements. First element is a span and
Ok, I have a label, inside this label is a div, which contains an

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.