?
Solved

Columns not appearing correctly in Internet Explorer 7 web browser

Posted on 2011-03-16
8
Medium Priority
?
374 Views
Last Modified: 2012-05-11
Hi

I have a web page that contains two columns that are alongside each other, displaying lists of links to elsewhere in the site. The site itself is built on Wordpress.

The problem is that the columns display correctly in IE8, Firefox and Opera, but do not in IE7 - there are still two columns but the right hand column starts after the end of the left hand column.

Can anyone help me tweak the html so that IE7 will display it correctly?
<p style="text-align: center;">If you missed a recent Parentmail communication, or school newsletter, you can access them here.
Simply click on the below links and the document should open in your browser. If you would like to download them, please right-click the link and select 'Save link'.
<em>(You will need the free Adobe Acrobat program to open the documents - if you do not have it installed, you can download it <span style="text-decoration: underline;"><a href="http://get.adobe.com/uk/reader/">here</a></span>)
</em></p>

<div style="float: left; width: 50%;">
<h3 style="text-align: center; padding-left: 120px;"><strong>Parentmail </strong></h3>
LIST OF LINKS HERE
</div>
<div style="float: right; width: 50%;">
<h3 style="text-align: center; padding-right: 200px;"><strong>School Newsletters</strong></h3>
LIST OF LINKS HERE
</div>

Open in new window

0
Comment
Question by:CSHTech
  • 4
  • 3
7 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35148410
Adding clear:left; to the second div should sort it.
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35148417
Actually make that clear:right;
0
 

Author Comment

by:CSHTech
ID: 35148457
Where should the clear:right; go? (sorry but not conversant with that) :)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 35148475
Sorry, change:
<div style="float: right; width: 50%;">

Open in new window

To:
<div style="float: right; width: 50%; clear:right;">

Open in new window

0
 

Author Comment

by:CSHTech
ID: 35148518
Thanks - I'll try this. One quick question though - if the right hand column (div2) is lower than it should be in relation to the left (div1), should the 'clear right' still go in the div2 right hand column? Isn't that clearing anything to the right of that?
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35148543
It isn't actually "clearing" anything, it is telling to not allow any floating elements to the right-hand side of that div. If you add it to the first div it will force the second div underneath it in all browsers.
0
 

Author Closing Comment

by:CSHTech
ID: 35148590
Many thanks for your help!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…
Suggested Courses

809 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