The font family name must be enclosed in quotes

Discussion about CSS related issues.

The font family name must be enclosed in quotes

Postby RSteinwand » Fri Nov 07, 2008 4:10 pm

There seems to be a bug here:

<p style="text-align:center;font-family:font-family:'Courier New',Courier,monospace"><b>Username: </b><br /><b>Password: </b></p>

The font family name "font-family:'Courier New'" must be enclosed in quotation marks (single or double) because the name contains spaces, special characters, or doesn't begin with an alphabetic character.
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Postby RSteinwand » Fri Nov 07, 2008 4:37 pm

Also this related another warning from the same line:

<p style="text-align:center;font-family:font-family:'Courier New',Courier,monospace"><b>Username: </b><br /><b>Password: </b></p>

The following typeface may not be available on a significant number of browsers: "font-family:'Courier New'". Not recognized at all (check spelling): "font-family:'Courier New'".

Is this still the case? Maybe the chart here best answers that question:
http://nishizhen.cn/80reilly/webdesign/ ... h03_02.htm

Looks like Unix and Mac may not have it. Is that a significant number? I'm guessing less than 5% of our users are on mac/unix/linux.

Sorry to be so fussy, but I wasn't aware of this until I researched it more. I doubt we have many Mac users let alone Unix/Linux.
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Re: The font family name must be enclosed in quotes

Postby Albert Wiersch » Fri Nov 07, 2008 5:20 pm

RSteinwand wrote:There seems to be a bug here:

<p style="text-align:center;font-family:font-family:'Courier New',Courier,monospace"><b>Username: </b><br /><b>Password: </b></p>

The font family name "font-family:'Courier New'" must be enclosed in quotation marks (single or double) because the name contains spaces, special characters, or doesn't begin with an alphabetic character.


Hello,

Try changing it to this (remove the extra "font-family:" text):
<p style="text-align:center;font-family:'Courier New',Courier,monospace"><b>Username: </b><br /><b>Password: </b></p>
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby RSteinwand » Mon Nov 10, 2008 8:57 am

Oh crap. Didn't see that.

Thanks.
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND


Return to CSS (Cascading Style Sheets)

Who is online

Users browsing this forum: No registered users and 1 guest