HighDots Forums  

Converting font size from pix to em or %

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Converting font size from pix to em or % in the Macromedia Dreamweaver forum.



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

Default Converting font size from pix to em or % - 11-25-2004 , 07:07 PM






Hiya,

Thanks for all the useful info I have discovered here .... you folks rock !!

I'm "almost" finished my first and basic foray into CSS ... still got a
looong way to go in the learning curve ... but ... I keep seeing
comments and opinions on not using pixel size for fonts, but to use % or
em to allow font resizing ...

My main question is there a formula or ready reference type list around
to let me figure out how to convert pix size to em or %

TIA
K

Reply With Quote
  #2  
Old   
Nadia *TMM*
 
Posts: n/a

Default Re: Converting font size from pix to em or % - 11-25-2004 , 07:17 PM






Hey K:
Take a look at these - which may help:
http://css-discuss.incutio.com/?page=FontSize
http://www.bigbaer.com/css_tutorials/css_font_size.htm
http://www.htmlhelp.com/reference/css/font/font-size.html

--
Nadia
Team Macromedia Volunteer for Dreamweaver
--------------------------------------------
Free Templates | Free Nav Bar Sets
http://www.DreamweaverResources.com
Dropdown/Flyout Menu Designs | CSS Layouts
Ecommerce - YVStore | SEO Articles |Tutorials
---------------------------------------------
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
---------------------------------------------
Email: nperre at gmail dot com
---------------------------------------------

"karebai" <karebaiREMOVE (AT) THIS489designs (DOT) net> wrote

Quote:
Hiya,

Thanks for all the useful info I have discovered here .... you folks rock
!!

I'm "almost" finished my first and basic foray into CSS ... still got a
looong way to go in the learning curve ... but ... I keep seeing comments
and opinions on not using pixel size for fonts, but to use % or em to
allow font resizing ...

My main question is there a formula or ready reference type list around to
let me figure out how to convert pix size to em or %

TIA
K



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

Default Re: Converting font size from pix to em or % - 11-25-2004 , 07:20 PM



kewl ... thanks Nadia

Nadia *TMM* wrote:

Quote:
Hey K:
Take a look at these - which may help:
http://css-discuss.incutio.com/?page=FontSize
http://www.bigbaer.com/css_tutorials/css_font_size.htm
http://www.htmlhelp.com/reference/css/font/font-size.html


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

Default Re: Converting font size from pix to em or % - 11-25-2004 , 07:37 PM



You're welcome !

--
Nadia
Team Macromedia Volunteer for Dreamweaver
--------------------------------------------
Free Templates | Free Nav Bar Sets
http://www.DreamweaverResources.com
Dropdown/Flyout Menu Designs | CSS Layouts
Ecommerce - YVStore | SEO Articles |Tutorials
---------------------------------------------
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
---------------------------------------------
Email: nperre at gmail dot com
---------------------------------------------
"karebai" <karebaiREMOVE (AT) THIS489designs (DOT) net> wrote

Quote:
kewl ... thanks Nadia

Nadia *TMM* wrote:

Hey K:
Take a look at these - which may help:
http://css-discuss.incutio.com/?page=FontSize
http://www.bigbaer.com/css_tutorials/css_font_size.htm
http://www.htmlhelp.com/reference/css/font/font-size.html




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

Default Re: Converting font size from pix to em or % - 11-25-2004 , 08:54 PM



Handy sites for explanations .... found this one on a more intense
search .... this what I was basically looking for may come in handy for
future newbies you may come across ...
http://4ums.com/tools/font-size_em_reference.html

and thanks again )

K

Nadia *TMM* wrote:

Quote:
You're welcome !


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

Default Re: Converting font size from pix to em or % - 11-26-2004 , 02:35 AM



Hi

Just a word of warning on using ems, it you are going to use that unit
don't use it as your default unit on the body or you will trigger some
text sizing bugs in earlier versions of IE (5x) where the font size
scales oddly and becomes very tiny. IMHO I would use %, set the default
size on the body to 100.01% and then scale off that.

for instance:

p {
font-size: 80%;
}

h1 {
font-size: 135%;
}

etc


--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------

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

Default Re: Converting font size from pix to em or % - 11-26-2004 , 02:47 AM



why 100.01% and not just 100%?
"jojo" <jojo (AT) zoot3 (DOT) com> wrote

Quote:
Hi

Just a word of warning on using ems, it you are going to use that unit
don't use it as your default unit on the body or you will trigger some
text sizing bugs in earlier versions of IE (5x) where the font size scales
oddly and becomes very tiny. IMHO I would use %, set the default size on
the body to 100.01% and then scale off that.

for instance:

p {
font-size: 80%;
}

h1 {
font-size: 135%;
}

etc


--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------



Reply With Quote
  #8  
Old   
jojo
 
Posts: n/a

Default Re: Converting font size from pix to em or % - 11-26-2004 , 02:53 AM



Negates a bug in older versions of Opera when scaling off the body,
Safari - I believe - has problems scaling from 101%, so 100.01% seems a
good solution.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------

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

Default Re: Converting font size from pix to em or % - 11-26-2004 , 02:54 AM



jojo wrote:

Quote:
so 100.01% seems a good solution.
As in works reliably cross browser and cross platform.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------


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

Default Re: Converting font size from pix to em or % - 11-26-2004 , 03:01 AM



noted, tks

"jojo" <jojo (AT) zoot3 (DOT) com> wrote

Quote:
jojo wrote:

so 100.01% seems a good solution.

As in works reliably cross browser and cross platform.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------



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.