deadlock Message Board
[ March Full List | Reply ]

HTML Help ...
From Bill on 8 March '99
replying to H1/small font posted by marge

>In using the "proper" H1-H4 tags, I sometimes come out with fontsizes larger than I want. Is it acceptable coding to use a smaller font size inside the heading tags, ie <H1> <F> words </F> </H1> ?

The proper way to do this is to use Cascading Style Sheets. However,
because the lack of support for CSS is still fairly large, you can
still use the antiquated style formatting for the headings.

For instance ...

<h1><font size="-1"><i>Level One Heading</i></font></h1>

Just be sure that your tags are nested properly. Not like this ...

<h1><i><font size="-1>Level One Heading</i></font></h1>

See the difference?

The easiest way to create this same effect with CSS would be ...

<h1 style="font-style: italic; font-size: 20pt">L 1 H</h1>

... though I've had more success with ...

<h1 style="font-style: italic; font-weight: lighter">L 1 H</h1>

Hope this helps.

Reply to this message

Required Details
Your name:

Optional Details
Home page title:
Home page URL:
(if you'd like to receive
automatic replies by email)

Your Message