Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Float clearing issues - looks good in newer standards-compliant - broke in IE 6

Posted on 2008-06-17
3
Medium Priority
?
202 Views
Last Modified: 2013-12-08
I still have much to learn with CSS, so please speak slowly if you can help me.

I have a site that looks gorgeous on IE 7, Safari, Firefox, etc. - Most of the newer browsers. But in IE 6 something bizarre happens with the clearing of the right side <div>.

Site is located here: http://www.devaultquigley.com/ac

I have absolutely come to the end of my wits with this one. I simply don't know enough about CSS to figure out what of the million bugs has popped up this time. I'm trying. I'm trying reeeaal hard to not use my clunky old table layouts. Why do you have to do  this to us, Microsoft?

Can anyone help me? Thanks!
comparison.jpg
0
Comment
Question by:eric_quigley
[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
  • 2
3 Comments
 
LVL 4

Expert Comment

by:sajay_j
ID: 21808921
Yes It looks beautiful in all browsers except ie6.

Please fill this lines in css sheet;

.twoColFixLtHdr

{

float: left;

width: 497px;

padding-top: 0pt;

padding-left: 11px;

padding-bottom: 0pt;

padding-right: 0pt;

margin-top: 0pt;

margin-right: 0pt;

margin-bottom: 0pt;

margin-left: 0pt;

}

and add this class to a div closing left side.... Hope you understood.

The div should cover image and the text block at its bottom of left side if you understand it clearly...

Check it. Regards
Sajay
0
 
LVL 4

Accepted Solution

by:
sajay_j earned 1200 total points
ID: 21809929
<div class="twoColFixLtHdr"> <img image of teens> <div class="homePageCopy" style="float:left;"> block of text beneath it </div> </div>
0
 
LVL 43

Assisted Solution

by:David S.
David S. earned 800 total points
ID: 21809962
Removing the zoom declaration on ".twoColFixRtHdr #mainContent" might solve this.

Alternatively, you could replace your rule for it in the main stylesheet with this one:

.twoColFixRtHdr #mainContent {
  width: 480px;
  margin: 0 0 0 13px;
  padding: 0;
  float: left;
  display: inline; /* IE6 doubled float-margin fix */
}

By the way, [X]HTML comments (including IE's conditional comments) and elements should not be in a stylesheet.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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
Several part series to implement Internet Explorer 11 Enterprise Mode
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 to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses

730 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