Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Web Programming with HTML, XHTML, and CSS This forum is for discussing Jon Duckett's book Beginning Web Programming with HTML, XHTML, and CSS.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Web Programming with HTML, XHTML, and CSS section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 25th, 2004, 03:17 PM
Registered User
 
Join Date: Sep 2004
Location: , , USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to TheNinthPlayer Send a message via MSN to TheNinthPlayer
Default Great Book!

I purchased this book the day it came out and was very excited to see a detailed book on HTML thats not over 3 years old. To date Ive read 4 diffrent books on HTML\CSS and this is the best one yet. But there was one thing I was disappointed in not seeing.

John Duckett went into good detail on the FONTS properties in CSS. But he failed to mention that diffrent computers Macs, PC, Unix have diffrent fonts and that users should pick a common font from each system that they like. While I dont own a mac and cant know for sure I have been told that fonts like Arial, Verdana, Tahoma are not standard mac system fonts.

Reply With Quote
  #2 (permalink)  
Old October 26th, 2004, 11:44 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Those aren't Mac fonts. A similar Mac font is Helvetica.

So you'd declare your font as:
body {
    font-family: Arial, Verdana, Tahoma, Helvetica, sans-serif;
}

If you don't have access to all three platforms, then generic fonts are your best bet. Though given all the *nix variants, one *nix platform may not have the same available fonts as another. From my own experience, they've been consistent. Generic fonts are always available though (provided the browser supports them, many do).

sans-serif (Arial, Helvetica)
serif (Times, Times New Roman)
monospace (Courier, Courier New)
cursive
fantasy

http://www.w3.org/TR/CSS21/fonts.html#font-family-prop

In my own research I've found serif, sans-serif and monospace to be the most consistent.

HTH!


Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
Reply With Quote
  #3 (permalink)  
Old April 7th, 2010, 01:14 PM
Registered User
 
Join Date: Apr 2010
Location: Planet Earth
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
Default

That's why you should always put a generic font at the end of each CSS font code.
In his more recent book, Beginning HTML, XHTML, CSS, and Javascript, he does explain that.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 with C# - Great book! PorlyP Wrox Book Feedback 0 August 6th, 2007 07:58 AM
Great book saniamirza BOOK: Accessible XHTML and CSS Web Sites: Problem Design Solution 1 March 1st, 2007 09:57 AM
Great book, a little sloppy PatFrank BOOK: Beginning ASP.NET 2.0 and Databases 0 September 27th, 2006 02:20 PM
This Book - Great Disappointment mhardiman BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 2 August 4th, 2006 05:41 PM



All times are GMT -4. The time now is 12:00 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.