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

  • Home
  • SEARCH
  • 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 6687497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:17:45+00:00 2026-05-26T05:17:45+00:00

According to quirks mode , internet explorer 8 does support table options for display

  • 0

According to quirks mode, internet explorer 8 does support table options for display property, but in this example it exhibits very strange behaviour
http://jsfiddle.net/e3cUn/3/

In a normal browser, inner image will be scaled to fit 150×150 box without changing dimension ratio (stretching).

alt text

But in IE8, outside box (blue one) will also stretch:
alt text

1) Have you seen anything like that? It seems to be related to text-align:center: removing this property fixes the problem, but I do need to center image (in non-ie browsers, at least).

2) If this can’t be fixed properly, how can I provide a special display value for IE? I’ve seen a few examples on the web, like #display: block;, but all of them work up to IE7 only.

edit I know about <!--[if IE 8]> and similar commands to put in html, but I was actually looking for a way to do that in css file. Something like this

    display: table-cell;
    #display: block;

Second line isn’t a comment, it overrides previous value for ie7 and below. (but not ie8)

Thanks!

  • 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-26T05:17:46+00:00Added an answer on May 26, 2026 at 5:17 am

    After adding the bounty, I ended up working around this problem by targeting my CSS to IE8. I was already using Paul Irish’s technique of adding classes to the <html> element using conditional comments:

    <!--[if lt IE 7 ]> <html class="ie6 ielt9"> <![endif]-->
    <!--[if IE 7 ]>    <html class="ie7 ielt9"> <![endif]-->
    <!--[if IE 8 ]>    <html class="ie8 ielt9"> <![endif]-->
    <!--[if IE 9 ]>    <html class="ie9"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]-->
    

    So all I had to do is add an extra CSS rule for IE 8 and lower:

    .img-container { display: table-cell; }   /* IE9+ and other browsers */
    .ielt9 .img-container { display: block; } /* IE8 and lower */
    

    Coupled with the techniques for vertically centring images, this gives me a nice cross-browser solution.

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

Sidebar

Related Questions

According to this article Silverlight 2 Beta 2 supports the DataContractJsonSerializer object. But, when
According To reflector , ExpandoObject Does implemenet IDictionary<string, object> How ever I have this
According to this discussion , the iphone agreement says that it doesn't allow loading
According to select name from system_privilege_map System has been granted: SELECT ANY TABLE ...and
According to the answers to this question, I cannot embed a file version in
According to Steffen's post this is an efficient way to generate random BOOL s
According to Microsoft , you must sign your ClickOnce application. But it seems to
According to JavaScript Patterns book (p. 79), this should work: var ob = {
according to my knowledge, this feature already exists in PHP. lets look at the
According to this article and a number of other documents, JDBC resources are deployed

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.