SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Nesting Boxes

  1. #1
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Nesting Boxes

    I am trying to nest some boxes .. simliar to nesting tables .. does anyone know how deep you can nest boxes ? Right now I am at 1 deep .. and I can't seem get anything past that.

    Thanks

    CHuck
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be able to go as deep as you'd like. There's probably some other problem, here. Anyway, why are you trying to nest so many boxes? With CSS, you don't have to treat <div>s like <table>s, so you might be able to get away with less complex code, too.

    Give us some more info and perhaps even code, and we'll hook you up. ;-)

    ~~Ian

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well.. the problem that I am having is that I can't center the nested boxes..

    here is one of the pages that I am working on

    cconway.com

    here is the style sheet

    stylesheet

    When you view the page you will see that all the pictures are to the left .. and proably has something to do with the fact that I am using float left .. but .. if I use float: center it dones't work that way I would like it to. I have the parent box text-align: center, but that doens't seem to be the correct solution. I am not sure what to do from here.

    On a side note.. if you view any of the pictures .. a popup comes up .. but it has a left margin and a top margin.... and I got some code from another thread . but I am not sure how to implement it..

    Thanks

    Chuck
    Last edited by Chuckie; Apr 22, 2002 at 03:08.
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  4. #4
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    hmm would you not need to put your div class pics inside the div class sub? and center it that way?

    Looking at your code though neither of the sub or pics divs have any align:center attributes? Mayeb try adding them there?

    Sarah
    Regular user

  5. #5
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have all the parent boxes set to text-align: center .. is there another align function that I am missing ?


    Chuck
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  6. #6
    SitePoint Zealot t0m|ta's Avatar
    Join Date
    Mar 2002
    Location
    Madrid - Spain
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at this thread, it might be helpfull

    http://sitepointforums.com/showthrea...threadid=56813


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
  •