Sent by C. Hatton Humphrey on 30 December 2004 16:04
Hi there, I'm new to this list (yaddah yaddah yaddah)... I looked
through the archives for what I think I need and didn't find anything
relating to what I was looking for so I'll pose the question right off
the bat.
I was given a layout to work with that has inline text headers that
are two different colors. For example the header says "Product
Overview" and the word product is a darker green and the word overview
is a slightly lighter shade. What I'm wondering is if there is a way
to do this using CSS without having a span in the middle of the <h1>
that I've defined.
Here's how I'm pretty sure I can do it:
<style>
h1 {
color: #1d783a;
font-size: 1.5em;
}
..h1_afterfirst {
color: #5e9c7c;
}
</style>
<body>
.... <h1>Product <span class="h1_afterfirst">Overview</span></h1>
....
</body>
I *think* that will work but I'm wondering if there's a cleaner way to do it.
Thanks!
Hatton
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/