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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:41:41+00:00 2026-06-09T11:41:41+00:00

Possible Duplicate: IE6 + IE7 CSS problem with overflow: hidden; – position: relative; combo

  • 0

Possible Duplicate:
IE6 + IE7 CSS problem with overflow: hidden; – position: relative; combo

I’m trying to get items in a HTML unordered list (UL tag) to always be the height of 1 line regardless of how many lines of text are in each item, using a fixed height and overflow:hidden on a DIV inside each LI.

Here’s a demo:
http://www.isw.com.au/domino/isw/iswdevelopmentwebsite.nsf/test-overflow-hidden
The red box contains the list in question.

This works perfectly in Opera, Firefox and Chrome, but doesn’t work in IE. I want it to work in at least IE 7, 8 and 9.
IE is making the extra lines of text invisible, but still leaving space for them, effectively ignoring the fixed height for the DIV inside each LI.

Another StackOverflow question linked to the following page, which states overflow problems can be fixed by setting position:relative on containers:
http://snook.ca/archives/html_and_css/position_relative_overflow_ie
The CSS for my demo page has position:relative on every element up to the top-level DIV inside the BODY, but that has no effect.

How can I fix the problem in IE?

Update:
I’ve added a fixed height (1.8em) to the LI tags, which has helped a lot, but there’s another problem.
For each LI, IE shows the text one line below the bullet character. This makes the entire list take 5 lines of space when it should be 4.

  • 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-09T11:41:43+00:00Added an answer on June 9, 2026 at 11:41 am

    I’ve solved it. I needed all of the following to make it work consistently cross-browser:
    – “display:inline” on the DIV inside each LI (to stop IE adding a line-break);
    – a fixed height and “overflow:hidden” on the LI tags; and finally
    – “list-style-position:inside” on the UL, because “overflow:hidden” was hiding the bullets.

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

Sidebar

Related Questions

Possible Duplicate: Jquery IE6 hover problems, keeps loading background image. Hello I am trying
Possible Duplicate: Trying to get tables next to each other horizontal I have two
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: Should we support IE6 anymore? ripie6.com I would like to know which
Possible Duplicate: PHP get all arguments as array? Within a javascript function arguments always
Possible Duplicate: Unable to get a list of installed Python modules How do I
Possible Duplicates: Multiple IE instances on one machine. Running IE6, IE7, and IE8 on
Possible Duplicates: Running IE6, IE7, and IE8 on the same machine Need a good
Possible Duplicate: Should we support IE6 anymore? There is a lot of talk about
Possible Duplicate: Why do I get a null pointer exception from TabWidget? I have

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.