Solved

Columns not appearing correctly in Internet Explorer 7 web browser

Posted on 2011-03-16
8
358 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now