Help - Search - Members - Calendar
Full Version: Adding a comment on the same line after a heading
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
Brian Chandler
I fancy I've asked this question before, but I'll try again. I want the following layout:


A Heading (a note expanding on the heading)

Suppose the heading is <h5>, I suppose the neatest I can think of is something like:

H5 {
_ _ ...nice big print ...
}

H5 SPAN.note_relating_to_heading {
_ _ ...smaller ordinary print ...
}

And generate the heading as

<h5>Cheburashka <span class="note_relating_to_heading">(also known as something else in Sweden)</span></h5>


But I wonder if there is a neater way (that is robust)... ?
Darin McGrew
I've used similar markup, except that I use <small> rather than <span>:
CODE
<h1>Title Goes Here<br><small>(Subtitle Goes Here)</small></h1>
Brian Chandler
Thanks Darin - I hadn't thought of "small"...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.