Results 1 to 8 of 8
Threaded View
-
4th Mar 2011, 02:35 AM #1OPMember
Please help me fix this CSS
Hello guys,
Can someone help me fix a little issue in my CSS code?
This is my CSS code:
Code:<style type="text/css"> .urbangreymenu{ width: 190px; /*width of menu*/ } .urbangreymenu .headerbar{ font: bold 13px Verdana; color: #FFFFFF; background: #6a1c30 url({THEME}/images/arrowstop.gif) no-repeat 8px 6px; /*last 2 values are the x and y coordinates of bullet image*/ margin-bottom: 0; /*bottom spacing between header and rest of content*/ padding: 7px 0 7px 31px; /*31px is left indentation of header text*/ } .urbangreymenu .headerbar a{ text-decoration: none; color: #FFFFFF; display: block; } .urbangreymenu ul{ list-style-type: none; margin: 0; padding: 0; margin-bottom: 0; /*bottom spacing between each UL and rest of content*/ } .urbangreymenu ul li{ padding-bottom: 2px; /*bottom spacing between menu items*/ } .urbangreymenu ul li a{ font: normal 12px Arial; color: #CCCCCC; display: block; padding: 5px 0; line-height: 17px; padding-left: 8px; /*link text is indented 8px*/ text-decoration: none; } .urbangreymenu ul li a:visited{ color: #CCCCCC; } .urbangreymenu ul li a:hover{ /*hover state CSS*/ color: #eecc59; } </style>
Code:<script type="text/javascript"> ddaccordion.init({ headerclass: "headerbar", //Shared CSS class name of headers group contentclass: "submenu", //Shared CSS class name of contents group revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover" mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover collapseprev: true, //Collapse previous content (so only one open at any time)? true/false defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed) animatedefault: false, //Should contents open by default be animated into view? persiststate: true, //persist state of opened contents within browser session? toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"] togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs) animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow" oninit:function(headers, expandedindices){ //custom code to run when headers have initalized //do nothing }, onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed //do nothing } }) </script>
Code:<div class="urbangreymenu"> <h3 class="headerbar"><a href="#">Portuguesas</a></h3> <ul class="submenu"> <li><a href=#">Despidas na EGO</a></li> </ul> <h3 class="headerbar"><a href="#">Brasileiras</a></h3> <ul class="submenu"> <li><a href="#">Despidas em Outras</a></li> </ul> <h3 class="headerbar"><a href="#">Internacionais</a></h3> <ul class="submenu"> <li><a href="#">Despidas em Outras</a></li> </ul> </div>
As you can see in the code, this adds a image next to the category title, using the class="headerbar".
As you can see the code:
Code:.urbangreymenu .headerbar{ font: bold 13px Verdana; color: #FFFFFF; background: #6a1c30 url({THEME}/images/arrowstop.gif) no-repeat 8px 6px; /*last 2 values are the x and y coordinates of bullet image*/ margin-bottom: 0; /*bottom spacing between header and rest of content*/ padding: 7px 0 7px 31px; /*31px is left indentation of header text*/ }
For that, I tried adding this extra CSS:
Code:.urbangreymenu .headerbar2{ font: bold 13px Verdana; color: #FFFFFF; background: #6a1c30 url({THEME}/images/arrowstop2.gif) no-repeat 8px 6px; /*last 2 values are the x and y coordinates of bullet image*/ margin-bottom: 0; /*bottom spacing between header and rest of content*/ padding: 7px 0 7px 31px; /*31px is left indentation of header text*/ }
And used the class="headerbar2" in html...
And doing that, the image appeared fine in the category title where I added the class code.
But the problem is that the script stopped to work... the mouse cursor hover function don't works anymore... I pass hover with my mouse, but nothing happens...
Any ideas? Please?
Hope that you understood what Im trying to say, sorry for my poor english
DEMO: http://www.dynamicdrive.com/dynamici...menu-urban.htmDivvy Reviewed by Divvy on . Please help me fix this CSS Hello guys, Can someone help me fix a little issue in my CSS code? This is my CSS code: <style type="text/css"> .urbangreymenu{ width: 190px; /*width of menu*/ } Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaRegister - register to forums...
Version 3.56 released. Open older version (or...