Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6618201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:47:58+00:00 2026-05-25T20:47:58+00:00

I’ve got 3 divs using JQuery’s toggle function to collapse divs: The divs collapse

  • 0

I’ve got 3 divs using JQuery’s toggle function to collapse divs:

enter image description here

The divs collapse fine in Firefox, but in IE6 (target browser), this happens:

enter image description here

If I resize the IE window, the divs go back to looking normal, as they do in Firefox.

I’ve tried to get the code down to its simplest form:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>BIIS Portal</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="cache" />
<link rel="stylesheet" type="text/css" media="all" href="../assets/stylesheets/core-css.css" />
<script type="text/javascript" src="../assets/js/core-js.js"></script>
<!-- This script doesn't seem to work when put it in its own .js file... why? -->
<script type="text/javascript">
$(document).ready(function(){
    //Hide (collapse) the toggle containers on load
    $(".toggle-container").hide(); 

    //Show all containers with class toggle-opened
    //Remove the opened class
    //Find the trigger for the now opened container and apply the active class
    $(".toggle-opened").show().removeClass("toggle-opened").prev(".toggle-trigger").addClass("active");

    //Switch the Open and Close state per click then slide up/down (depending on open/close state)
    $(".toggle-trigger").click(function(){
        $(this).toggleClass("active").next().toggle();
        return false; //Prevent the browser jump to the link anchor
    });
});
</script>
</head>
<body>
    <div id="wrapper">
        <div id="header">
        </div>
        <div id="body">
            <div>
                <div class="portlet">
                    <div class="portlet-header">
                        <div class="portlet-title">
                        <h2>BI - External data Control</h2>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div>
                            <h3 class="toggle-trigger">External Data Configuration</h3>
                            <div class="toggle-container toggle-opened">
                                blah
                            </div>
                            <h3 class="toggle-trigger">Current Notifications</h3>
                            <div class="toggle-container toggle-opened">
                                blah
                            </div>
                            <h3 class="toggle-trigger">General Information</h3>
                            <div class="toggle-container toggle-opened">
                                blah
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>

core-css.css:

@import "base.css";
@import "framework.css";
@import "elastic.css";
@import "superfish.css";

@import "/application/css/jquery.autocomplete.css";
@import "/application/css/hspi-content-nav.css";
@import "/application/css/jquery-ui/jquery-ui-1.8.12.custom.css";

core-js.js is merely several JQuery libraries minified, namely:

  • jQuery JavaScript Library v1.5.2
  • jQuery Cycle Plugin (with Transition Definitions) Version: 2.86 (05-APR-2010)
  • jQuery Cycle Plugin Transition Definitions Version: 2.72
  • jQuery UI 1.8.12
  • jQuery UI Widget 1.8.12
  • jQuery UI Mouse 1.8.12

I’m not too sure what’s happening, as I’ve mostly copied existing code. I need to get it working right in IE, so any advice is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:47:58+00:00Added an answer on May 25, 2026 at 8:47 pm

    @Mitch. I think your main problem it’s your CSS styles. You dont provide CSS code, but next example is worked in my tests in IE6-8 and FF7 (except that IE6-7 do not support CSS content style) http://jsfiddle.net/2YyXC/

    HTML:

    <div id="wrapper">
        <div id="header">
        </div>
        <div id="body">
            <div>
                <div class="portlet">
                    <div class="portlet-header">
                        <div class="portlet-title">
                        <h2>BI - External data Control</h2>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div>
                            <h3 class="toggle-trigger toggle-trigger-active">External Data Configuration</h3>
                            <div class="toggle-container toggle-container-opened">
                                blah
                            </div>
                            <h3 class="toggle-trigger toggle-trigger-active">Current Notifications</h3>
                            <div class="toggle-container toggle-container-opened">
                                blah
                            </div>
                            <h3 class="toggle-trigger toggle-trigger-active">General Information</h3>
                            <div class="toggle-container toggle-container-opened">
                                blah
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    

    SCRIPT:

    $(document).ready(function() {
        $(".toggle-trigger").click(function(){
            $(this).toggleClass("toggle-trigger-active").next().toggleClass("toggle-container-opened");
            return false; //Prevent the browser jump to the link anchor
        });
    });
    

    CSS:

    .portlet {
        padding: 5px 5px 5px 5px;
        border: 1px solid black;
    }
    
    .portlet-body {
         padding: 5px 5px 5px 5px;
    }
    
    .portlet-title {
        background-color: black;
        color: white;
        font-family: Verdana;
        font-size: 13px;
        padding: 6px 6px 6px 6px;
    }
    
    .toggle-trigger {
        background-color: lightgrey;
        color: black;
        font-family: Verdana;
        font-size: 13px;
        padding: 6px 6px 6px 6px;
    }
    
    .toggle-trigger:before {
        content: "► ";
    }
    
    .toggle-trigger-active:before {
        content: "▼ ";
    }
    
    .toggle-container {
        font-family: Verdana;
        font-size: 13px;
        padding: 6px 6px 6px 6px;
        display: none;
    }
    
    .toggle-container-opened {
        display: block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.