SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru htown's Avatar
    Join Date
    Mar 2005
    Posts
    676
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trouble with background color in DIV

    I am using a SPRY accordion effect on a form at this web site. It works fine in IE7, Firefox, and Safari but the background color disappears in IE6. This is the div with a class of "AccordionPanelTab".

    Thanks,
    Houston
    Houston Brown
    Split Light Designs
    Bringing your ideas to light.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,484
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    You need to force "haslayout" for IE here:

    Code:
    .AccordionPanel {
        margin: 0px;
        padding: 0px;
    width:100%
    }
    I also notice that .form is too big and is causing scrollbars in Firefox so make it fit.

    You may just be able to change auto to hiddden here:

    Code:
    .AccordionPanelContent {
        overflow:hidden;
        margin: 0px;
        padding: 0px;
    }
    However I don't know what the ramifications of that change may make to the accoridion effect so test first.

  3. #3
    SitePoint Guru htown's Avatar
    Join Date
    Mar 2005
    Posts
    676
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They don't call you the Guru for nothing. Worked perfectly.

    Thanks
    Houston Brown
    Split Light Designs
    Bringing your ideas to light.


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
  •