css boggle

If i have the following link

<a class="link" href="http://localhost/cgi-bin/links/jump.cgi?ID=20" target="_blank">Some Page</a>

is it possible to assign the "some page" part to have another CSS style?
LVL 12
j2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aarieCommented:
Yes... :)

Just change the class="link" to class="myclass" where myclass is your own style definition....

for example:
<style type="text/css">
..myclass
{
 font-family : Arial;
 font-weight : bold;
}
</style>

Arjan.
0
aarieCommented:
See my comment...

Arjan.
0
j2Author Commented:
GAH, i pasted the WRONG code :)

<small class="date">(Tillagd: 21-Mar-1999 Träffar: 120  Betyg: 0 Röster: 0) <a href="http://www.localhost/cgi-bin/links/rate.cgi?ID=20">Betygsätt den</a></small>

i want the "betygsätt den" to have one class while maintaning the "date" class for the preceding text.

Sorry, my misstake. I am rejecting the answer since i made such a grave error in my Q. Feel free to reanswer it.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

aarieCommented:
Almost forgot...

Each element can have only one style if I'm not mistaken...

Arjan.
0
j2Author Commented:
Yes, thats true. But since the href is its own tag, i should be able to style that as one objectm, and the preceding text as one object, right? I'm just not sure how to include a style tag in a href tag?
0
aarieCommented:
just change
<a href="http://www.localhost/cgi-bin/links/rate.cgi?ID=20">Betygsätt den</a>

to:

<a class="myclass" href="http://www.localhost/cgi-bin/links/rate.cgi?ID=20">Betygsätt den</a>

That way, the text "Betygsätt den" will have it's own style, as defined in "myclass"...

Arjan.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
j2Author Commented:
I tried that, but it didnt work.. but now when someone else says it.. it makes sense that it has GOT to work.. gotta have an error in my stylesheet or something.. Ill give it a whack :)
0
j2Author Commented:
Yep, was a syntax error alright ;)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.