/    Sign up×
Community /Pin to ProfileBookmark

Is my syntax right?

Because I feel like something’s off. things are just displaying weirdly. I have a div with id footer, and for its links I am using the below CSS. Am I calling it properly?

[code]
#footer a:link, a:visited{
color:#eeeeee;
text-decoration:none;
background-color:#000000;
}
#footer a:hover, a:active{
color:#000000;
text-decoration:none;
background-color:#ffffff;
}
[/code]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@LeruraFeb 16.2006 — the first styling applies to a:link within #footer and all a:visited within the page.

if that is intended then: Yes.

but i guess that you want to apply the styling to both a:link and a:visited only within #footer, and similarly with the second styling

in that case your sheet must be this:[CODE]#footer a:link, [COLOR=Red]#footer[/COLOR] a:visited{
color:#eeeeee;
text-decoration:none;
background-color:#000000;
}
#footer a:hover, [COLOR=Red]#footer[/COLOR] a:active{
color:#000000;
text-decoration:none;
background-color:#ffffff;
}[/CODE]
Copy linkTweet thisAlerts:
@chazzyauthorFeb 16.2006 — ah-ha!

thanks.
×

Success!

Help @chazzy 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.8,
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,
)...