SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Sep 2001
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    nested DIV's - good idea or not

    Hi,
    I'm used to designing web pages using tables. I'm now trying out DIVs using Dreamweaver. I have several DIVs on one page with some nesting inside others. Will this cause any problems? Would it be better using tables inside DIVs or vice versa?
    Any advice appreciated,
    Dee

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nesting DIVs is perfectly valid and indeed it is the "preferred" new method of designing websites.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Addict goma's Avatar
    Join Date
    Jan 2002
    Location
    smelly armpit of Asia
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've experienced some problems and bugs with absolutely positioned nested divs. the inner divs would move out of place or some other positioning problem. is there really a bug that causes this or could I be messy up in the css? (probably the latter)
    http://www.soapbox101.com

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you understand the difference between absolute and relative? If you position something as absolute then you take it out of the normal flow of HTML. This means that if an absolutely positioned element and a relatively positioned element "bump heads" so to speak, they will likely overlap.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    SitePoint Addict goma's Avatar
    Join Date
    Jan 2002
    Location
    smelly armpit of Asia
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the divs I were using were all absolutely positioned. I was surprised that absolutely positioned divs would have problems when nested...

    one question though: when you say "absolutely positioned", when nested in a div, is it absolutely positioned in relation to the div that contains it or is it still absolutely positioned in relation to the browser's area? my understanding is the latter, but then I could be wrong.
    http://www.soapbox101.com


Bookmarks

Posting Permissions

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