|
Posted by Jim Jaworski on June 5, 2005, 3:36 pm
Please log in for more thread options
opt_inf_env@yahoo.com wrote:
> Ok. It was my mistake. <small> is not an html tag. However it works,
> i.e. if I put this tag into <h2></h2> tags (<h2> Text 1 <br> <small>
> Text 2 </small></h2>) I get what I want. Text2 is smaller than Text1
> and distance between lines is smaller than in example what I put above.
> What I do not like in this solution is that I use the unknown tag (I
> though that it have been defined in css but it is not the case). Do you
> know how the same result can be reached with the usage of html tags?
The best way is to use CSS's page break before pseudo element. For example:
h2.sect2 {
font-family: Arial,Palatino,sans-serif;
font-size: 1.2em;
text-align: center;
page-break-before: always;
}
Jim
|