This link has been bookmarked by 96 people . It was first bookmarked on 25 Oct 2006, by someone privately.
-
05 Mar 13
-
05 Feb 12
-
The parent container doesn't stretch down to enclose its children. The W3C recommendations specify that this is correct behaviour
-
Probably the simplest and a popular solution is to add an extra DIV with the style clear:both below your floated elements.
-
Adding overflow:auto to your container element will also achieve the desired effect.
-
In standards compliant browsers this method makes use of the rarely used pseudo :after class to append a single "block level" full stop after your floated child elements with a clear:both rule specified which forces the container to stretch down to enclose its children.
-
Adding a float:left or float:right to the container DIV will also force it to contain its children.
-
ou'll have to add a clear rule to any element immediately following the container in the source.
-
-
18 Jan 12
-
13 Dec 11
-
23 Oct 11
-
27 Sep 11
-
09 Aug 11
-
12 Jul 11
-
02 Mar 11
-
21 Dec 10
-
01 Sep 10
-
20 May 10
-
11 Feb 10
-
19 Nov 09
-
10 Nov 09
-
01 Sep 09
-
14 Jul 09
-
30 Mar 09
-
22 Dec 08
-
26 Nov 08
-
23 Apr 08
-
19 Apr 08
-
16 Mar 08
-
05 Mar 08
-
16 Feb 08
-
12 Feb 08
-
10 Oct 07
-
21 Aug 07
-
25 May 07
-
06 Mar 07
-
09 Feb 07
-
28 Dec 06
-
24 Nov 06
-
03 Nov 06
-
26 Oct 06
-
25 Oct 06
-
18 Oct 06
-
09 Oct 06
-
06 Oct 06
-
03 Oct 06
-
28 Sep 06
-
27 Sep 06
-
Xavier GonzalezWeb Standards, PHP, HTML, CSS, JavaScript and other related technologies
-
26 Sep 06
-
25 Sep 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.