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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Posts
    600
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Overall Feeling on Absolute Positioning W/CSS

    Hey All,

    So what's the general consensus on using absolute positioning? I'm referring only to sites that utilize a fixed, "top-left" layout.

    There's often various design elements and some are background images, some are hot buttons/links, and absolute positioning works extremely well for these types of things. Laying an image element over something specifically where needed is a nice feature without messing with padding everywhere and testing in multiple browsers ..

    This is fairly new to me, as I've always done things without absolute positioning (most site I've done wouldn't work well with it, given I like the 700 pixel wide page fixed in the center of the screen), but like I said - for top-left site layouts, it works well.

    Is there anything bad about it? It seems so useful in certain instances. Yet I'm so worried.

    Thanks.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    For fixed top left layouts I think its fine. For layouts that are centered if you make their containing div position:relative; you can use absolute positioning in relation to the corner of that div and not the browser. Here is a good tutorial about this type of positioning.
    Last edited by _Aerospace_Eng_; 06-03-2005 at 09:33 PM.


  •  

    Posting Permissions

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