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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:52:17+00:00 2026-06-02T12:52:17+00:00

I am trying to use CSS to scale my images to precise values: HTML:

  • 0

I am trying to use CSS to scale my images to precise values:

HTML:

<div id="thumbnail-container">
    <img src="sample-pic.jpg"/>
</div>

CSS:

#thumbnail-container img {
    max-height: 230px;
    max-width: 200px;
}

In this example, sample-pic.jpg is actually 320×211.

In Firefox 11.0, this code works perfectly fine, and FF resizes sample-pic.jpg to the 230×211 max constraints set forth in the CSS rule.

In IE 9, however, the max-height and max-width rules are completely ignored and the image renders as its usual 320×211 size.

How can I modify the HTML/CSS so that both IE 9 and FF 11.0 both honor these max constraints? Thanks in advance!

  • 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-02T12:52:20+00:00Added an answer on June 2, 2026 at 12:52 pm

    IE7+ supports max-width and max-height.

    Demo at http://jsfiddle.net/gaby/qE6w6/

    check that you page runs in standards mode.. (make sure there is a valid doctype)

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

Sidebar

Related Questions

I am trying to use one CSS class to many DIV. Is it a
I'm trying to use css to put some images this way: |_________<img1_1>|___<img2_1>| | |<___img2_2>|
I am trying to use CSS and HTML to insert an image into a
I'm trying to use <div> objects and CSS to emulate the appearance of frames
I'was trying to use css counter... This is my css code: div.primaries div.entries>div.meaning:first-child:before {
I am trying to use css to position two div 's, one directly above
I'm trying to use the CSS word-wrap property with break-word value. I want to
So I am trying to use the CSS hack to set the max-height for
I'm trying to use jquery and blueprint css to do a (so i thought)
I am trying to use jQuery to basically wrap a bunch of CSS modifications

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.