?
Solved

Columns not appearing correctly in Internet Explorer 7 web browser

Posted on 2011-03-16
8
Medium Priority
?
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 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
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!

 
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

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

762 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