Help needed with stylesheets.

C

Chris

I am just starting out using CSS.

I have created a stylesheet "styles.css" in which I have:
h1 { font-family:Monotype Corsiva; font-size:36pt }

I have linked a page to this with:
<link rel="stylesheet" type="text/css" href="styles.css">

I have specified the format for some of the text on the page with:
<h1><b>Sussex Crafts</b></h1>

If I vary the font-size in the stylesheet this is reflected on the
page, but for some reason I am unable to make it pick up the
font-family, it always displays in Arial.

What have I missed?
 
C

Chris

I have amended the style sheet as follows:

..h1 { font-family:Monotype Corsiva; font-size:36pt },
i.e. .h1 rather than h1

and the page as follows:

<p class="h1">Sussex Crafts</p>

This works OK, but is it the right wya to do things?
 
T

Tom Miller

Chris said:
I have amended the style sheet as follows:

.h1 { font-family:Monotype Corsiva; font-size:36pt },
i.e. .h1 rather than h1

and the page as follows:

<p class="h1">Sussex Crafts</p>

This works OK, but is it the right wya to do things?
Chris,
I am also just starting out in style sheets. I suggest that another
resource to check is: http://www.w3schools.com where they have a large
tutorial on css. Congratulations on trying to go past FP themes....

Respectfully,
Tom Miller

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top