/    Sign up×
Community /Pin to ProfileBookmark

weird link problem

so i’m using jquery accordion for my navigation menu and setting color classes to all the links – here’s an example

[CODE]#museum {
color:#787878; margin: 5px 0; font-weight:bold;}
#museum:hover {
color:#f27836; margin: 5px 0; font-weight:bold;}

.museum {
color:#787878; margin: 5px 0; font-size:10px;}
a.museum:hover {
color:#f27836; margin: 5px 0; font-weight:bold;}
a.museum:link {
color:#787878; margin: 5px 0; font-size:10px;}
[/CODE]

[CODE]<h1 class=”accordion_toggle” id=”museum”>museum</h1>
<div class=”accordion_content”>
<ul>
<li><a href=”#” class=”museum”>galleries</a></li>

<li><a href=”#” class=”museum”>campus</a></li>

<li><a href=”#” class=”museum”>membership</a></li>

<li><a href=”#” class=”museum”>press room</a></li>

<li><a href=”#” class=”museum”>employment</a></li>

<li><a href=”#” class=”museum”>who we are</a></li>
</ul>
</div>[/CODE]

at this state the links in museum will rollover to the corresponding color. however, i need to populate the # with absolute paths and only in certain cases – not all cases does putting an absolute link break the css.

so in laymans – if i put 10 links in 3 will work while the rest of the seven will not – nothing is broken and all closing tags etc are there. does anyone have any idea? would like to hear from the people who’ve also used accordion

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@KDLAMay 15.2009 — That isn't a CSS problem -- probably a javascript/jquery problem. Double-check to see if there are a number of <li> set in your jquery initialization script.
×

Success!

Help @racerxfactor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...