Using CSS instead of <font>

T

Trevor L.

BlankThe W3C standard states that use of the <font> tag is deprecated.

I have some code from which I am trying to remove it

style.css contains
..slide {font-face: Verdana,Arial,Helvetica,sans-serif ;
background: white ; text-align: center ;}

HTML contains
<body class="slide">
<p>
<img .........>
text in here
....

I find that even though the class of the body is "slide" which specifies {font-face: Verdana,...}, the text after the <img> tag does not take the font of verdana unless I add <font face=verdana> before the text.

Why is it so?
What can be done to put this spec in CSS?
--
Cheers,
Trevor L.




I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
T

Trevor L.

Hi all,

I have found my answer - the style should read {font-family: ....} and not {font-face: ....}

Wouldn't it be nice if the CSS spec and HTML spec were the same
:)))

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
?

=?Windows-1252?Q?Rob_Giordano_\=28Crash_Gordon=AE\

Have you downloaded TopStyleLite yet?

Hi all,

I have found my answer - the style should read {font-family: ....} and not {font-face: ....}

Wouldn't it be nice if the CSS spec and HTML spec were the same
:)))

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
D

David Baxter

BlankThe W3C recommendations (they are not standards, at least not yet) describe a lot of perfectly valid HTML as "deprecated". Frankly, I often wonder about their reality contact -- I wouldn't worry a whole lot about W3C when it comes to so-called deprecated tags and features or about W3C validation -- just make it work and use good HTML coding and you'll be fine.
The W3C standard states that use of the <font> tag is deprecated.

I have some code from which I am trying to remove it

style.css contains
.slide {font-face: Verdana,Arial,Helvetica,sans-serif ;
background: white ; text-align: center ;}

HTML contains
<body class="slide">
<p>
<img .........>
text in here
...

I find that even though the class of the body is "slide" which specifies {font-face: Verdana,...}, the text after the <img> tag does not take the font of verdana unless I add <font face=verdana> before the text.

Why is it so?
What can be done to put this spec in CSS?
--
Cheers,
Trevor L.




I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
T

Trevor L.

Yeah, well I have looked at the site and it looks really good but as a retired person the cost put me off somewhat.

I think I will just have to persevere with tutorials I can find on the Web e.g. w3schools and others which have been recommended in this newsgroup.

Although, I suppose, persons trying to get their knowledge by picking others brains (e.g. from this newsgroup) must get a little irritating after a while. I shall try to find the answers myself first to reduce the number of times I do so.

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
R

Ronx

Topstyle Lite is still a free download from www.bradsoft.com
Go to the Topstyle downloads page, and download it. IMO, the pro
version is worth every penny, and Lite is nearly as good.

--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

Yeah, well I have looked at the site and it looks really good but as a
retired person the cost put me off somewhat.

I think I will just have to persevere with tutorials I can find on the
Web e.g. w3schools and others which have been recommended in this
newsgroup.

Although, I suppose, persons trying to get their knowledge by picking
others brains (e.g. from this newsgroup) must get a little irritating
after a while. I shall try to find the answers myself first to reduce
the number of times I do so.

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
?

=?Windows-1252?Q?Rob_Giordano_\=28Crash_Gordon=AE\

Trevor,

The Lite version is *free* - which should fit into your budget :): http://www.bradsoft.com/download/index.asp

I used the lite for a few months while I saved up a few buckerooeys to buy the pro.



Yeah, well I have looked at the site and it looks really good but as a retired person the cost put me off somewhat.

I think I will just have to persevere with tutorials I can find on the Web e.g. w3schools and others which have been recommended in this newsgroup.

Although, I suppose, persons trying to get their knowledge by picking others brains (e.g. from this newsgroup) must get a little irritating after a while. I shall try to find the answers myself first to reduce the number of times I do so.

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
?

=?Windows-1252?Q?Rob_Giordano_\=28Crash_Gordon=AE\

oops sorry, didn't notice that Ronx had posted the same thang.

Yeah, well I have looked at the site and it looks really good but as a retired person the cost put me off somewhat.

I think I will just have to persevere with tutorials I can find on the Web e.g. w3schools and others which have been recommended in this newsgroup.

Although, I suppose, persons trying to get their knowledge by picking others brains (e.g. from this newsgroup) must get a little irritating after a while. I shall try to find the answers myself first to reduce the number of times I do so.

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 

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