Re: link with different font and underline colours
by Marc <marc(at)holtww.com>
|
Date: |
Sat, 28 Oct 2000 06:53:26 +0700 |
To: |
"Justin H." <justinh(at)whidbey.net>, HWG Style <hwg-style(at)hwg.org> |
References: |
on whidbey |
|
todo: View
Thread,
Original
|
|
Justin,
Instead of using color: red try using a color number instead, like this:
SPAN.spansmallred {
font-size: 10 px;
color: #FF2720;
font-weight: bold;
text-decoration: none;
font-family: helvetica,arial,adobe-helvetica,tahoma,"ms sans serif","ms
serif",serif;
}
I use this in a separate style sheet and include a call to it at the top of
the page, like this:
<HEAD>
<link rel=stylestheet type="text/css" href="styles.css">
</HEAD>
Then I call the style like this: <p class="ptext">The quick <span
class="spansmallred">red</span> fox...</p>
I use the same basic style sheet for all my websites, although I rename it
for each website and add any new styles as needed. Notice that I have
included a font list that includes fonts commonly used in M$, Mac and Linux.
That way, your web pages will display well in any O/S.
Hope this helps.
Cheers!
Marc
On Friday 26 October 2001 22:40, you wrote:
> You could always try it this way:
>
> <span style="text-decoration: underline; color: red"><a href=""
> style="text-decoration: none; color: blue">blah</a></span>
>
> I'm not sure how that'll work in IE/Opera, but it works beautifully in
> Mozilla (and should work in NN6.1).
>
> Justin H.
>
> Mike Cunningham wrote:
> > I want to use links where the colours of the font and underline are
> > different. I originally tried:
> >
> > <u style="color: silver;"><a href="blah" style="text-decoration: none;
> > color: Blue;">blah</a></u>
> >
> > This works in Opera 5 and Netscape 6.
> >
> > A friend suggested:
> >
> > <a href="" style="color: blue; border-bottom: 1px solid red;
> > text-decoration: none;">blah</a>
> >
> > This adds IE 5.5 to the mix.
> >
> > I'm wondering if anything works in IE 5. I'm sure Netscape 4 is a
> > writeoff.
> >
> > Please cc any replies as I'm on the digest. Thanks.
> > ---
> > Mike Cunningham
> > www.shiny.ca
--
Cheers!
Marc Holt Managing Director, Holt WorldWide Co Ltd
52/135 Soi 7 Phaholyothin Road 45, 10900, Bangkok, Thailand
Phone: (66) 2940-7414, 2579-6605 Fax: (66) 2940-7413 Mobile phone: (66)
1828-0871
Web Design, Search Engine Registration: http://www.holtww.com/
Virtual Server Sales: http://mholt.adgrafix.com/
Learn to Write with BusiWrite: http://www.busiwrite.holtww.com/
Thailand Export Guide: http://www.thailandexportguide.com/
Netpreneurs: http://www.netpreneurs.holtww.com/
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA