Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using :after to clear float elements causes problem in IE 6 and 7
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian  
View profile  
 More options Nov 11 2011, 6:23 am
From: Ian <ian.h...@gmail.com>
Date: Fri, 11 Nov 2011 03:23:56 -0800 (PST)
Local: Fri, Nov 11 2011 6:23 am
Subject: Using :after to clear float elements causes problem in IE 6 and 7
div:after {
        content: ".";
        clear: both;
        display: block;
        height: 0;
        visibility: hidden;
        }

The above code is used popularly to clear float elements. But it
causes layout problem in IE 6 and 7 because the generated element in
IE 6 and 7 doesn't behave correctly. Is there a workaround?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian  
View profile  
 More options Dec 6 2011, 7:38 am
From: Ian <ian.h...@gmail.com>
Date: Tue, 6 Dec 2011 04:38:26 -0800 (PST)
Local: Tues, Dec 6 2011 7:38 am
Subject: Re: Using :after to clear float elements causes problem in IE 6 and 7
I had just tested it again. The result is fine.

P.S. IE7 needs "line-height: 0; font-size:0;" to prevent jumpy space
issue. Thanks Davey Faherty for the help.

On Nov 11, 7:23 pm, Ian <ian.h...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »