Cascading Style Sheets?

P

Paul Kraemer

Hi,

I created a file MyStyle.css consisting of no more than
the following lines...

body
{
font-family: Times New Roman;
font-size: 10pt;
font-weight: bold;
}

....This file is in my website's root folder. I have
an .html file with the following line in between the
<head></head> tags...

<link rel= "stylesheet" type "text/css"
href="MyStyle.css">

....Now, if I type some text inside the <body></body>
tags, I thought that it should appear in Times New Roman
10pt bold. It doesn't. Am I missing something?

Thanks,
Paul
 
S

Steve Easton

change your external sheet to this:

p, td, th, div{
font-family: Times New Roman;
font-size: 10pt;
font-weight: bold;
}

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
M

Murray

And make these modifications -

p, td, th, div{
font-family: "Times New Roman";
font-size: 12pxt;
font-weight: bold;
}

Multiple word font names must be enclosed in quotes; you should not use a
print metric for your fonts on the web. Instead of points, you should be
using ems, exs, percents, pixels, or size names. In addition, it's best to
use multiple font names, e.g.,

font-family: "Times New Roman", Times, serif;
 
P

Paul Kraemer

Murray,

Is that pxt or px that I should use for the font-size? I
tried to look up pxt and couldn't find anything on it.

Thanks,
Paul
 
S

Steve Easton

px

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
M

Murray

Oops - sorry. Steve is right - it's definitely px. <lame excuse>I
overtyped the "p" of "pt" but not the "t" of "pt"</lame excuse>!
 

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