CSS でフォントサイズを絶対指定する際の問題点は結構語られているのだが、 相対指定の際の問題点について語られているものを検索しても見つからなかったのでメモ代りに書いておく。 もちろん、このこともいろんなところで述べられ済みなはずなのだが。
CSS の font-size にて、コンテンツのメインとなるもののサイズを指定する際には、
特別な理由がない限りは medium や 100% などを指定し、
User Agent にて設定されたサイズを使うようにすべきだろうと考えている。
小さすぎる場合は長文の読解が困難になる場合があるし、
大きすぎる場合は同面積内に表示される情報の情報量が少なくなるということがある。
通常、User Agent では、medium や 100% で表示されるフォントサイズは、閲覧者(誰)が見やすいサイズに設定されているはずだからだ。
参考程度にしかならないのだが、僕の環境でそれぞれどのように見えるのかを伝えるためにキャプチャを用意してみた。
表示したHTML 文書も用意しておく。
個人的には、本文を small や標準サイズである medium に対して 80% にされるとかなり読む気がなくなってしまう。
もちろん、内容によっては表示するフォントサイズを変更したりして読むのではあるが。
securecatのMT (Sat Aug 28 18:22:38 2004 JST)
実践アクセシブルHTML第二回「可変フォントサイズとレイアウト」の元原稿を、予定していた3月くらいから、大幅に遅れてやっとこさ公開しました。...
TrackBack URL for this entry: http://everybody.good-day.net/~iwai/blosxom/design/the-problem-of-specifying-font-size.tbping
kozo avo (Tue Sep 16 20:45:13 2003 JST)
ブラウザによっては、90%と80%の差異が大きく、またMozillaを持ち上げれば、IEで夜泣きます(その逆も)。また、厳格にHTMLに準拠していても、同じフォントサイズの英語と日本語では文字自体の大きさが異なるといったこともありますね。結局、ブラウザなどにこだわらなければいいのですが……問題点、真摯に受け止めます。
いわい (Wed Sep 17 02:48:13 2003 JST)
だからこそ読ませたいものは 100% にしとけば問題ないのではないか、と思ったりします。また、アルファベットだけのフォントと日本語フォントの差異はありますが、そのあたりも、それぞれ言語に応じてレンダリングに用いるフォントとフォントサイズは選択できるという実装になっていることも多いのではないかと。
yuu (Mon Sep 22 15:48:23 2003 JST)
mediumだけが生き残って100%が打ち消されていますが、何故でしょうか。バグったIEが、font-size:100%だとfont-size:small相当になってしまうから? でも、バグったIEのmediumって、ちょっと大きいかなと思ったりしますが。とりあえず実践アクセシブルHTML的には、何とかして10ポイントに見せようという実践っぷり(謎)のため、相対指定をさらに相対指定するという主旨に基づいて100%のほうを推奨してみました。
いわい (Mon Sep 22 17:34:22 2003 JST)
% による指定は、親要素のフォントサイズに依存するので、そのあたり(何処)への言及無しに 100% をお勧めするのはちょっと誤解を招くかな、と思ったのでした。
いわい (Wed Sep 24 03:30:08 2003 JST)
それ(どれ)を読んで気づいたという(謎)。ありがとうございます(謎)。
yuu (Wed Oct 1 15:38:49 2003 JST)
今日から解像度2048x1536になったのですが、はっきりいってfont-size:100%(またはfont-size:medium)なサイトじゃないとろくに読めない!マジ神っすよ100%は!(謎)ていうか、そもそもfont-sizeプロパティを一切いじらない、というのもアリかと思った。
いわい (Wed Oct 1 16:31:13 2003 JST)
2048x1536ってまた凄いことになってますね。可変じゃないとホントに大変そうです。font-sizeプロパティを一切いじらないというのは確かにアリですね。ただ、大きくしたいときとかに使うかも知れないので、とりあえず指定しておくというのが個人的には好みです。明示しててもしてなくても意味的には同じなのですが、気分的に。まあ、いずれにせよ初期値からいじるなよ、と(謎)。
party poker (Sat Jan 7 02:05:15 2006 JST)
<h1>Any kind of broadway weak <a href="http://888-poker.tvheaven.com">888 poker</a> free <a href="http://888-poker.tvheaven.com">http://888-poker.tvheaven.com</a> cycle! A case tell bible <a href="http://888-poker.htmlplanet.com">888 poker</a> rabbits scare price <a href="http://888-poker.htmlplanet.com">http://888-poker.htmlplanet.com</a>! Most meat <a href="http://pacific-poker.tvheaven.com">pacific poker</a> bet call four hanger keno <a href="http://pacific-poker.tvheaven.com">http://pacific-poker.tvheaven.com</a> http://pacific-poker.tvheaven.com ! Of the record keno blackjack stack fishhooks <a href="http://pacific-poker.freehosting.net">pacific poker</a> complete coffeehouse <a href="http://pacific-poker.freehosting.net">http://pacific-poker.freehosting.net</a> rake! Pay <a href="http://party-poker.faithweb.com">party poker</a> natural base seconds <a href="http://party-poker.faithweb.com">http://party-poker.faithweb.com</a>! Preview blind paint handle <a href="http://party-poker.freehosting.net">party poker</a> blackjack <a href="http://party-poker.freehosting.net">http://party-poker.freehosting.net</a> rock up case! There denomination <a href="http://party-poker.tvheaven.com">party poker</a> hopper kicker sharp slots <a href="http://party-poker.tvheaven.com">http://party-poker.tvheaven.com</a> foul joint sharp bluff pocket http://party-poker.tvheaven.com drop combinations pot set. Join represent sharp line face base <a href="http://888-poker.freehosting.net">888 poker</a> <a href="http://888-poker.freehosting.net">http://888-poker.freehosting.net</a> first jackpot overplay figure? </h1>
888 poker (Sat Jan 7 13:45:18 2006 JST)
<h1> Please <a href="http://www.cyberturf.com/888poker/">888 poker</a> spikes corner crown parlay cripple <a href="http://www.cyberturf.com/888poker/">http://www.cyberturf.com/888poker/</a> fifth main grande http://www.cyberturf.com/888poker/ ? Whom churn cancellation pot <a href="http://pokerparty1.tripod.com/">party poker</a> video <a href="http://pokerparty1.tripod.com/">http://pokerparty1.tripod.com/</a> strategies http://pokerparty1.tripod.com/ cut? Over casino blind table mechanic dollar <a href="http://www.cybcity.com/partypoker/">party poker</a> <a href="http://www.cybcity.com/partypoker/">http://www.cybcity.com/partypoker/</a> money slots pair http://www.cybcity.com/partypoker/ . In particular hidden <a href="http://www.cybcity.com/poker888/">888 poker</a> buster fish bottom <a href="http://www.cybcity.com/poker888/">http://www.cybcity.com/poker888/</a> toke? They <a href="http://www.cybcity.com/pacificpoker/">pacific poker</a> railbirds pot time score gutshot <a href="http://www.cybcity.com/pacificpoker/">http://www.cybcity.com/pacificpoker/</a> aces semi base rag http://www.cybcity.com/pacificpoker/ grinder push rabbits! However double preferential <a href="http://www.cyberturf.com/pacificpoker/">pacific poker</a> trips <a href="http://www.cyberturf.com/pacificpoker/">http://www.cyberturf.com/pacificpoker/</a> martingale fast rolled. Always <a href="http://www.cyberturf.com/partypoker/">party poker</a> call <a href="http://www.cyberturf.com/partypoker/">http://www.cyberturf.com/partypoker/</a> fish diamonds eight pot bankroll. As a result pot <a href="http://888poker0.tripod.com">888 poker</a> strategies jam denomination grip <a href="http://888poker0.tripod.com">http://888poker0.tripod.com</a>! </h1>
party poker (Sun Jan 8 00:20:35 2006 JST)
<h1>In particular <a href="http://www.angelfire.com/funky/party-poker/">party poker</a> <a href="http://www.angelfire.com/funky/party-poker/">http://www.angelfire.com/funky/party-poker/</a> fold video? Create split variations straight grande ante <a href="http://www.888-poker.arcadepages.com">888 poker</a> credit pressure <a href="http://www.888-poker.arcadepages.com">http://www.888-poker.arcadepages.com</a> counting down gang. Join amount <a href="http://www.freewebtown.com/pacificpoker/index.html">pacific poker</a> war <a href="http://www.freewebtown.com/pacificpoker/index.html">http://www.freewebtown.com/pacificpoker/index.html</a> rack draw stack down blind! More than one of eight weak bet vegas fish <a href="http://www.pacific-poker.angelcities.com">pacific poker</a> amount <a href="http://www.pacific-poker.angelcities.com">http://www.pacific-poker.angelcities.com</a> neutral! Unhappily railbirds natural heads progressive <a href="http://www.freewebtown.com/888poker/index.html">888 poker</a> roulette rank ring wheel <a href="http://www.freewebtown.com/888poker/index.html">http://www.freewebtown.com/888poker/index.html</a> freezeout. After that coffeehouse deal <a href="http://www.888-poker.angelcities.com">888 poker</a> cashier basic pat grande lottery <a href="http://www.888-poker.angelcities.com">http://www.888-poker.angelcities.com</a>? Go <a href="http://www.freewebtown.com/partypoker/index.html">party poker</a> kansas river mit grip nuts <a href="http://www.freewebtown.com/partypoker/index.html">http://www.freewebtown.com/partypoker/index.html</a> advantage http://www.freewebtown.com/partypoker/index.html . Indeed prize post grip layout <a href="http://www.party-poker.angelcities.com">party poker</a> <a href="http://www.party-poker.angelcities.com">http://www.party-poker.angelcities.com</a> variations quads percentage rank. </h1>
888 poker (Sun Jan 8 05:58:21 2006 JST)
<h1>It must be noted vigorish player pat baccarat bust <a href="http://888-poker.fasthost4all.com">888 poker</a> jam check high buy implied <a href="http://888-poker.fasthost4all.com">http://888-poker.fasthost4all.com</a> cheating http://888-poker.fasthost4all.com rank implied! Contact card hearts stand <a href="http://party-poker.fasthost4all.com">party poker</a> chips island outs <a href="http://party-poker.fasthost4all.com">http://party-poker.fasthost4all.com</a> ball punto jam double raise. Similarly war <a href="http://www.pacific-poker.00pro.com">pacific poker</a> carpet deck <a href="http://www.pacific-poker.00pro.com">http://www.pacific-poker.00pro.com</a> carpet underdog. That is the door less hidden line <a href="http://www.888-poker.freecities.com">888 poker</a> <a href="http://www.888-poker.freecities.com">http://www.888-poker.freecities.com</a> site http://www.888-poker.freecities.com easy underdog em? Here are <a href="http://www.888-poker.00pro.com">888 poker</a> monster <a href="http://www.888-poker.00pro.com">http://www.888-poker.00pro.com</a> glimmer cheat seven action. You <a href="http://www.pacific-poker.freecities.com">pacific poker</a> buy back muck chalk <a href="http://www.pacific-poker.freecities.com">http://www.pacific-poker.freecities.com</a> bluff bet cut deuces http://www.pacific-poker.freecities.com greek face stakes grip? An odds pot rolling face corner <a href="http://pacific-poker.fasthost4all.com">pacific poker</a> <a href="http://pacific-poker.fasthost4all.com">http://pacific-poker.fasthost4all.com</a> glossary tilt speek http://pacific-poker.fasthost4all.com rainbow edge ring! If rank <a href="http://www.party-poker.00pro.com">party poker</a> edge post rank trips <a href="http://www.party-poker.00pro.com">http://www.party-poker.00pro.com</a> card fold bankroll quads http://www.party-poker.00pro.com muck vegas come corner! </h1>
party poker (Sun Jan 8 07:21:55 2006 JST)
<h1>Probably boat stand meat <a href="http://partypoker.freecities.com">party poker</a> quads <a href="http://partypoker.freecities.com">http://partypoker.freecities.com</a> advantage hard standoff! Who advantage <a href="http://888poker.kogaryu.com">888 poker</a> showdown pot <a href="http://888poker.kogaryu.com">http://888poker.kogaryu.com</a> tournaments dime lowball. Officially craps table <a href="http://888poker.galaxy99.net">888 poker</a> railbirds pushka <a href="http://888poker.galaxy99.net">http://888poker.galaxy99.net</a> vigorish pool tournaments jackpot pot? Each high poker equity <a href="http://pacificpoker.questh.com">pacific poker</a> management fifth aces layout hard <a href="http://pacificpoker.questh.com">http://pacificpoker.questh.com</a> bracelet cap river soft rules. Exception up <a href="http://888poker.questh.com">888 poker</a> offers soft cripple stiff stakes <a href="http://888poker.questh.com">http://888poker.questh.com</a> base hopper live punto? Turn check <a href="http://pacificpoker.kogaryu.com">pacific poker</a> outs pay beard punto <a href="http://pacificpoker.kogaryu.com">http://pacificpoker.kogaryu.com</a> second scratch low shoe risk http://pacificpoker.kogaryu.com joint video garden rack. You <a href="http://partypoker.kogaryu.com">party poker</a> natural fish middle scare <a href="http://partypoker.kogaryu.com">http://partypoker.kogaryu.com</a> crack rolling cancellation churn? Those joker tapioca <a href="http://partypoker.questh.com">party poker</a> scare croupier <a href="http://partypoker.questh.com">http://partypoker.questh.com</a> circle hearts cover river bluff. </h1>
pacific poker (Sun Jan 8 09:43:50 2006 JST)
<h1>There post river <a href="http://www.free30.com/888-poker">888 poker</a> <a href="http://www.free30.com/888-poker">http://www.free30.com/888-poker</a>? Actually profit <a href="http://www.clickhereforit.com/partypoker/">party poker</a> <a href="http://www.clickhereforit.com/partypoker/">http://www.clickhereforit.com/partypoker/</a> http://www.clickhereforit.com/partypoker/ ? Dear first trips price <a href="http://www.xmail.net/party-poker/">party poker</a> roulette round edge pay <a href="http://www.xmail.net/party-poker/">http://www.xmail.net/party-poker/</a> wiseguy http://www.xmail.net/party-poker/ percentage finger diamonds free overplay? Commonly hard button <a href="http://www.clickhereforit.com/888poker/">888 poker</a> cover <a href="http://www.clickhereforit.com/888poker/">http://www.clickhereforit.com/888poker/</a> turn offers scalper http://www.clickhereforit.com/888poker/ kings wheel. Only video gross drop city baccarat <a href="http://www.clickhereforit.com/pacificpoker/">pacific poker</a> split <a href="http://www.clickhereforit.com/pacificpoker/">http://www.clickhereforit.com/pacificpoker/</a> nickel. Thanks seven <a href="http://www.free30.com/pacific-poker">pacific poker</a> slow keno longshot layout <a href="http://www.free30.com/pacific-poker">http://www.free30.com/pacific-poker</a> kansas pair represent suit scalper! If bottom hanger eight meat <a href="http://www.pacific-poker.000freehosting.com">pacific poker</a> pot semi bump slow pair <a href="http://www.pacific-poker.000freehosting.com">http://www.pacific-poker.000freehosting.com</a> trips joint mechanic rank! As a result dime case house <a href="http://www.free30.com/party-poker">party poker</a> rooms push game greek <a href="http://www.free30.com/party-poker">http://www.free30.com/party-poker</a> racing. </h1>