logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-06-2010, 05:48 PM   #1
tbbct
 
Join Date: Jul 2010
Posts: 1
Default Spry accordion not working correctly in Firefox

Made a small change to a font .css on my website today. Viewed in IE and Chrome, all looks great. Firefox is a different story. My accordion on the opening page is fine, but if I click on any of the other panels, it opens on top of the already displayed content. Here is the code for the accordion:

Code:
/* SpryAccordion.css - version 0.4 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
/* This is the selector for the main Accordion container. For our default style,
 * we draw borders on the left, right, and bottom. The top border of the Accordion
 * will be rendered by the first AccordionPanelTab which never moves.
 *
 * If you want to constrain the width of the Accordion widget, set a width on
 * the Accordion container. By default, our accordion expands horizontally to fill
 * up available space.
 *
 * The name of the class ("Accordion") used in this selector is not necessary
 * to make the widget function. You can use any class name you want to style the
 * Accordion container.
 */
.Accordion {
 border-left: solid 1px gray;
 border-right: solid 1px black;
 border-bottom: solid 1px gray;
 text-align: left;
 vertical-align: top;
 height: auto;
 background-color: #AEB5C7;
 font-family: Verdana, Geneva, sans-serif;
 overflow: visible;
}
/* This is the selector for the AccordionPanel container which houses the
 * panel tab and a panel content area. It doesn't render visually, but we
 * make sure that it has zero margin and padding.
 *
 * The name of the class ("AccordionPanel") used in this selector is not necessary
 * to make the widget function. You can use any class name you want to style an
 * accordion panel container.
*/
.AccordionPanel {
 margin: 0px;
 padding: 0px;
 color: #039;
 font-weight: normal;
 font-family: Tahoma, Geneva, sans-serif;
 font-size: 16px;
 background-color: #AEB5C7;
 text-align: justify;
}
/* This is the selector for the AccordionPanelTab. This container houses
 * the title for the panel. This is also the container that the user clicks
 * on to open a specific panel.
 *
 * The name of the class ("AccordionPanelTab") used in this selector is not necessary
 * to make the widget function. You can use any class name you want to style an
 * accordion panel tab container.
 *
 * NOTE:
 * This rule uses -moz-user-select and -khtml-user-select properties to prevent the
 * user from selecting the text in the AccordionPanelTab. These are proprietary browser
 * properties that only work in Mozilla based browsers (like FireFox) and KHTML based
 * browsers (like Safari), so they will not pass W3C validation. If you want your documents to
 * validate, and don't care if the user can select the text within an AccordionPanelTab,
 * you can safely remove those properties without affecting the functionality of the widget.
 */
.AccordionPanelTab {
 background-color: #C7CBD8;
 border-top: solid 1px black;
 border-bottom: solid 1px gray;
 margin: 0px;
 padding: 0px;
 cursor: pointer;
 -moz-user-select: none;
 -khtml-user-select: none;
 color: #050505;
 font-weight: normal;
 font-size: 18px;
 text-indent: 25px;
}
/* This is the selector for a Panel's Content area. It's important to note that
 * you should never put any padding on the panel's content area if you plan to
 * use the Accordions panel animations. Placing a non-zero padding on the content
 * area can cause the accordion to abruptly grow in height while the panels animate.
 *
 * Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
 * Content container.
 *
 * The name of the class ("AccordionPanelContent") used in this selector is not necessary
 * to make the widget function. You can use any class name you want to style an
 * accordion panel content container.
 */
.AccordionPanelContent {
 padding: 0px;
 height: 200px;
 color: #050505;
 font-size: 16px;
 background-color: #98A0B8;
 font-family: Tahoma, Geneva, sans-serif;
 font-weight: normal;
 text-align: left;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
 margin-left: 0px;
 text-indent: 35;
 overflow: visible;
}

/* This is an example of how to change the appearance of the panel tab that is
 * currently open. The class "AccordionPanelOpen" is programatically added and removed
 * from panels as the user clicks on the tabs within the Accordion.
 */
.AccordionPanelOpen .AccordionPanelTab {
 background-color: #667393;
 color: #1E1410;
 font-weight: bold;
 text-align: left;
}
/* This is an example of how to change the appearance of the panel tab as the
 * mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
 * and removed from panel tab containers as the mouse enters and exits the tab container.
 */
.AccordionPanelTabHover {
 color: #555555;
}
.AccordionPanelOpen .AccordionPanelTabHover {
 color: #666;
}
/* This is an example of how to change the appearance of all the panel tabs when the
 * Accordion has focus. The "AccordionFocused" class is programatically added and removed
 * whenever the Accordion gains or loses keyboard focus.
 */
.AccordionFocused .AccordionPanelTab {
 background-color: #C7CBD8;
}
.oneColElsCtrHdr #container #mainContent #TabbedPanels1 #Accordion1 .AccordionPanel.AccordionPanelOpen .AccordionPanelContent table {
 font-family: Verdana, Geneva, sans-serif;
 font-size: 14px;
 letter-spacing: -1px;
 width: 620px;
 word-spacing: -1px;
 text-align: left;
 margin-left: 35px;
 color: #2D2D2D;
}
.oneColElsCtrHdr #container #mainContent #TabbedPanels1 #Accordion1 .AccordionPanel.AccordionPanelOpen .AccordionPanelContent p img {
 float: none;
 margin-left: 125px;
 border: thin solid #060606;
}
 
/* This is an example of how to change the appearance of the panel tab that is
 * currently open when the Accordion has focus.
 */
.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
 background-color: #FFC;
}

Last edited by Corrosive; 07-07-2010 at 06:36 AM.. Reason: Please use code tags. Thanks
tbbct is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:26 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com