This link has been bookmarked by 141 people . It was first bookmarked on 24 Apr 2006, by Andrea Borruso.
-
27 Sep 11
-
22 Oct 09
-
30 Sep 09
-
24 Sep 09
-
13 Aug 09
-
10 Aug 09
-
30 Jul 09
-
22 Jul 09
-
20 Jul 09
-
16 Jun 09
-
06 Jun 09
-
15 May 09
-
25 Apr 09
-
18 Apr 09
-
31 Mar 09
-
20 Feb 09
-
03 Feb 09
-
30 Jan 09
-
15 Jan 09
-
05 Jan 09
-
06 Dec 08
-
23 Nov 08
-
15 Nov 08
-
16 Oct 08
-
15 Oct 08
-
14 Oct 08
-
30 Sep 08
-
25 Sep 08
-
12 Sep 08
-
07 Aug 08
-
23 Jul 08
-
-
Elements with
position:relativeare positioned relative to themselves. This may sound strange, but it can be useful sometimes. -
If we just set
position:relativeon an element, without specifying any of the edge properties, the element ends up exactly where it would have been if we had setposition:static, or if we hadn't setpositionat all. -
This means it's not meaningful to specify both
topandbottom, or bothleftandright. -
relatively positioned element remains in the document flow
-
A relatively positioned element counts as positioned, even if we don't shift it a single pixel in any direction. We will soon see why that is important.
-
An absolutely positioned element is positioned relative to another element, called the containing block.
-
The containing block of an absolutely positioned element is its nearest positioned ancestor, or, if there is no such element, the document's initial containing block.
-
By
positioned ancestor
we mean a structurally superior element whosepositionproperty isabsolute,fixedorrelative -
Absolutely positioned elements are completely removed from the document flow.
-
they don't affect subsequent elements
-
In browsers that support CSS you can specify all four edges and let the browser compute the width and the height. Unfortunately this doesn't work in Internet Explorer
-
An element with
position:fixedis positioned absolutely with respect to the viewport (the browser window). -
The element is removed from the document flow
-
Unfortunately Internet Explorer doesn't support fixed positioning.
-
As with any web design, you should try to use relative units with positioning, so that the layout can adapt to different window sizes.
-
-
30 Jun 08
-
15 Jun 08
-
14 Jun 08
-
05 Jun 08
-
19 Apr 08
-
10 Apr 08
-
08 Apr 08
-
04 Mar 08
-
02 Mar 08
-
17 Feb 08
-
12 Feb 08
-
08 Dec 07
-
04 Dec 07
-
13 Nov 07
-
12 Nov 07
-
09 Oct 07
jedi hawkexcellent description of how css formatting and positioning works
css position format template float General Technology references art
-
28 Sep 07
-
14 Sep 07
-
04 Sep 07
-
18 Aug 07
-
10 Jul 07
-
29 Jun 07
-
25 Jun 07
-
06 May 07
-
31 Mar 07
-
23 Mar 07
-
15 Mar 07
-
16 Feb 07
-
02 Feb 07
desimo desimospecifying position:absolute marks the position RELATIVE to most recent POSITIONED ANCESTOR element...
-
07 Jan 07
-
31 Oct 06
-
13 Oct 06
-
03 Oct 06
-
02 Oct 06
-
01 Oct 06
-
27 Sep 06
-
24 Aug 06
-
17 Aug 06
-
04 Aug 06
Christopher Allen"Positioning is perhaps one of the most misunderstood parts of CSS 2. Let us look a little closer at how it works. Absolute positioning is sometimes referred to as CSS-P. Beginners using Dreamweaver tend to call it layers, which is unfortunate, because it
css positioning absolute relative layout webdesign design tutorial web development webdev standards dhtml
-
21 Jul 06
-
07 Jul 06
-
31 May 06
-
29 Apr 06
-
27 Apr 06
-
19 Apr 06
-
06 Apr 06
-
31 Mar 06
Cameron BoothPositioning is perhaps one of the most misunderstood parts of CSS 2. Let us look a little closer at how it works.
-
30 Mar 06
-
12 Mar 06
-
26 Nov 05
-
14 Sep 05
-
07 Jun 05
-
14 Apr 05
-
27 Dec 04
Heinz Wittenbrink"Positioning is perhaps one of the most misunderstood parts of CSS 2. Let us look a little closer at how it works."
-
23 Dec 04
-
13 Dec 04
-
12 Dec 04
-
Positioning is perhaps one of the most misunderstood parts of CSS 2. Let us look a little closer at how it works. Absolute positioning is sometimes referred to as CSS-P. Beginners using Dreamweaver tend to call it layers, which is unfortunate, because it can be confused with Netscape's proprietary
element.
-
-
10 Dec 04
-
09 Dec 04
-
08 Dec 04
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.