meglio % o em?
Make it accessible
I think em it's better.
:byez:
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
why?Originariamente inviato da pierofix
Make it accessible
I think em it's better.
:byez:
For one principal thing: if you resize your window to very small dimensions, your text will follow them. Result: totally unreadable text.
Not really a good thing...
![]()
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
I tried this:Originariamente inviato da pierofix
For one principal thing: if you resize your window to very small dimensions, your text will follow them. Result: totally unreadable text.
Not really a good thing...
but if I resize my window to very small dimensions, my text doesn't follow it ( copy and paste :maLOL: )codice:<span style="font-size:90%;">some text</span>
Ok. Try this: resize browser window before you load the document, then load it.
What's going to happen?
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
nothing
I tried also this code
codice:<html> <head> <style type="text/css"> html,body{width:100%;height:100%;font-size:100%;} </style> </head> <body> <span style="font-size:90%;">SOME TEXT</span> </body> </html>
I've always believed the text follows window dim.
Does anybody know something about it?
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
![]()
c'a fate?![]()
le misure dei caratteri in %Va poi sottolineato come Internet Explorer al momento gestisca le impostazioni in px ed in em delle dimensioni del testo in modo non standard, da qui il consiglio di impostare dette dimensioni in %:
* i pixel (px) vengono considerati valori assoluti, perciò il testo non viene ridimensionato (ingrandito);
* gli em, se utilizzati del "body" delle pagine, vengono gestiti in modo da ingrandire esageratamente il testo
Chicco Ravaglia per sempre con noi!
I tried both with FireFox and IE, but it doesn't.Originariamente inviato da pierofix
I've always believed the text follows window dim.
Does anybody know something about it?
That's why I use % , I find it easier and faster than em.
What about xx-small, x-small, small, medium, large, x-large, xx-large?