Solutions are depending on the context.
I guess you have a text contained by paragraphs, then give an example of chords and lyrics, and then continue the text in next paragraph. Or maybe a simple chart divided in paragraphs.
Your example could be coded like this:
HTML
Code:
<p class="chords>
<span>G<br>lyric</span><span> <br>lyric</span><span>Am<br>lyric</span><span> <br>lyric</span>...
</p>
CSS
Code:
.chords{
display: inline-block; /* for IE6 to set hasLayout in order to enclose floats */
}
.chords{
display: block; /* resets the p display to default */
overflow: hidden; /* make the p enclose the floats */
}
.chords span {
float: left; /* the two line spans will line up in a row and then wrap to next row */
margin-right: 0.6em; /* mimics a normal word spacing */
height: 2.4em;
line-height: 1.2em;
text-align: center; /* the short upper line will center over the lower line */
}
Bookmarks