Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-14-2011, 03:32 PM   #1
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
CSS gurus - Why double list font size?

I'm working with a Wordpress theme and the CSS is listing font size as two sizes, like this...

Code:
.nav-entries a, .post-entries a { font: 14px/16px Arial, Helvetica, sans-serif; color:#6ca0a8; font-weight: bold; text-decoration:none;}
Never come across this before. Can someone explain to me the reason?

Thanks
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2011, 03:58 PM   #2
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
it's a bad behavior, but it's used to determine the line-height
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2011, 04:53 PM   #3
glowlite
Confirmed User
 
Industry Role:
Join Date: Dec 2005
Location: Arizona/Indiana
Posts: 366
As harvey said it has to do with the line-height property when using font: shorthand.
Very bad behavior, unpredictable results.

font: 14px/16px is the same as,
font-size: 14px; line-height: 16px;

CSS shorthand is not always reliable cross-browser.
For best cross-browser results body{ baselines are best practice along with baselines for other commonly used elements.
ie: P{ margin:;padding:;}
glowlite is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2011, 06:36 PM   #4
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Thanks guys, I will re-write this.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.