473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Default default font size?

I've done a bit of searching, and I can't find the answer to this
question: If you omit the "font-size" property from all of your CSS,
does it default to 100%? Thanks for bearing with a newbie.

Jul 20 '05 #1
8 2304
Tim
On Mon, 20 Sep 2004 22:49:05 -0400,
"Fast Eddie" <ne*******@newsserver.com> posted:
I've done a bit of searching, and I can't find the answer to this
question: If you omit the "font-size" property from all of your CSS,
does it default to 100%? Thanks for bearing with a newbie.


Providing you haven't done anything else to specify a different font size
(font elements, H elements, etc.), then yes.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #2
>> From: Fast Eddie

I've done a bit of searching, and I can't find the answer to this
question: If you omit the "font-size" property from all of your
CSS, does it default to 100%? Thanks for bearing with a newbie.


From: Tim

Providing you haven't done anything else to specify a different font
size (font elements, H elements, etc.), then yes.


My stylesheet, in its entirety, looks like this:

body { font-family: sans-serif; padding: 1%; }
img { border: 0px; }
td { vertical-align: middle; }

..left { float: left; }
..right { float: right; }
..main { clear: both; }

..fixed { font-family: monospace; white-space: pre; }
..nav { font-size: 80%; line-height: 1.5em; text-align: center; }

So it looks like any body text will default to 100%, which is exactly
what I wanted. Thanks for your reply.

Jul 20 '05 #3
On Tue, 21 Sep 2004 10:49:27 -0400, Fast Eddie <ne*******@newsserver.com>
wrote:
From: Fast Eddie

I've done a bit of searching, and I can't find the answer to this
question: If you omit the "font-size" property from all of your
CSS, does it default to 100%?
My stylesheet, in its entirety, looks like this:
...
So it looks like any body text will default to 100%, which is exactly
what I wanted. Thanks for your reply.


Mostly, yes. A few quick cmments.
body { font-family: sans-serif; padding: 1%; }
img { border: 0px; }
While this is not wrong, units are not required when the value is 0.
td { vertical-align: middle; }

.left { float: left; }
.right { float: right; }
.main { clear: both; }
It may be easier if you name the classes according to what it is, rather
than where it goes. Not seeing your page, I cannot make relevant
suggestions.
.fixed { font-family: monospace; white-space: pre; }
.nav { font-size: 80%; line-height: 1.5em; text-align: center; }


Your nav section's font size will be 4/5 of what I prefer to read. In some
environments this will be too small. I'd advise not to do that. Any text
the user needs to be able to read should be rendered at 100%. Save smaller
sizes for legal disclaimers etc. which are not needed for using the site.
Jul 20 '05 #4
From: Neal
From: Fast Eddie

I've done a bit of searching, and I can't find the answer to this
question: If you omit the "font-size" property from all of your
CSS, does it default to 100%?


My stylesheet, in its entirety, looks like this:
...
So it looks like any body text will default to 100%, which is
exactly what I wanted. Thanks for your reply.


Mostly, yes. A few quick cmments.
body { font-family: sans-serif; padding: 1%; }
img { border: 0px; }


While this is not wrong, units are not required when the value is 0.


Good point, and a good reason to purge the dreaded string "px" from my
CSS.
td { vertical-align: middle; }

.left { float: left; }
.right { float: right; }
.main { clear: both; }


It may be easier if you name the classes according to what it is,
rather than where it goes. Not seeing your page, I cannot make
relevant suggestions.


I thought about that before creating the names, but at least for now,
I don't have mental classifications better than "stuff I want on the
left/right of the page". However, I'm still formulating a personal
Web Design Philosophy [tm], so while I'm cogitating and mulling and
scribbling and whatnot, maybe my subconscious will suggest something
better.
.fixed { font-family: monospace; white-space: pre; }
.nav { font-size: 80%; line-height: 1.5em; text-align: center; }


Your nav section's font size will be 4/5 of what I prefer to read.
In some environments this will be too small. I'd advise not to do
that. Any text the user needs to be able to read should be rendered
at 100%. Save smaller sizes for legal disclaimers etc. which are
not needed for using the site.


An interesting point. I understand -- and embrace -- the idea that
users should determine for themselves what font sizes are most
readable. On the other hand, I want my scrawny text navbar to be
visually distinct from the rest of the page, and I'm disinclined to
make it large, bold, or a different font. (I want to keep things
simple, as my almost-null stylesheet suggests.) You've given me more
to think about, though.

Thanks very much for your comments. It turns out that the design of
even simple pages takes a lot of mental effort, and I'm grateful to be
able to draw on the expertise of people who've been down this road.

Jul 20 '05 #5
On Tue, 21 Sep 2004 14:41:22 -0400, Fast Eddie <ne*******@newsserver.com>
wrote:
Thanks very much for your comments. It turns out that the design of
even simple pages takes a lot of mental effort, and I'm grateful to be
able to draw on the expertise of people who've been down this road.


I must say it's refreshing to hear someone take comments in a professional
manner and not respond with whining or defensiveness. And you post inline
too!

I like this guy.

Jul 20 '05 #6
On Mon, 20 Sep 2004 22:49:05 -0400, "Fast Eddie"
<ne*******@newsserver.com> wrote:
I've done a bit of searching, and I can't find the answer to this
question: If you omit the "font-size" property from all of your CSS,
does it default to 100%? Thanks for bearing with a newbie.


For most elements, such as <p> and <div>, yes. For headings each browser
will have its own defaults. And for <pre> elements the browser default
is often around 90% because monospaced fonts have a width quite a bit
more than the average width for typical proportional fonts.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #7
>> From: Fast Eddie

I've done a bit of searching, and I can't find the answer to this
question: If you omit the "font-size" property from all of your
CSS, does it default to 100%? Thanks for bearing with a newbie.

From: Stephen Poley

For most elements, such as <p> and <div>, yes. For headings each
browser will have its own defaults. And for <pre> elements the
browser default is often around 90% because monospaced fonts have a
width quite a bit more than the average width for typical
proportional fonts.


Aha! Good catch. Thanks much.
Jul 20 '05 #8
Neal ne*****@yahoo.com wrote:
On Tue, 21 Sep 2004 14:41:22 -0400, Fast Eddie <ne*******@newsserver.com>
wrote:
Thanks very much for your comments. It turns out that the design of
even simple pages takes a lot of mental effort, and I'm grateful to be
able to draw on the expertise of people who've been down this road.


I must say it's refreshing to hear someone take comments in a professional
manner and not respond with whining or defensiveness. And you post inline
too!

I like this guy.


I'm pleased to see somebody who accepts that the main tool used for web
design is the human brain. An obvious fact that far too many people fail
to grasp.

--
eric
www.ericjarvis.co.uk
http://crimsonautograph.blogspot.com/
"live fast, die only if strictly necessary"
Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Isaac Grover | last post by:
Hi everyone, Rather than have this construct in my pages: <table> <tr><td><font face=arial size=3>line1</font></td></tr> <tr><td><font face=arial size=3>line2</font></td></tr> <tr><td><font...
3
by: Marti | last post by:
Dear everyone, Its my understanding that IE6 now uses a default text-size of "Small" rather than IE5's "Medium". Since I have used relative font-sizes (usually in ems) on all my sites, I am...
55
by: Haines Brown | last post by:
I've been setting font-size 1em; as the default in my style sheets. Until now, that seemed to be ok. But now I'm beginning to wonder. My aim is to have an easily readable, but not overly large...
54
by: Brett Baisley | last post by:
Hello, I am trying to figure out how to change the default font-family and font-size. I tried adding this to the BODY section, but it didn't work. I tried to the P section, but they are not...
2
by: SK | last post by:
Hello, I am creating a web server control derived from datagrid for the first time. Now I would like to set the prefix of my control by default to SK instead of CC1. Is that possible? The other...
4
by: JohnSmith90 | last post by:
Wheh I make the following statement, what is the unit for the font size. <td colspan='1' bgcolor='#F4F4F4'><font face='Verdana' size='1'><b>TestData</b></font></td> Thank you very much for...
2
by: Woody Splawn | last post by:
When placing labels and text boxes on winforms they are coming up by default in a size that is just a little too small. How do I change this so that in the future they will come up with a bigger...
12
by: Doogie | last post by:
How do I make a value the default value for a combo box in ASP 3.0? What I have below does NOT work, yet I've seen it in HTML file examples before (and works if I put it in a HTML file by itself,...
58
by: Don Li | last post by:
I've tried <body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;"> or <body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;"> or <body...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.