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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:38:09+00:00 2026-06-11T22:38:09+00:00

This is a fairly generic question about cross-browser compatibility. At various points in a

  • 0

This is a fairly generic question about cross-browser compatibility.

At various points in a design I’m currenly working on the only way to achieve the layout and style that I want (without resorting to using images) is to use the display:inline-block css style option. However, this is not supported by IE8 and other older browsers and this results in my design beign broken.

So there are two parts to my question
1 – Is there a method of achieving a similar or equivalent effect for IE8?
2 – If not, how best can I make my design degrade smoothly?

For your reference, here’s an example of where this is being used in my design.

<div style="width:20px; height:20px; display:inline-block; background-color:rgb(200,120,120); margin-right:10px;"></div>Direct

It is a 20×20 pixel colour block to explain the colours in a chart.

More generally this issue arises whenever I want greater formatting & layout control over a particular bit of text etc within a body of text.

In the design I’m currently working on I’ll be dropping support for the older browser types anyway since it’s heavily reliant on the canvas element. However, I thought this would be a good question to ask as I’ve come across the problem several times before.

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-06-11T22:38:11+00:00Added an answer on June 11, 2026 at 10:38 pm

    Here is a good resource that covers this topic: http://foohack.com/2007/11/cross-browser-support-for-inline-block-styling/

    Basically IE has a trigger called “hasLayout”. Triggering this will allow you to use display:inline-block on a block level element (by default IE only allows inline-block on native inline elements).

    Additionally older version of Fire Fox didn’t support inline-block either, but had an “inline-stack” value (moz-inline-stack).

    Here is, to my knowledge, the best way to get a cross-browser display:inline-block:

    display:-moz-inline-stack;
    display:inline-block;
    zoom:1;
    *display:inline;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a fairly generic question in that I'm just wondering what potential options
This is hopefully a fairly straightforward question. I am building a generic search form
I have a fairly generic question about how to create a shortlist in rails.
I know this is fairly subjective, but I'm diving into testing and learning about
This is a bit of noob question - I'm still fairly new to C#
I have a fairly simple system, and for the purposes of this question there
I have a fairly generic question I am looking to get some advice on.
NOTE: This seems to be a fairly common error in MonoDevelop. I am working
I'm trying to use this fairly standard line of code in my app: [[UIApplication
I'm a beginner at SQL and have this fairly easy conditional problem: Every installation

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.