PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Font Size what is best option?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Font Size what is best option?

Réponse
 
LinkBack Outils de la discussion
Vieux 01/07/2008, 14h10   #1
B
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Font Size what is best option?

Extemely basic question

What font size option is best to use

%
em
px

or other

cheers

--
B
http://www.visit-the-coqui.com
If you are thinking of a vacation to Puerto Rico

http://www.thegadgettraveler.com
Travel gadget and other news here



  Réponse avec citation
Vieux 01/07/2008, 14h36   #2
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Font Size what is best option?

..oO(B)

>Extemely basic question
>
>What font size option is best to use
>
>%
>em
>px


% or em. px should be avoided, because it makes it more difficult for
users of IE 6 and below to adjust the font sizes to their needs.

Micha
  Réponse avec citation
Vieux 01/07/2008, 14h39   #3
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Font Size what is best option?

All of them. Any of them.

If you use px, then users of IE will not be able to resize their text in the
browser (for readability purposes) without enabling the accessability
options. All other browser users will have no problems resizing text. In
addition, a px metric is an absolute metric - this means that it sets the
character size independently of any other font size specification elsewhere
on the page. This latter characteristic is also the case when you use the
font size names (xx-small, x-small, small, medium, large, x-large).

If you use any of the other metrics (i.e., percents, em, en, ex), then you
will get a RELATIVE size, that is one that depends on some 'going in' value.
For example, a page that contains an explicit declaration like this -

body { font-size:1em; }

will size ALL text (unless otherwise sized by other CSS rules) at the
browser's default size.

A page with an explicit declaration like this -

body { font-size:.5em; }

will size ALL text at half the browser's default size.

These relative metrics can be tricky to use since they will be part of the
inheritance/cascade of CSS styles. For example, on a page that has these
rules -

body { font-size:.5em; }
#container { font-size:.4em; }

any content in the #container element will be sized at 40% of 50% of the
default size, or 20% of the default.

If you want your pages to be totally elastic, and totally accessable, then
using a relative font metric if the norm.


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"B" <bw....@r....com> wrote in message
news:g4dabl$gpm$1@forums.macromedia.com...
> Extemely basic question
>
> What font size option is best to use
>
> %
> em
> px
>
> or other
>
> cheers
>
> --
> B
> http://www.visit-the-coqui.com
> If you are thinking of a vacation to Puerto Rico
>
> http://www.thegadgettraveler.com
> Travel gadget and other news here
>
>
>


  Réponse avec citation
Vieux 01/07/2008, 14h40   #4
B
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Font Size what is best option?

Thanks Michael - any major difference between % and em?

--
B
http://www.visit-the-coqui.com
If you are thinking of a vacation to Puerto Rico

http://www.thegadgettraveler.com
Travel gadget and other news here


"Michael Fesser" <netizen@gmx.de> wrote in message
news:ilck64tqrru3oudg8gv04ih6b8aa27f711@4ax.com...
> .oO(B)
>
>>Extemely basic question
>>
>>What font size option is best to use
>>
>>%
>>em
>>px

>
> % or em. px should be avoided, because it makes it more difficult for
> users of IE 6 and below to adjust the font sizes to their needs.
>
> Micha



  Réponse avec citation
Vieux 01/07/2008, 14h56   #5
B
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Font Size what is best option?

Thanks Murray

--
B
http://www.visit-the-coqui.com
If you are thinking of a vacation to Puerto Rico

http://www.thegadgettraveler.com
Travel gadget and other news here


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:g4dc2n$ijo$1@forums.macromedia.com...
> All of them. Any of them.
>
> If you use px, then users of IE will not be able to resize their text in
> the browser (for readability purposes) without enabling the accessability
> options. All other browser users will have no problems resizing text. In
> addition, a px metric is an absolute metric - this means that it sets the
> character size independently of any other font size specification
> elsewhere on the page. This latter characteristic is also the case when
> you use the font size names (xx-small, x-small, small, medium, large,
> x-large).
>
> If you use any of the other metrics (i.e., percents, em, en, ex), then you
> will get a RELATIVE size, that is one that depends on some 'going in'
> value. For example, a page that contains an explicit declaration like
> this -
>
> body { font-size:1em; }
>
> will size ALL text (unless otherwise sized by other CSS rules) at the
> browser's default size.
>
> A page with an explicit declaration like this -
>
> body { font-size:.5em; }
>
> will size ALL text at half the browser's default size.
>
> These relative metrics can be tricky to use since they will be part of the
> inheritance/cascade of CSS styles. For example, on a page that has these
> rules -
>
> body { font-size:.5em; }
> #container { font-size:.4em; }
>
> any content in the #container element will be sized at 40% of 50% of the
> default size, or 20% of the default.
>
> If you want your pages to be totally elastic, and totally accessable, then
> using a relative font metric if the norm.
>
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> ==================
>
>
> "B" <bw....@r....com> wrote in message
> news:g4dabl$gpm$1@forums.macromedia.com...
>> Extemely basic question
>>
>> What font size option is best to use
>>
>> %
>> em
>> px
>>
>> or other
>>
>> cheers
>>
>> --
>> B
>> http://www.visit-the-coqui.com
>> If you are thinking of a vacation to Puerto Rico
>>
>> http://www.thegadgettraveler.com
>> Travel gadget and other news here
>>
>>
>>

>



  Réponse avec citation
Vieux 01/07/2008, 15h04   #6
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Font Size what is best option?

You're welcome.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"B" <bw....@r....com> wrote in message
news:g4dd2m$jp8$1@forums.macromedia.com...
> Thanks Murray
>
> --
> B
> http://www.visit-the-coqui.com
> If you are thinking of a vacation to Puerto Rico
>
> http://www.thegadgettraveler.com
> Travel gadget and other news here
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:g4dc2n$ijo$1@forums.macromedia.com...
>> All of them. Any of them.
>>
>> If you use px, then users of IE will not be able to resize their text in
>> the browser (for readability purposes) without enabling the accessability
>> options. All other browser users will have no problems resizing text.
>> In addition, a px metric is an absolute metric - this means that it sets
>> the character size independently of any other font size specification
>> elsewhere on the page. This latter characteristic is also the case when
>> you use the font size names (xx-small, x-small, small, medium, large,
>> x-large).
>>
>> If you use any of the other metrics (i.e., percents, em, en, ex), then
>> you will get a RELATIVE size, that is one that depends on some 'going in'
>> value. For example, a page that contains an explicit declaration like
>> this -
>>
>> body { font-size:1em; }
>>
>> will size ALL text (unless otherwise sized by other CSS rules) at the
>> browser's default size.
>>
>> A page with an explicit declaration like this -
>>
>> body { font-size:.5em; }
>>
>> will size ALL text at half the browser's default size.
>>
>> These relative metrics can be tricky to use since they will be part of
>> the inheritance/cascade of CSS styles. For example, on a page that has
>> these rules -
>>
>> body { font-size:.5em; }
>> #container { font-size:.4em; }
>>
>> any content in the #container element will be sized at 40% of 50% of the
>> default size, or 20% of the default.
>>
>> If you want your pages to be totally elastic, and totally accessable,
>> then using a relative font metric if the norm.
>>
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do so!)
>> ==================
>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>> ==================
>>
>>
>> "B" <bw....@r....com> wrote in message
>> news:g4dabl$gpm$1@forums.macromedia.com...
>>> Extemely basic question
>>>
>>> What font size option is best to use
>>>
>>> %
>>> em
>>> px
>>>
>>> or other
>>>
>>> cheers
>>>
>>> --
>>> B
>>> http://www.visit-the-coqui.com
>>> If you are thinking of a vacation to Puerto Rico
>>>
>>> http://www.thegadgettraveler.com
>>> Travel gadget and other news here
>>>
>>>
>>>

>>

>
>


  Réponse avec citation
Vieux 01/07/2008, 20h51   #7
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Font Size what is best option?

..oO(B)

>Thanks Michael - any major difference between % and em?


Older browsers had some problems with properly scaling the one or the
other. This shouldn't be an issue anymore, even though I still prefer %
usually. Besides that there's no difference between % and em when they
are used for defining font sizes: 100% = 1em = default font size.

Of course the meaning of % is a different one if you use it to define
widths or margins for example.

Micha
  Réponse avec citation
Vieux 01/07/2008, 21h14   #8
B
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Font Size what is best option?

cheers - thanks for taking the time to

--
B
http://www.visit-the-coqui.com
If you are thinking of a vacation to Puerto Rico

http://www.thegadgettraveler.com
Travel gadget and other news here


"Michael Fesser" <netizen@gmx.de> wrote in message
news:n72l64t89kb2jo40qv5ikovpat96egnod6@4ax.com...
> .oO(B)
>
>>Thanks Michael - any major difference between % and em?

>
> Older browsers had some problems with properly scaling the one or the
> other. This shouldn't be an issue anymore, even though I still prefer %
> usually. Besides that there's no difference between % and em when they
> are used for defining font sizes: 100% = 1em = default font size.
>
> Of course the meaning of % is a different one if you use it to define
> widths or margins for example.
>
> Micha



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h45.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,21978 seconds with 16 queries