http://www.perlmonks.org?node_id=285427


in reply to Re: Re: Re: My favorite HTML font style tag is...
in thread My favorite HTML font style tag is...

Ok, but what about:
<h3><span>Some</span> header</h3> <p> Some paragraph. </p>
with this CSS:
h3 span { color: red; }
Some designs need that.
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: My favorite HTML font style tag is...
by BUU (Prior) on Aug 22, 2003 at 03:42 UTC
    You wouldn't write that. You would write:
    <h3><em>Some</em> Header</h3> <p> stuff </p>
    CSS
    h3 em { color: red; }
      This then, :D
      <h3 class="header1"><span>Some Header</span></h3> <p> stuff </p>
      CSS
      h3.header1 span { display: none; } h3.header1 { width: 200px; background: white url('images/header1.png') top left no-repeat; height: 25px; padding: 0px; }
      Fahrner Image Replacement

      P.S: I know about the one without the span ;)


      He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

      Chady | http://chady.net/