![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, What does this style do? style type="text/css" * {font: 9pt Arial, sans-serif} /style Thanks, Ali |
#3
| |||
| |||
|
|
Hi, What does this style do? style type="text/css" * {font: 9pt Arial, sans-serif} /style |
#4
| |||
| |||
|
|
I think that would give you a syntax error. believe it should be { font-family:Arial, sans-serif; font-size:9px; } |
#5
| |||
| |||
|
|
Dave - This is shorthand and perfectly acceptable. The rule for shorthand font is: {font: font-style font-variant font-weight font-size/line-height font-family} Therefore: {font: bold small-caps 12-x/1.5 Arial, Verdana, sans-serif;} The only 2 required for this shorthand are font-size and font-family. So you can do this: {font: 12px Arial} But not this: {font: 12px;} or this: {font: Arial;} -- -- DiMa -------------------- WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your posts: news://forums.macromedia.com/macromedia.dreamweaver For Answers, check here first: http://groups.google.com/advanced_gr....dreamwea ver http://www.macromedia.com/support/dr...technotes.html http://www.projectseven.com/faqbase http://www.dreamweaverFAQ.com http://www.macromedia.com/support/forums/etiquette.htm www.flyingtigerwebdesign dot com |
#6
| |||
| |||
|
|
Does this short hand validate with w3c css standards? |
#7
| |||
| |||
|
|
A.M wrote: Hi, What does this style do? style type="text/css" * {font: 9pt Arial, sans-serif} /style The asterisk (*) is called the "universal selector". What it does is tell every element in the document to have the style which follows. So this particular style {font: 9pt Arial, sans-serif} will tell every element to be a 9pt font of Arial or sans-serif. |
#8
| |||
| |||
|
|
Hi, What does this style do? style type="text/css" * {font: 9pt Arial, sans-serif} /style Thanks, Ali |
#9
| |||
| |||
|
|
DiMa, Learn something new everyday ... whether I want to or not. * ... cool! |

#10
| |||
| |||
|
|
So the right solution for my prvious post: http://groups.google.ca/groups?q=Glo...e&hl=en &lr=& |
|
Is *, isn't it? |

![]() |
| Thread Tools | |
| Display Modes | |
| |