Learn how to a build a cloud-first strategyRegister Now


horizontal white space disappears

Posted on 2011-04-28
Medium Priority
Last Modified: 2012-05-11

I have two rows of plans on this page:
The horizontal white space between the two rows disappears when using IE9 in the compatibility mode.
Attached is an image showing no white space between the rows in compatibility mode.  no white space between rows
Any specific corrections to the style sheet would be appreciated.

Question by:TrueBlue
LVL 16

Accepted Solution

HagayMandel earned 668 total points
ID: 35489359
The height in the element style <div style="width: 600px; height: 100px; "> is not applied.
I suggest that you add some margin for a better control:
<div style="width: 600px; margin-top: 10px; ">

Open in new window

LVL 43

Assisted Solution

by:David S.
David S. earned 664 total points
ID: 35489386
The "Compatibility View" in IE8 and IE9 attempts to emulate how IE7 would display the page. It's not always exactly the same, but it is accurate in this case.

It looks like that because the <div>s used as containers for those two rows have "height:100px". (It's an IE7 bug.) I suggest you use "min-height:100px" instead.

Also you should add this to your stylesheet:
form {padding:0;margin:0;}

Open in new window

By the way, it's best to use classes instead of inline styles (style attributes) like that.

Assisted Solution

Mrugesh1 earned 668 total points
ID: 35489517
Put below statement between two div tags
<div style="height:35px"></div>

See the attachement.

 Div statement

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question