Need help assigning CSS attributes

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

I want to use the a:link, a:visited and a:active CSS attributes only on text links (the <a> tags) in a certain table on the page and not all the links on the entire page.

IOW, I want the text links in the this one particular table only to be a certain style while the rest of the links on the page be the default style.

But I can't seem to get the CSS to work for just those links on the table. I tried CLASS, ID and STYLE both on the table level and on the <a> level and no go. The best I could do was use the CSS for the entire page but that doesn't give the results I want.

Any suggestions would be appreciated!

Thanks in advance!

------------------
ArtsNFlies.com
"It's not really a flyfishing shop, more like a Martha Stewart goes fishing thing!"

Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Never tried this but it might work:

.page{vlink:red}
.table{vlink:white}

It's not complete but it might give you some ideas.

Jack

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

Thanks Jack.

But what I really want to do is assign {text-decoration:none} to the links in one specific table and have all the other links on the page remain normal/underline.

Any ideas?

------------------
ArtsNFlies.com
"It's not really a flyfishing shop, more like a Martha Stewart goes fishing thing!"

Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

I would make a style-tag for each link in the table (like John says in your other thread). The style of rest of the links on your page would come from the ex/internal CSS-file.

Jack

Shakespeare: onclick || !(onclick)

They have: 2,390 posts

Joined: Nov 1998

<a style="colour: #whatever">
Like this?
JP

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Yes, I just tried the following with an external CSS-file (not included in example)and it works for me (IE).

...
<a class="link">BLACK</a>
<a style="color:red">R E D</a>
...

I asume {text-decoration}s and vlinks can be done the same way, but did not try it.
Jack

[This message has been edited by Jack Michaelson (edited 25 January 2000).]

Shakespeare: onclick || !(onclick)

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

Jack, JP - I tried Jack's suggestion last night and it works great!! The exact effect I wanted.

Thanks!

------------------
ArtsNFlies.com
"It's not really a flyfishing shop, more like a Martha Stewart goes fishing thing!"

Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Can I get a look??
(URL )

Jack

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

Jack - It's just like described above:

<a href="http://whatever.com" style="{text-decoration:none}">Whatever</a>

Use ; to seperate the styles if you want to combine css descriptions.

------------------
ArtsNFlies.com
"It's not really a flyfishing shop, more like a Martha Stewart goes fishing thing!"

Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.