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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:39:55+00:00 2026-05-30T13:39:55+00:00

I have a bit of a ridiculous issue here and I must be missing

  • 0

I have a bit of a ridiculous issue here and I must be missing something obvious, but frustration is starting to get the best of me so I hope someone can point out my error.

I want to display thumbnail images that all have the same height. Width is irrelevant. I need them to have the same height.

Why doesn’t the following work?

<div class='smallpic'><img src='imageurl' height='100px' title='photo' /></div>

This is the CSS for the smallpic div class:

.smallpic{
    width:120px;
    height:100px;
    margin:2px;
    float:left;
}

The correct images are displayed, but instead of having the same height of 100 px, they all fit to the WIDTH of the div for some reason.

This is the page, there are 4 sample images and as you see they all have the same width and different heights!

http://registry.bedbugs.net/United-States/Santa-Rosa/296-bed-bug-report-for-Hillside-Inn

  • 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-30T13:39:57+00:00Added an answer on May 30, 2026 at 1:39 pm

    Height is the number of pixels in the image

    <div class='smallpic'><img src='imageurl' height='100' title='photo' /></div>
    

    You can also define this in the css

    .smallpic>img{
        height:100px
    }
    

    From you description, it sounds like you want them to be of the same width as well

    So try:

     .smallpic>img{
        height:100px;
        width:100px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a bit of confusion here. I added a few objects from a class
I have a bit of an issue with my SQL statement. It is a
i have bit of code that causes an underflow: var t1, t2, delta: DWORD:
I have a question regarding how initialization vector works on cryptography. I have bit
I have a bit of a theoretical question, however it is a problem I
I have a bit of code that fits theoretical prediction to experimental data, and
I have a bit of a problem that I can't seem to code my
I have a bit of a strange problem. I have a music app that
I have a bit of a unique problem with an upcoming project; I need
I have a bit of a monster update query that I can't quite fit

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.