The effect is as follows:
HEADING2 Text left-aligned......[periods used only in this example to force spacing]......HEADING2 Text right-aligned
(That is, the periods and intervening text are only there to illustrate that some H2 text is on the left margin of the page, and some H2 text is on the right margin of the page, and they are both displayed on the same line.)
I suspect there's a reasonably elegant way to use CSS to do what I want. Alas, my Web searches have provided several similar — but not identical — methods, NONE of which seem to be working especially well.
What I've tried so far is using the information on this page: http://css-tricks.com/left-align-and-ri ... same-line/
Here are the CSS styles I've tried so far:
Code: Select all
div.floatBox
{
margin-top: 2em;
}
h2.floatLeft
{
margin: 0em;
float: left;
display: inline;
}
h2.floatRight
{
margin: 0em;
float: right;
display: inline;
}
div.clearBoth
{
clear: both;
}All this sort of works, but it seems overly time consuming to apply, doesn't behave consistently, and breaks easily. (And the more I try to understand what's happening, the more snarled the whole thing seems to get…)
So is there a "clean" way to do what I want? Not only do I not want avoid needing to take five minutes to create each instance of H2s that contain left and right-aligned text, I want the result to be usable by someone who isn't a CSS expert…(?)
Cheers and thanks in advance for your help,
Riley