Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2005, 07:35 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default <font face="verdana" size=2> exact equivalent -CSS

Code:

is there a exact equivalent of this in CSS, i cant get it to work???

font: verdana;

doesnt work???

www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old November 18th, 2005, 09:28 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This will work in paragraphs:

p{
font-family: verdana
font-size: 100% OR 12px
}

You can play with the px or % values until you get the size you want. p.s You can usually find this sort of stuff by googling for it ;).

HTH
Joe

 
Old November 18th, 2005, 11:35 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

thanks Joe, i tried google - but didnt get much back.....


www.crmpicco.co.uk
 
Old November 18th, 2005, 11:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

What google do you use? ;)
http://www.google.com/search?q=font+css

You can also just look it up.
http://www.w3.org/TR/REC-CSS2/intro.html
That thing thing comes with a table of contents
http://www.w3.org/TR/REC-CSS2/cover.html#minitoc
a index
http://www.w3.org/TR/REC-CSS2/indexlist.html
and handy-dandy table over properties
http://www.w3.org/TR/REC-CSS2/propidx.html

{ font: Verdana } doesn't work because 'font' is a shorthand property and you need, at a minimum, to use values for font-family and font-size.
http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font

--
http://yupapa.com
 
Old November 18th, 2005, 11:52 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

> thanks Joe, i tried google - but didnt get much back.....

What terms are you trying? The simplest terms "CSS font" returns loads of results, and plenty of examples.

Second result is the W3C CSS font specification.

Quote:
quote:
There is no "try"... there is only do or do not.
- Yoda
It doesn't work because at a minimum the font shorthand property requires a font size and font family.
font: 12px verdana;

http://www.w3.org/TR/REC-CSS2/fonts.html#font-shorthand

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old November 20th, 2005, 10:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Thanks for clearing that up, Richard. :D

--
http://yupapa.com
 
Old November 26th, 2005, 04:41 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Ah, no problem.. maybe some time I a type too slow... ;)

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
About CSS Chapter 5 the <thing> + <thing> {} part thenetduck BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 February 7th, 2007 03:45 AM
Fixing <TD> size. rupen HTML Code Clinic 4 April 28th, 2006 07:41 AM
font-size problem in CSS crmpicco CSS Cascading Style Sheets 2 August 22nd, 2005 09:31 PM
@font-face Hunter CSS Cascading Style Sheets 6 November 9th, 2004 04:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.