In designing website,what are the advantages/disadvantages of relative/absolute positioning?
Apr 7th, 2008 23:55
ha mo, Colin Fraser, Pooja Dhingra,
There are a whole range of issues and answers to this question. There
was some sort of debate over the issue, but in the end I think it
boiled down to a simple preference issue, or maybe practicality issues,
I don;t know which. However, having said that, you may want to look at
this article from the W3C
The W3C provides the intense sort of background or underpinning
knowledge you need to grasp the issues, the strengths and weaknesses of
various elements of HTML, CSS and other technologies. This should be
the starting point for anyone wanting to develop their knowledge of
HTML and CSS. However, the W3C is not for the faint hearted, it can be
quite tedious and frustrating looking at all that techno-babble, no
matter how valuable it is.
To follow that up, you may also like to look at:
the name of the article is:
Introduction to CSS Layout
by Eric Costello and Apple Developer Connection
Costello runs the site at
CSS Layout Techniques: for Fun and Profit
which is a set of tips and techniques on using CSS for layout.
You may also want to look at:
While these sites are interested in using CSS for layout, they do look
at the issues (in a peripheral way at BlueRobot.com), that surround
using absolute and relative positioning in CSS. For most layouts, this
is really all you need to make layouts work, believe it or not.
(Personally I prefer simple things, not simplistic, but because it
means less can go wrong.)
Stylistically, the impact of positioning can make all the difference to
your layouts in different browsers.
Other resources are:
(this is not too bad, but not definite enough.)
(This one has an excellent section on Absolute v Relative positioning,
scroll down to it.)
I hope this points you in the right direction.