css two colors of h1

Posted by Treby on Stack Overflow See other posts from Stack Overflow or by Treby
Published on 2010-04-10T16:36:07Z Indexed on 2010/04/10 16:43 UTC
Read the original article Hit count: 310

Filed under:
|

i have this CSS code:

h1 {
    font-size:22px;
    color:#341C12;
    font-weight:normal;
    font-style:italic;
}
.h1color h1{
    color:#862E06;
}

and this HTML Code

<h1>News <span class="h1color">&amp; events</span></h1> 

but its not working. want i want to do is have the first h1 text to be color #341C12 and the other text to #862E06 with using only 1 h1 tag..

© Stack Overflow or respective owner

Related posts about css

Related posts about html