3 replies [Last post]
Nos402
Offline
newbie
Last seen: 18 years 16 weeks ago
Timezone: GMT-6
Joined: 2004-08-15
Posts: 5
Points: 0

I have a style set up for a:link, but I want to specify a different font for links wihting my .side class. Is this possible?

In other words, all my links show up as copperplate, but I want links within a <div class="side"> to be Arial.

It seems like it should be simple, but I haven't figured it out yet.

Thanks!

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 weeks 4 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Changing a:link within a style

Hi Nos402,
To target the links within the side div try:.side a{font-family:arial, sans-serif;}

Hope that helps

Nos402
Offline
newbie
Last seen: 18 years 16 weeks ago
Timezone: GMT-6
Joined: 2004-08-15
Posts: 5
Points: 0

Changing a:link within a style

Thanks. I knew it was just some stupid easy thing I'd never tried.

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 32 weeks 2 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Changing a:link within a style

If however, you used id instead of class, you will need to use

#side a{font-family:arial, sans-serif;}

Verschwindende wrote:
  • CSS doesn't make pies