/    Sign up×
Community /Pin to ProfileBookmark

Inline Styles with the a:hover, link, visited Q?

Well im trying to have my links on my page have different effect. The problem is i can’t have just 1 master set of a:hover, link, visited lines in the header as i have different links in different colored backgrounds. Was wondering if there was a inline style i could use for links in tables so that i can exclude them from the header set of codes?

hope i’ve made sence enough here. if not just ask and i will try to elaborate.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@ShmohelMay 27.2005 — You could also just do this:

<i>
</i>a.name:hover { stuff }

&lt;a href='' class='name'&gt;&lt;/a&gt;
Copy linkTweet thisAlerts:
@JRPereiraMay 27.2005 — Best way I know is to just have different classes with their own sets of links. Here's an example below from my site (http://pjrp.unleashed.ws)">http://pjrp.unleashed.ws), where I set the link colors for links inside a "title01" div for the navigation toggle and a few other things (<a name=""> tags for navigation for a large page I haven't posted yet).

[CODE]A {
text-decoration: none;
color: #2A447D;
text-decoration: underline;
}

A:visited {
text-decoration: none;
color: #5572B2;
text-decoration: underline;
}

A:active {
text-decoration: none;
color: #2A447D;
text-decoration: underline;
}

A:hover {
text-decoration: underline;
color: #6E8CCD;
text-decoration: underline;
}

/* Title 01 Links below */

.title01 A {
text-decoration: none;
color: #C5CFE6;
text-decoration: underline;
}

.title01 A:visited {
text-decoration: none;
color: #C5CFE6;
text-decoration: underline;
}

.title01 A:active {
text-decoration: none;
color: #C5CFE6;
text-decoration: underline;
}

.title01 A:hover {
text-decoration: underline;
color: #FFFFFF;
text-decoration: underline;
}[/CODE]
×

Success!

Help @Gek025 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.19,
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,
)...