Article View: pl.comp.www
Article #396185Re: clearfix:after a IE ?
From: hazet
Date: Sat, 28 Feb 2009 12:09
Date: Sat, 28 Feb 2009 12:09
29 lines
1754 bytes
1754 bytes
Paweł Piskorz pisze:
> hazet pisze:
>> Czyli bez supportu dla IE 5.5 będzie wyglądać tak :
>>
>> .clearfix:after {
>> content: ".";
>
> Nie wiem czemu wszyscy się na tę biedną kropkę uwzięli, content:"";
> działa równie dobrze, a i visibility się możesz wówczas pozbyć.
>
>> display: block;
>> height: 0;
>> clear: both;
>> visibility: hidden;
>> }
>>
>> ?
>>
>> Z tym clearfix, masz na myśli aby dodać do rodzica tą klasę ? Ale żeby w
>> IE6 działało, trza dodać jeszcze height: 100% .
>
> Albo width:cokolwiek, albo zoom:1;
>
>
ale teraz zauważyłem, że ten hack dodaje jakiś odstęp w FF od dolnej
krawędzi rodzica.
Aha i display: inline-block; też jest potrzebne
Technical Details
Message-ID:
<gob9i0$kns$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mailReferences:
<go8brr$bs0$1@inews.gazeta.pl> <op.up02yij1utk0y1@aimac.local> <gob060$7t1$1@inews.gazeta.pl> <gob4uu$sg8$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail From: hazet <hazet@no-mail.pl> Newsgroups: pl.comp.www Subject: Re: clearfix:after a IE ? Date: Sat, 28 Feb 2009 13:09:36 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 29 Message-ID: <gob9i0$kns$1@inews.gazeta.pl> References: <go8brr$bs0$1@inews.gazeta.pl> <op.up02yij1utk0y1@aimac.local> <gob060$7t1$1@inews.gazeta.pl> <gob4uu$sg8$1@inews.gazeta.pl> NNTP-Posting-Host: static-ip-77-89-75-190.promax.media.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1235822976 21244 77.89.75.190 (28 Feb 2009 12:09:36 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Sat, 28 Feb 2009 12:09:36 +0000 (UTC) X-User: hazet12 X-Antivirus: avast! (VPS 090227-0, 2009-02-27), Outbound message In-Reply-To: <gob4uu$sg8$1@inews.gazeta.pl> X-Antivirus-Status: Clean User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit