icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » All Things Techy » Web Standards Design » CSS shortcut font-size/line-height

Web Standards Design Discuss accessibility, CSS, XHTML and more.

Reply
 
LinkBack Thread Tools Search this Thread
Old March 30th, 2007, 2:36 AM   #1 (permalink)
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
CSS shortcut font-size/line-height

I just realized that if you want to specify font size and line height at the same time - you can! Just add a / and the line height you would like.

Code:
#whale a {
font: 12px/24px, "Helvetica", Arial, sans-serif;
color: #fff;}
__________________
Follow Surpass on Twitter and Facebook
Check out the Surpass Blog



Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 30th, 2007, 3:09 AM   #2 (permalink)
pineapples are sharp
Super #1
 
Brandonnn's Avatar
 
Joined in Dec 2005
5,777 posts
Gave thanks: 147
Thanked 151 times
Quote:
Originally Posted by Kayla View Post
I just realized that if you want to specify font size and line height at the same time - you can! Just add a / and the line height you would like.

Code:
#whale a {
font: 12px/24px, "Helvetica", Arial, sans-serif;
color: #fff;}
awesomeness!!! i saw this in the code and was like... wah?
__________________
poof
Brandonnn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 30th, 2007, 10:04 PM   #3 (permalink)
Surpass Fan
Seasoned Poster
 
Mykal's Avatar
 
Joined in Feb 2007
Lives in Maine
43 posts
Gave thanks: 4
Thanked 3 times
Typetester is a great online tool for testing - you guessed it - type. It doesn't combine properties like what you have demonstrated but sometimes it's not necessary to combine unless you are really trying to minimize file size.
__________________
Mykal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 30th, 2007, 10:09 PM   #4 (permalink)
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
Wow, Mykal. You're giving us lots of treats today - I better make a list! =)
__________________
Follow Surpass on Twitter and Facebook
Check out the Surpass Blog



Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 31st, 2007, 12:32 AM   #5 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,086 posts
Gave thanks: 48
Thanked 131 times
This is worth reading too.. http://webtypography.net/sxsw2007/
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 31st, 2007, 10:59 AM   #6 (permalink)
Surpass Fan
Seasoned Poster
 
Mykal's Avatar
 
Joined in Feb 2007
Lives in Maine
43 posts
Gave thanks: 4
Thanked 3 times
Quote:
Originally Posted by Kayla View Post
Wow, Mykal. You're giving us lots of treats today - I better make a list! =)
An unordered list I hope. :-)
__________________
Mykal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 31st, 2007, 10:55 PM   #7 (permalink)
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
Wow Mykal, nice music in your playlist there. Miss Suissa has an amazing voice.
__________________
Follow Surpass on Twitter and Facebook
Check out the Surpass Blog



Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 1st, 2007, 10:44 AM   #8 (permalink)
Surpass Fan
Seasoned Poster
 
Mykal's Avatar
 
Joined in Feb 2007
Lives in Maine
43 posts
Gave thanks: 4
Thanked 3 times
Thanks. I got iTunes happy yesterday and bought a bunch of new tracks. I've been really digging Trentemoller lately. Most of the time I go for the harder dance/trance but my ears must need a break or something. Was Miss Suissa in one of the tracks on my playlist?
__________________
Mykal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 1st, 2007, 12:14 PM   #9 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2004
Lives in Warsaw, Poland
Hosted on saprus
69 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by Kayla View Post
I just realized that if you want to specify font size and line height at the same time - you can! Just add a / and the line height you would like.

Code:
#whale a {
font: 12px/24px, "Helvetica", Arial, sans-serif;
color: #fff;}
Just small thing - comma after font size/line height is invalid. While most browsers will read through that some may get stumbled.
Right way will be
Code:
#whale a {
font: 12px/24px Helvetica, Arial, sans-serif;
color: #fff;}
__________________
medikoo.comvps
mariusznsaprus

www.medikoo.com
medikoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks medikoo for this great post!
mgk (April 1st, 2007)
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On