Solved

Columns not appearing correctly in Internet Explorer 7 web browser

Posted on 2011-03-16
8
364 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
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

829 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