|
2011-04-11, 08:23 PM | #1 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
Font Size - Point or Pixel?
This may be a dumb question, but what do you use for font size when you're building a page? Point or Pixel?
My editor (Namo) defaults to Point, so that's what I've used for the most part. But looking around the the source code for a lot of sityes, I see more & more using Pixel. So is one better than the other? Are there actually pros & cons for this? I know - I worry about silly things |
2011-04-11, 08:35 PM | #2 |
Shift Out / X-On
|
point is relative to the parent container
pixel is relative to the screen resolution iThink |
2011-04-11, 09:01 PM | #3 |
You can now put whatever you want in this space :)
|
I find this page very useful for figuring that stuff out:
http://net.jasonpearce.com/tools/cssfontsizes.html |
2011-04-11, 09:46 PM | #4 |
You can now put whatever you want in this space :)
Join Date: Feb 2007
Location: Australia
Posts: 658
|
I use pixels cos I can't figure out that relative stuff with ems, points and so on - pixels work for me
__________________
Good, Cheap Wordpress Themes |
2011-04-12, 06:24 AM | #5 |
That which does not kill us, will try, try again.
|
My take on this is that unless you're creating a stylesheet that will be called when someone wants to print your page there's no good reason to use points.
Point sizes are for print medium. Pixels are for display on a screen. (There are also percentages and ems for sizing, but unless you're designing a "liquid layout" there's not much reason to use those.) My suggestion is to use pixel sizes in most cases. HTH
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
2011-04-12, 07:11 AM | #6 |
Are you sure you're an accredited and honored pornographer?
Join Date: Sep 2008
Posts: 67
|
There seems to be a preference by those with a bent for css to prefer the 'em's and they are a recommended 'best practice' by w3.org (http://en.wikipedia.org/wiki/Em_(typography) and http://www.w3.org/WAI/GL/css2em.htm).
I have gotten comfortable with 'em's and fwiw at this point I find them convenient for describing font related sizes like font-size and line-height and font proportional padding/margins. I found two more interesting links discussing the matter here http://css-tricks.com/css-font-size/ and here http://www.w3.org/Style/Examples/007/units.en.html. The line of business connected to this forum has, how should one say (?), an emphasis on image presentation and web image sizes are described in px. This may more often make px a more intuitive measure here... |
2011-04-12, 07:20 AM | #7 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Coming from print I was use to using points and ems but doing static web pages I find it easier to use pixels since my images are measured in pixels but on blog templates and other fluid pages ems are the way to go.
|
2011-04-12, 09:04 AM | #8 |
Ahhh ... sweet pity. Where would my love life be without it?
Join Date: Jul 2010
Location: 5 minutes from the Golden Dome
Posts: 208
|
I use pixels, long time back use to use size 3 as standard, but nowdays size 4 and 5 are standard for me..with larger ones for impact...also a few well placed headline tags can do wonders sprinkled in..and SEs base codes all started with headline codes being super important and given a bit more weight...and i find they still are..if used correctly..
__________________
Great, Cheap, and Reliable Hosting Get $25 credit when you join M3Server HERE! |
2011-04-12, 09:38 AM | #9 |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
I can't get pages to work right when there is text and images unless I use pixels. With relative sizes, some combination of screen resolution and browser always gets screwed up. Switching to pixels makes it right.
This seems to go against what people who write css reference books recommend...oh well. |
2011-04-12, 10:43 AM | #10 | |
That which does not kill us, will try, try again.
|
Quote:
... because there's a lot that applies to mainstream design that just doesn't work for what most of us do here.
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
|
2011-04-12, 11:37 AM | #11 |
Lonewolf Internet Sales
|
Whichever way you choose, be consistent.
|
2011-04-12, 12:24 PM | #12 | |
Kodak Ghosts Run Amok
Join Date: Apr 2003
Location: Hobbs End
Posts: 1,718
|
Quote:
|
|
2011-04-15, 02:25 PM | #13 |
If something's hard to do, then it's not worth doing
Join Date: Apr 2011
Posts: 244
|
I generally prefer to use pixels.
|
2011-04-25, 04:05 PM | #14 | |
Oh! I haven't changed since high school and suddenly I am uncool
|
Quote:
px seem to be the most common and easy to work with |
|
2011-04-26, 04:09 PM | #15 | |
The only guys who wear Hawaiian shirts are gay guys and big fat party animals
|
Quote:
big I need it in order to see it clearly. Your business is to emphasize or de-emphasize text by making one part larger or smaller. Any of the following CSS size codes are appropriate for a designer. For example on a copyright notice "smaller", "small" or "x-small" might be good, but it's none of your business how many pixels is "x-small" to me: Code:
x-small Sets the font-size to an extra small size small Sets the font-size to a small size medium Sets the font-size to a medium size. This is default large Sets the font-size to a large size x-large Sets the font-size to an extra large size xx-large Sets the font-size to an xx-large size smaller Sets the font-size to a smaller size than the parent element larger Sets the font-size to a larger size than the parent element That let's you say you want this text a bit bigger or smaller than the rest, without making it invisible through my coke bottle glasses. This is especially important with the recent rise of mobile, though we've seen the same thing in prior years with WebTV, Playstation, etc. 20 pixels on a TV is 8% of the screen. 20 pixels on most monitors is closer to 2%, so on the TV it's four times times as tall. On my "dumb" phone, you have no idea what 20 pixels is, but you know that "larger" will be exactly that - larger than normal. While writing this, I was on the phone with a guy who has his browser to set about 32point font by default, because he doesn't see well. If you set either a point size or a pixel size you'll lose him. See also: http://www.w3schools.com/css/pr_font_font-size.asp |
|
2011-04-27, 08:32 PM | #16 |
Trying is the first step towards failure
Join Date: Feb 2010
Posts: 126
|
For me choose the pixel as what they say depends on the screen resolution. Cheers.
|
2011-04-27, 08:45 PM | #17 | ||
The only guys who wear Hawaiian shirts are gay guys and big fat party animals
|
Quote:
Point is a number of pixels which varies by system. Quote:
Agreed, there's not much reason to use percentages or ems if you are the only one viewing the site. On the other hand, if have, or want to have customers, and want your site to look good for potential customers, that when you want ems or percentages. |
||
2011-04-27, 08:53 PM | #18 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
My images are in pixels so I make my fonts in pixels so that they will be relative to the images.
|
2011-04-27, 09:34 PM | #19 | |
Shift Out / X-On
|
Quote:
|
|
2011-04-27, 09:41 PM | #20 | |
Lonewolf Internet Sales
|
Quote:
We're selling porn. Pics and vids of tits, ass and pussy. The text is there to enhance the pics and for SE spiders, not as the main content. |
|
2011-04-27, 10:38 PM | #21 | |
The only guys who wear Hawaiian shirts are gay guys and big fat party animals
|
Quote:
Whether the text is there as the primary content or to enhance the pics, it should be readable, or it should be gone. |
|
2011-04-28, 03:25 AM | #22 |
Lonewolf Internet Sales
|
I'll trust my 50+ year old eyes to be a pretty good judge of whether the text on my pages is readable or not for the overwhelming majority of my visitors.
|
2011-04-28, 06:20 AM | #23 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
I don't understand this "none of your business" part of this - plus why would I want to limit myself to 6 font sizes? When building my sites, I use anywhere from 10 pixels to 50 pixels.
|
2011-05-11, 11:54 AM | #24 |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Aug 2007
Posts: 33
|
I used point a while ago, but changed it to pixels because there is a flaw in Firefox. When setting the font size in windows to 125% or more. IE scales the font based on windows settings, while Firefox ignores the windows settings and displays the font with the point size defined.
To get a consistent layout regardless of browser and windows settings it's better to use pixels. Haven't tested it for Firefox 4.x yet, but there are still so many ppl using older Firefox versions, I think it will not change soon. Sable
__________________
The Pussy Well Blog |
|
|