Re: Making H1 multicolor...possible?
by "Norman Bunn" <norman.bunn(at)craftedsolutions.com>
|
| Date: |
Fri, 16 Mar 2001 14:53:10 -0500 |
| To: |
"Ed Peddycoart" <ed(at)celticblues.com> |
| Cc: |
<hwg-style(at)hwg.org> |
| References: |
celticblues |
| |
todo: View
Thread,
Original
|
|
I'm sure there are those more versed in this than me, but why not use a
<SPAN> tag set in the <H1> like:
<H1>Website<SPAN class="blue">Name</SPAN></H1>
and then in your CSS:
.blue { color: blue;}
Norman
www.craftedsolutions.com
----- Original Message -----
From: Ed Peddycoart <ed(at)celticblues.com>
To: HWG-Style <hwg-style(at)hwg.org>
Sent: Friday, March 16, 2001 12:15 PM
Subject: Making H1 multicolor...possible?
> On my website, I have an introductory page. It is a "welcome to.press .
to
> enter" type of thing. The page is simply the name of the website, and a
> copyright statement. The name of the website is a hyperlink which is
> clicked to "enter" the website. My question is this: Is it possible
using
> a css, to make "WebsiteName" appear in two different colors.i.e. "Website"
> green and "Name" blue?
>
> My HTML code is as follows (note that the link is not implemented):
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> <link rel="stylesheet" href="Entry.css">
>
> <title>Website Entry Page</title>
> <h1>WebsiteName</h1>
>
> <h6>Unless otherwise indicated, all material Copyright 2001, <A
> Href="mailto:Ed(at)WebSite.com">Ed</A>. All rights reserved.</h6>
>
> The contents of Entry.css are:
>
> BODY {
> color: Lime;
> /* text-align: justify;
> */
> font-family: helvetica, sans-serif;
> background: Black;
> margin: 2em;
> /* For the REC: background: #def url(recbg.jpg);
> */
> }
> H1, H2, H3, H4, H5, H6 {
> text-align: left;
> }
>
> H1 {
> clear: left;
> margin-top: 2em;
> text-align: center;
> }
>
> H6 {
> clear: left;
> margin-top: 2em;
> text-align: center;
> }
>
>
> Thank you,
> Ed
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.