FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-07-2003, 01:15 PM   Postid: 85347
morrisdan1
Registered User

Forum Notability:
75 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Dec 2000
Posts: 214
Are these .css codes okay ?

Hi,

Just to make sure, are the following codes okay ?

div, li, p, td {font: 16px times new roman; }
td { font: bold 12px ms sans serif; }

This "shortcut" seem to work when viewing my web pages using the Internet Explorer and Netscape browser.

Does it also work for some of the other browsers ?

What I mean by "shortcut" is that I simply just typed "font: bold 12px ms sans serif; " rather than writing it all out using tags like "font-family", "font-size", etc...

Is that okay ? Especially with some of the main browsers ?

Sincerely,
--Dan
1Heluva.com Surf-For-Hits and Enhance Your Financial Future
http://www.1heluva.com/cgi-bin/join.cgi?refer=31827
morrisdan1 is offline   Reply With Quote
Old 04-07-2003, 04:01 PM   Postid: 85356
Andilinks
Site Owner
 
Andilinks's Avatar

Forum Notability:
338 pts: An Honor To Be Around
[Post Feedback]
 
Join Date: Apr 2002
Location: San Antonio, Texas
Posts: 7,204
You might run them by the W3C validator.

http://jigsaw.w3.org/css-validator/

Tell me exactly where these appear on the site, I'll view them in my browsers.
__________________
@andilinks TwitterAndrea Silver FB
Andilinks is offline   Reply With Quote
Old 04-08-2003, 11:55 AM   Postid: 85418
Grendel
Site Owner
 
Grendel's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Feb 2002
Location: Mountain View, CA
Posts: 81
Sure, it should work fine. In fact, I have never seen a CSS-capable browser where the "font:" shortcut didn't work. It even works in the much-maligned Netscape 4.

The only thing to watch out for is that you can't put the various CSS values in just any order: "bold" and "italic" have to come before the font size, which have to come before the font family. See the font: property specification for more information.
__________________
Grendel

Last edited by Grendel : 04-08-2003 at 12:24 PM.
Grendel is offline   Reply With Quote
Old 04-08-2003, 07:53 PM   Postid: 85458
morrisdan1
Registered User

Forum Notability:
75 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Dec 2000
Posts: 214
Andilinks,

Thanks for the link to the validator. Sounds like something I could use. Which I've bookmarked it.

Sure. The sidebars on all of my pages uses the following code:

.sidebars td { font: bold 12px ms sans serif; height: 17 px; text-align: center; text-valign: middle; }

As you see the "font: bold 12px ms sans serif" should work on all pages. Using the following as an example:

http://www.dansbanners.com
morrisdan1 is offline   Reply With Quote
Old 04-08-2003, 07:56 PM   Postid: 85460
morrisdan1
Registered User

Forum Notability:
75 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Dec 2000
Posts: 214
Grendel,

As for your comments shown below:

"The only thing to watch out for is that you can't put the various CSS values in just any order: "bold" and "italic" have to come before the font size, which have to come before the font family. See the font: property specification for more information."

That's what I thought. Ok, thanks for your input and for the link.
morrisdan1 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:35 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.