faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

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
http://www.w3.org/TR/REC-CSS2/visuren.html#relative-positioning
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: 
http://www.oreillynet.com/pub/a/javascript/synd/2002/03/01/css_layout.ht
ml
the name of the article is: 
    Introduction to CSS Layout
         by Eric Costello and Apple Developer Connection  
Costello runs the site at 
    http://www.glish.com/css/
titled 
    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:
    http://www.bluerobot.com/web/layouts/
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:
http://www.brainjar.com/css/positioning/default.asp
(this is not too bad, but not definite enough.)
http://www.alistapart.com/articles/flexiblelayouts/
(This one has an excellent section on Absolute v Relative positioning, 
scroll down to it.) 
I hope this points you in the right direction.
Cheers
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com