English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

relative...absolute.
What's the difference?

2007-12-16 12:17:00 · 3 answers · asked by Anonymous in Science & Mathematics Astronomy & Space

3 answers

First off, this is a question better asked in "Computers and Internet - Programming and Design" but I lurk there too.

Second, HTML doesn't do any kind of positioning, relative or absolute. However, CSS does. You might start with the reference below:

2007-12-16 12:23:13 · answer #1 · answered by jgoulden 7 · 0 0

Relative positioning is just that...some given position relative to another position. For example, position 'A' might be 120 pixels from position 'B.' Absolute positioning can be used when you don't care about any other positions. For instance, you want to start a line of text 2" from the edge of the user's screen and 4" down from the top.

2007-12-16 12:24:20 · answer #2 · answered by Chug-a-Lug 7 · 0 0

using position:absolute for your div tags allows you to place them anywhere in the client space (meaning anywhere on the page) by specifying the distance from the top-left corner in width and height. position:relative positions your divs from a position relative to something else other than the top-left corner of the client space, probably it's parent, but I'm not sure cuz I never use relative position.

2007-12-18 19:21:24 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers