<h2 class="trigger" id="sn1"></h2> <div class="toggle_container"> <h2>Marketing Consulting</h2> <p>Expert marketing consulting to guide your way, troubleshoot and help you come up with sound strategy and marketing planning. As well as being included in many of our marketing packages, marketing consulting is offered separately in blocks of hours or on a project basis. </p> </div>
<h2 class="trigger" id="sn2"></h2> <div class="toggle_container"> <h2>Marketing Analysis </h2> <p>We offer an analysis of your current marketing. This is an extensive evaluation of your marketing messaging and imagery, your print and Internet marketing, where applicable, your results and your markets.</p> </div>
I'm looking at it in IE 8 and when you click one of the boxes, it expands but when you click it again to close it, it collapses but loses the top margin. It works fine in FF and Chrome.
Obviously it's meant to retain the margin:10px 0 0 0; declared in h2.trigger {}
@soap, IE has problems every so often, instead of trying figure out exactly why something is happening, sometimes it's best just to change the way you're doing it.
Try this kind of markup:
<ul id="toggle-containers"> <li> <h2 class="trigger" id="sn1"></h2> <h3>Marketing Consulting</h3> <p>Expert marketing consulting to guide your way, troubleshoot and help you come up with sound strategy and marketing planning. As well as being included in many of our marketing packages, marketing consulting is offered separately in blocks of hours or on a project basis.</p> </li> <li> <h2 class="trigger" id="sn2"></h2> <h3>Marketing Analysis </h3> <p>We offer an analysis of your current marketing. This is an extensive evaluation of your marketing messaging and imagery, your print and Internet marketing, where applicable, your results and your markets.</p> </li> </ul>
I need some help!
I have this:
Applied to this:
with this CSS:
I'm looking at it in IE 8 and when you click one of the boxes, it expands but when you click it again to close it, it collapses but loses the top margin. It works fine in FF and Chrome.
Obviously it's meant to retain the margin:10px 0 0 0; declared in h2.trigger {}
Don't know why... Here is a link to the problem: http://websitesthatmarket.com/tpo/test/
Also, you can always grab Jamy's attention by putting his name like this: @jamy_za - hi Jamy!
@soap, IE has problems every so often, instead of trying figure out exactly why something is happening, sometimes it's best just to change the way you're doing it.
Try this kind of markup:
I haven't tested the js and it could be optimized, but you get what I mean.
And add the margin to the li's