Quote:
Originally Posted by chrishirst
Why does it need to be "outside"?
HTML Code:
<h1>hostname<span>.com</span></h1>
then style the span to suit.
Code:
h1 span {
font-size: 0.5em;
}
the rule above will set the text in the span to be half the size of the heading.
|
It doesn't need to be outside, but I want it a different size and colour. It's also probably better for the just the keyword to be in the h1 tag.
This is what I have done.
#headBanner h1 {font-size: 102px;
font-family: Arial, Helvetica, sans-serif;
color: #056FFF;
font-weight: bold;
}
#headBanner h1 span {font-size: 80px; color: #cccccc;}
<h1>Title<span></h1>.com</span>
I get this as a result.
Title
.com
The span doesn't seem to be working.
|