CSS Absolute Positioning
What's the point of using relative positioning in a layout when you have absolute positioning?
Absolute positioning is MUCH easier to use and understand.
___________________
Login |
CSS Absolute PositioningCSS Absolute PositioningCurrently viewing this thread: 1 (0 members and 1 guests) CSS Absolute Positioning What's the point of using relative positioning in a layout when you have absolute positioning? Absolute positioning is MUCH easier to use and understand. ___________________ because moving things relative is moving them relative to where they were supposed to be. So if you have something absolutely positioned, you can move a child of that tag relative to its parent. so if I had something like
without the relative style now if you moved that whole div absolute, you can move just the second half of the sentence relative to the whole div. ___________________ Neverside Development Director
Last edited by BigToach, November 20th, 2005 02:52 PM (Edited 2 times) Not all websites have fixed widths. ___________________
Relative vs Absolute positioning has alot to do with the document flow. take this for example: <div id="1"></div> using absolute positioing you can place div 3 above 1 and 2 if you wanted to, however with relative positioning 3 is always going to be dependendt on it's original place in teh document, in this case, last. ___________________ |
Copyright ©1999-2008 Neverside. All rights reserved.
Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach
NeverAPI generated this page in 0.0082 seconds.