Hello all,
I just need confirmation on the subject of font size and its
inheritance. Take this example:
body {
font-family: arial;
font-size: 95%;
}
p.fineprint {
font-size: 75%;
}
Is the font size in the p.fineprint set to 75% of the *value in the
body*? So in this case, it would be 75% of the 95% in the body. My
experiments seem to show that that's the case, but I just need some
confirmation.
Also, how do EM and % compare? Setting the font to 1em seems to be the
same as setting it to 100%, .90em seems the same as 90%. What are the
technical differences? In which cases should/would I use one over the
other?
Thanks everyone.
Viken K.
Jan 11 '06
36 3364
The current site I'm working on uses Arial font, as requested by my
"client" (I'm volunteering my time, 'cause this is fun for me). I set
the font to 100%, but they complained that it looked too big (tall).
They showed me examples of other sites that used Arial font, and said
"make it look like that". Reducing the font to 95% gave it the look
they wanted.
Actually, I think that Arial is easier to read at 95% than at 100%. The
letters don't look so tall and bunched together.
Viken K.
> Please see this page as well: http://www.safalra.com/special/googlegroupsreply/
Thanks. I was wondering why I couldn't quote in Google. When I'm at
home, I use Outlook Express for my news reader but at work I'm stuck
using the Google interface.
On 11 Jan 2006, Viken Karaguesian wrote: Actually, I think that Arial is easier to read at 95% than at 100%.
This sentence is meaningless because 95% and 100% are *not*
specific font sizes. You might say, for example,
| I think that Arial is easier to read at 10 pt than at 12 pt.
Someone else might say,
| I think that Arial is easier to read at 11 pt than at 10 pt.
> Please see this page as well: http://www.safalra.com/special/googlegroupsreply/
Thanks. I was wondering why I couldn't quote in Google. When I'm at
home, I use Outlook Express for my news reader but at work I'm stuck
using the Google interface.
Andreas Prilop Wrote: On 11 Jan 2006, Viken Karaguesian wrote:
body { font-size: 95%;
This is naughty! If you specify any font size for BODY, then take 100% only.
Absolutely. For the "body" font definition, you want that to be your "base" definition that all other font size determinations are made from. Ask yourself this: "If you are defining the body font-size to be 95%, it's 95% of WHAT?".
The best thing to do here is just to say:
font-size: medium;
Let the browsers interpret the rest from that point forward based on your percentages.
--
NoSLZZP
------------------------------------------------------------------------
NoSLZZP's Profile: http://2006.html.com/forums/member.php?userid=109
View this thread: http://2006.html.com/forums/showthread.php?t=45121
1
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
> This sentence is meaningless because 95% and 100% are *not* specific font sizes.
Ok, I see your point. Using percentages, then, must mean that the font
size is relative, but relative to what? It must be X% of something.
Viken K.
Viken Karaguesian wrote: Actually, I think that Arial is easier to read at 95% than at 100%. The letters don't look so tall and bunched together.
Then, once again, you need to adjust your own browser's default font
size. You may have really good eyes. Your visitors may not, and have set
their browsers to what they like. If you use 100%, you accomodate them.
You might also want to instruct your client on how to adjust the default
size in his/her browsers.
And ask them to read this thread.
--
-bts
-Warning: I brake for lawn deer
Viken Karaguesian wrote: This sentence is meaningless because 95% and 100% are *not* specific font sizes.
Ok, I see your point. Using percentages, then, must mean that the font size is relative, but relative to what? It must be X% of something.
X% of what each and every visitor (including yourself) has chosen as
their personal, preferred size. If you deviate from 100%, well, you are
abusing your visitors.
In Firefox, Tools > Options > General > Fonts & Colors
Adjust your own taste a bit lower than what it is now.
Not sure how we can make this any more clear...
--
-bts
-Warning: I brake for lawn deer
> X% of what each and every visitor (including yourself) has chosen as their personal, preferred size.
OK...I see. If I use the percent value in the <body> tag, then the base
font size is derived from the user's browser settings.
Viken K.
Viken Karaguesian wrote: X% of what each and every visitor (including yourself) has chosen as their personal, preferred size.
OK...I see. If I use the percent value in the <body> tag, then the base font size is derived from the user's browser settings.
Exactly.
And since this is "Be Kind To Visitors" week, use 100%. :-)
--
-bts
-Warning: I brake for lawn deer This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Luke Duddridge |
last post by:
Hello,
I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.
I set the relative sizes on the CSS so that the page would be best
sized with Microsoft IE set to view:text size:Medium(which I assume is
the default value) as not many people know that the size of the
browser text can be changed.
|
by: Haines Brown |
last post by:
I don't understand the inheritance logic in this situation.
Let me describe a simple situation: I have a document with a style
sheet that specifies:
address, blockquote, caption, center, dd, dir, div, dl, dt,
form, hr, menu, ol, p, td, th, ul {
font-size: 100%;
}
body {
font: 100% serif, "Times New Roman","Times Roman";
|
by: Fabian Neumann |
last post by:
Hi!
I got a problem with font-family inheritance. Let's say I have CSS
definitions like:
p {
font:normal 10pt Verdana;
}
strong {
font:normal 14pt inherit;
|
by: Cezar |
last post by:
Hi there.
On this page:
http://www.helpdeskics.com/
in the blue menu and footer font size in Opera is less than in other
browsers. Why ? I don't know how can I set correct font size for Opera.
--
Regards, Cezar.
|
by: srampally |
last post by:
The following code works in firefox. But IE displays the hyperlink at
font-size=13 rather than font-size=10. Why? If its a known IE bug, how
should I fix it? I always want the hyperlinks to take the size of the
next parent element's class.
thanks for the help,
Shashi
| |
by: Takehiko Abe |
last post by:
I have a <pelement with <ttinside:
;;; <p>A paragraph contains <tt>tt element</tt>.</p>
I would like to set the font-size of the TT to the same
as the containing <p>.
This does not seem to work:
;;; p {
|
by: Diogenes |
last post by:
Hi All;
I, like others, have been frustrated with designing
forms that look and flow the same in both IE and Firefox.
They simply did not scale the same.
I have discovered, to my chagrin, that IE7 does not seem
to offer any way to control the font size of a text input
element.
|
by: Roedy Green |
last post by:
Is there a shortcut way to define the default font family (and
characteristics) to be applied to all styles?
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |