Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts

    Question Position:Absolutely not?

    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......

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    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.
    Last edited by effpeetee; 10-31-2007 at 04:13 PM. Reason: Extra info added
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    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.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •