Link to home
Start Free TrialLog in
Avatar of CSHTech
CSHTechFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Columns not appearing correctly in Internet Explorer 7 web browser

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

Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Adding clear:left; to the second div should sort it.
Actually make that clear:right;
Avatar of CSHTech

ASKER

Where should the clear:right; go? (sorry but not conversant with that) :)
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CSHTech

ASKER

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?
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.
Avatar of CSHTech

ASKER

Many thanks for your help!