Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Specifying more than one style for links

0 views
Skip to first unread message

Sunshine

unread,
Jul 29, 2003, 3:32:13 PM7/29/03
to
[Follow-up to
news:microsoft.public.windows.inetexplorer.ie55.programming.css please.]

Dear,

I'm creating a web site, using Cascading Style Sheets (CSS) for the first
time. I made a page with a table (td) on the left side, containing links to
the different pages of the site. The contents of the page are in the
right - large - table (another td). I wrote a CSS basically intended to
define the style for the contents (thus for the right part of the page).

I'd like defining another style for the links (both a, a:visited, a:active
and a:hover) in the left table than for the links in the actual contents of
the site. Is this possible and - if this question is responded
affirmatively - how should I do this?

Thank you in advance for any responses and/or referrals!


Manfred Braun

unread,
Jul 30, 2003, 3:04:03 PM7/30/03
to
Hi,

you can give your TDs a classname, like <td class="clsLeftFrame"></td>
and <td class="clsRightFrame">

Then your css for <A> could be

td.clsLeftframe A:hover ......
{
font-family:Arial;
}
td.clsRightFrame A:hover ...
{
text-decoration:none;
font-family:Courier
}

Just from memory, not checked. See wich classes are available for A, other
than hover....

Hope, this helps
and best regards,
Manfred Braun

(Private)
Mannheim
Germany

mailto:_manfred...@manfbraun.de
(Remove the anti-spam-underscore to mail me!)

"Sunshine" <mysunshi...@hotmail.com> wrote in message
news:1ZzVa.12734$FK3.136...@hestia.telenet-ops.be...

Jilles van Gurp

unread,
Aug 5, 2003, 1:36:14 PM8/5/03
to
Sunshine wrote:

Oh Dear,

- don't use tables for layout, use divs
- rtfm, there's plenty of good css tutorials around
- you'll probably want to use css class selectors .leftable a { ... }
.contents a { ... } etc. So focus on that while you are browsing the
tutorials.

Jilles

0 new messages