...

View Full Version : Position:Absolutely not?



jcdevelopment
10-31-2007, 04:12 PM
I am fairly new to css, i have been using it for almost 2 years now, and most of the times i would use tables and css at the same time. Then i realized that tables do constrict a lot of design layout. So i started to use absolute positioning. Now i have been told that, that is bad. How else or what is an easier way to lay out a site if absolute is bad? Please any suggestions or tricks will help.

Thanx......

effpeetee
10-31-2007, 04:27 PM
Absolute positioning is not bad in itself. It is often used when other methods are more appropriate. If you type "Absolute positioning" in the search box at the top left, you will get a lot of help there.

Also see here. http://codingforums.com/showthread.php?t=126382 a very thorough discourse.

Frank

Also the URL in my signature has many resources there.

felgall
10-31-2007, 10:08 PM
Use position:absolute by itself for elements that are going to be moved independently of the rest of the page using JavaScript.

All other uses for position:absolute require it to be inside of a position:relative as otherwise resizing the window will not reposition the content correctly.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum