Susie wrote:
> This is the instructions from Frontpage for a linked style sheet.>
>
> "Also called a linked style sheet in FrontPage, you use an external
> style sheet when you want to apply the same styles consistently
> across all the pages in your Web site that are linked to it.
>
> The link from a Web page to a style sheet is included in the document
> header (between the <head> and </head> tags using the <link> tag:
>
> <link rel="stylesheet" type="text/css" href="styles.css">
>
> Your style sheet would include the actual style definitions, such as:
> h1 {color: blue; }
>
> When I have H1, H2, H3 references on my pages, do I need this in the
> head of my page?
>
> <style type="text/css">
> <!--
> H1 size=12;
> H2 size=10;
> H3 size=8;
> }-->
> </style>
>
> Is that right? or do I need that in the head of my page at all, the
> instructions only show color. If I do need it, do I have it typed
> correctly? Thanks so much!
> Susie
Well, you can either have styles in the <head> section or in an external file. It doesn't matter where, but for the latter you must
also have the link in the <head>
h1, h2, h3 will use default styles, so you don't need to define them, but you may if you want to.
The correct syntax (when used in the <head> section) is:
<style type="text/css">
h1 {font-size=12px;}
h2 {font-size=10px;}
h3 {font-size=8px;}
</style>
This will set the font size only. Colour can be set if you wish.
For example
<style type="text/css">
h1 {font-size=12px; color: blue;}
h2 {font-size=10px; color: black;}
h3 {font-size=8px; color: red;}
</style>
will set a diiferent font size and colour for each of the headings h1, h2 and h3
If styles are set an external style sheet (e.g. styles.css), the tags <style type="text/css"> and </style> are not used
--
Cheers,
Trevor L.
Website:
http://tandcl.homemail.com.au