HighDots Forums  

CSS Shorthand for font styles

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS Shorthand for font styles in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jip
 
Posts: n/a

Default CSS Shorthand for font styles - 02-11-2005 , 10:46 AM






What is the shorthand version of:

..mystyle {
font-family: Arial, sans-serif;
font-size: 13px;
font-weight:bold;
color: #000000;
}

Thanks in advance!

Reply With Quote
  #2  
Old   
Heather
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 11:04 AM






..mystyle {
font: bold 13px Arial, sans-serif;
color: #000000;
}

--
Heather



"jip" <cmanning (AT) imacs (DOT) com> wrote

Quote:
What is the shorthand version of:

.mystyle {
font-family: Arial, sans-serif;
font-size: 13px;
font-weight:bold;
color: #000000;
}

Thanks in advance!



Reply With Quote
  #3  
Old   
jip
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 11:34 AM



Thanks Heather. BTW, is the order important? In other words, could I have written it this way?:

..mystyle {
font: Arial, sans-serif 13px bold ;
color: #000000;
}

Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 11:53 AM



Yes. The meaning of each of those shorthand values is self evident.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"jip" <cmanning (AT) imacs (DOT) com> wrote

Quote:
Thanks Heather. BTW, is the order important? In other words, could I have
written it this way?:

.mystyle {
font: Arial, sans-serif 13px bold ;
color: #000000;
}



Reply With Quote
  #5  
Old   
Heather
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 11:54 AM



You're welcome. As for the order, I tested it and apparently the order does
make a difference. The style worked when ordered as I had pasted. It
didn't work when I tried your order. If I'm wrong and the order means
nothing, I'm sure someone here (who knows better than I do) will correct me.


--
Heather



"jip" <cmanning (AT) imacs (DOT) com> wrote

Quote:
Thanks Heather. BTW, is the order important? In other words, could I have
written it this way?:

.mystyle {
font: Arial, sans-serif 13px bold ;
color: #000000;
}



Reply With Quote
  #6  
Old   
Pablo
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 12:00 PM



Hello Heather

Have you got a Mac?

--
Cheers Pablo

_____________________

Whoever said "image doesn't matter" was lying.
http://www.dellwebsites.com
______________________________________
"Heather" <heather (AT) NOfeatherthewebJUNK (DOT) com> a écrit dans le message de news:
cuio0t$cuj$1 (AT) forums (DOT) macromedia.com...
Quote:
You're welcome. As for the order, I tested it and apparently the order
does
make a difference. The style worked when ordered as I had pasted. It
didn't work when I tried your order. If I'm wrong and the order means
nothing, I'm sure someone here (who knows better than I do) will correct
me.


--
Heather



"jip" <cmanning (AT) imacs (DOT) com> wrote in message
news:cuimqj$b2t$1 (AT) forums (DOT) macromedia.com...
Thanks Heather. BTW, is the order important? In other words, could I
have
written it this way?:

.mystyle {
font: Arial, sans-serif 13px bold ;
color: #000000;
}





Reply With Quote
  #7  
Old   
Heather
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 12:11 PM



Nope...PC only.

--
Heather



"Pablo" <dunno (AT) dunno (DOT) com> wrote

Quote:
Hello Heather

Have you got a Mac?

--
Cheers Pablo

_____________________

Whoever said "image doesn't matter" was lying.
http://www.dellwebsites.com
______________________________________
"Heather" <heather (AT) NOfeatherthewebJUNK (DOT) com> a écrit dans le message de
news:
cuio0t$cuj$1 (AT) forums (DOT) macromedia.com...
You're welcome. As for the order, I tested it and apparently the order
does
make a difference. The style worked when ordered as I had pasted. It
didn't work when I tried your order. If I'm wrong and the order means
nothing, I'm sure someone here (who knows better than I do) will correct
me.


--
Heather



"jip" <cmanning (AT) imacs (DOT) com> wrote in message
news:cuimqj$b2t$1 (AT) forums (DOT) macromedia.com...
Thanks Heather. BTW, is the order important? In other words, could I
have
written it this way?:

.mystyle {
font: Arial, sans-serif 13px bold ;
color: #000000;
}







Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 12:11 PM



Heather:

I stand corrected. The order is important.

Optional
-----------
bold - italic - oblique - small-caps (in that order)

then -

Required
------------
size - size/height

then -

Required
------------
family


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Heather" <heather (AT) NOfeatherthewebJUNK (DOT) com> wrote

Quote:
You're welcome. As for the order, I tested it and apparently the order
does make a difference. The style worked when ordered as I had pasted.
It didn't work when I tried your order. If I'm wrong and the order means
nothing, I'm sure someone here (who knows better than I do) will correct
me.

--
Heather



"jip" <cmanning (AT) imacs (DOT) com> wrote in message
news:cuimqj$b2t$1 (AT) forums (DOT) macromedia.com...
Thanks Heather. BTW, is the order important? In other words, could I have
written it this way?:

.mystyle {
font: Arial, sans-serif 13px bold ;
color: #000000;
}





Reply With Quote
  #9  
Old   
Pablo
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 12:16 PM



Okay

Thanks.

--
Cheers Pablo

_____________________

Whoever said "image doesn't matter" was lying.
http://www.dellwebsites.com
______________________________________
"Heather" <heather (AT) NOfeatherthewebJUNK (DOT) com> a écrit dans le message de news:
cuiovm$ei3$1 (AT) forums (DOT) macromedia.com...
Quote:
Nope...PC only.

--
Heather



"Pablo" <dunno (AT) dunno (DOT) com> wrote in message
news:cuioba$dd8$1 (AT) forums (DOT) macromedia.com...
Hello Heather

Have you got a Mac?

--
Cheers Pablo

_____________________

Whoever said "image doesn't matter" was lying.
http://www.dellwebsites.com
______________________________________
"Heather" <heather (AT) NOfeatherthewebJUNK (DOT) com> a écrit dans le message de
news:
cuio0t$cuj$1 (AT) forums (DOT) macromedia.com...
You're welcome. As for the order, I tested it and apparently the order
does
make a difference. The style worked when ordered as I had pasted. It
didn't work when I tried your order. If I'm wrong and the order means
nothing, I'm sure someone here (who knows better than I do) will
correct
me.


--
Heather



"jip" <cmanning (AT) imacs (DOT) com> wrote in message
news:cuimqj$b2t$1 (AT) forums (DOT) macromedia.com...
Thanks Heather. BTW, is the order important? In other words, could I
have
written it this way?:

.mystyle {
font: Arial, sans-serif 13px bold ;
color: #000000;
}









Reply With Quote
  #10  
Old   
Heather
 
Posts: n/a

Default Re: CSS Shorthand for font styles - 02-11-2005 , 12:20 PM



I wasn't sure if it made a difference...so I tested it. Once I saw the
difference, I figured it obviously had some importance, but still wasn't
100% sure. There are many people who post on here with more experience than
I have and figured someone would correct my mistake if I was wrong.


--
Heather



"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
Heather:

I stand corrected. The order is important.

Optional
-----------
bold - italic - oblique - small-caps (in that order)

then -

Required
------------
size - size/height

then -

Required
------------
family


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================



Reply With Quote
Reply




Thread Tools
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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.