Results 1 to 5 of 5

Thread: nested div exceeding the borders of outer div

  1. #1
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default nested div exceeding the borders of outer div

    1) Script Title: Tab Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem:
    please see url below for explanation:
    http://www.vivamexclan.com/apcbackupcode_jobs.html

    In firefox....the outer div is not auto-resizing itself to fit the nested div/table...but of course it works in IE.

    Any ideas what could be causing this?
    here are the links to my css and js

  2. #2
    Join Date
    Mar 2008
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    It might have something to do with the z-index of the ".shadetabs li a" being set to 1. My understanding is that z-index default is 0. If the tabs are floating above the table they might not resize to fit.

  3. #3
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default

    nope, that didn't have any effect. thanks though.

    any other ideas?

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Just adjust the width, from 650px to 680px
    Code:
    <div style="border: 1px solid rgb(169, 169, 169); padding: 10px; width: 680px; margin-bottom: 1em;">
    You had a lot of Deprecated attributes in your page, like align=center..and some more,

    You might find the link i've given you useful

    See if it aides
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default

    i'm aware of that, but the cma I use here at work automatically adds all those deprecated items. that could also be what's causing the nested div to go outside the borders...oh well...i'll find another workaround.
    thanks

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
  •