HighDots Forums  

Default Font

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Default Font in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brett Baisley
 
Posts: n/a

Default Default Font - 08-07-2004 , 01:10 PM






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 enclosed in <P> tags. They are just
basic fonts.

Can anyone help? Thanks!



Reply With Quote
  #2  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 02:18 PM






On Sat, 07 Aug 2004 17:39:05 GMT, Brett Baisley wrote:

Please do not top-post Brett,
I find it most confusing..
<http://www.physci.org/codes/javafaq.jsp#netiquette>
See further comments, in-line..

Quote:
"Andrew Thompson" <SeeMySites (AT) www (DOT) invalid> wrote in message
On Sat, 07 Aug 2004 17:10:16 GMT, Brett Baisley wrote:

I am trying to figure out how to change the default font-family and
font-size.
...
head
...
body {
font-family: Arial, sans-serif;
font-size: 100%;
}
/style
/head

Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px.
I like my font sizes the way they are Brett,
why do you want to go messing with them?

...There is a common discussion on these groups about
'Font Size', and the sagest and most reliable advice
seems to be. 'Let the user decide'.

Quote:
..I tried font-size: 10px but it doesn't
change. Is there a way to force the change?
Force? You want to force 10px down the
monitor of the visitors who invite your
web-page into their PC's?

What if that person has poor vision, and
prefers their fonts at 'double size', what if
they have a 1600x1200 monitor.. your 10px font
will be miniscule and unreadable.

The user might (if they are feeling kindly) go
into their browser settings, tell the UA to completely
ignore your styles, fonts, sizes and go on with
browsing your site, they may OTOH, hit the
Back button and kick your site the heck out
their browser (and lives).

The trick you seek is hidden within the
font-size element above, but it might pay
to read through both the group and the
recently revived FAQ to get some ideas about
where you might change your thinking to suit
both the visitor and the future.

Fixed font sizes, like pop-ups, are going the
way of the dinosaurs - the user will soon have
ultimate control over the sites they allow on
their PC's. If *your* layout/site does not work
at the size the user wants, they will simply
consider it 'broken'.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Reply With Quote
  #3  
Old   
Arne
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 02:38 PM



Tony Marston wrote:

Quote:
It is considered back practice to attempt to force a particular font size on
the end user. What happens if the end user is visually impaired and tries to
set View->Text Size->Larger? The whole purpose of HTML is NOT to enforce
your preferences on the end user.

It is considered bad practice to top posting also! See what happened
with the rest of the content (quotes of earlier posts) that you left
under your reply, when I reply to yours!

--
/Arne


Reply With Quote
  #4  
Old   
Arne
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 02:41 PM



Brett Baisley wrote:

Quote:
Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px. I tried font-size: 10px but it doesn't
change. Is there a way to force the change?
Why force a unreadable font size to your visitors? At least use em or
percent insted of px (or pt) so also IE users can change to larger size
if they need it, before they are able to read the content on your pages.

--
/Arne



Reply With Quote
  #5  
Old   
Brett Baisley
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 02:46 PM




"Arne" <arne (AT) luras (DOT) nu> wrote

Quote:
Brett Baisley wrote:

Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px. I tried font-size: 10px but it doesn't
change. Is there a way to force the change?

Why force a unreadable font size to your visitors? At least use em or
percent insted of px (or pt) so also IE users can change to larger size
if they need it, before they are able to read the content on your pages.

--
/Arne

Ok, I was going to hardcode my H1, H2, H3, etc because I don't like the
default jumps in between them. Like H1 is too big for what I want, and H2 is
just a bit too small. I am using CSS to modify them, but I'll just set the
percentages to acheive the style I am looking for. Is that a better way then
setting the size? Or am I still wrong?




Reply With Quote
  #6  
Old   
Brett Baisley
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 02:47 PM




"Arne" <arne (AT) luras (DOT) nu> wrote

Quote:
Brett Baisley wrote:

Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px. I tried font-size: 10px but it doesn't
change. Is there a way to force the change?

Why force a unreadable font size to your visitors? At least use em or
percent insted of px (or pt) so also IE users can change to larger size
if they need it, before they are able to read the content on your pages.

--
/Arne

And sorry for top posting. I perfer it that way, as then the most recent
reply is at the top. I didn't realize most people don't. I don't use
newsgroups enough to know these things.




Reply With Quote
  #7  
Old   
Arne
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 03:09 PM



Brett Baisley wrote:

Quote:
"Arne" <arne (AT) luras (DOT) nu> wrote in message
news:Pn9Rc.100251$dP1.346916 (AT) newsc (DOT) telia.net...

Brett Baisley wrote:


Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px. I tried font-size: 10px but it doesn't
change. Is there a way to force the change?

Why force a unreadable font size to your visitors? At least use em or
percent insted of px (or pt) so also IE users can change to larger size
if they need it, before they are able to read the content on your pages.

--
/Arne



Ok, I was going to hardcode my H1, H2, H3, etc because I don't like the
default jumps in between them. Like H1 is too big for what I want, and H2 is
just a bit too small. I am using CSS to modify them, but I'll just set the
percentages to acheive the style I am looking for. Is that a better way then
setting the size? Or am I still wrong?

If you have to set a particular size for the fonts, then you are on the
right way with percentages. Then all visitors can change the size if
they need (or like to) do so.

Good also to use CSS, and even better if you use an external CSS-file.
Then you can ease change the settings for all your pages (for exemple
the font sizes) if you want to do so later on.

--
/Arne



Reply With Quote
  #8  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 03:16 PM



On Sat, 07 Aug 2004 18:47:36 GMT, Brett Baisley wrote:

Quote:
And sorry for top posting. I perfer it that way, as then the most recent
reply is at the top. I didn't realize most people don't.
On most of the groups I post, people prefer
in-line posting with trimming. That is where
you trim everything you are not replying to,
then put your comment directly after.

OTOH, some groups are different, it is best to
have a read through a group for a few days at
least before you post. It gives you an idea of
the style preferred in the group, and you may well
find your answers in the posts you read.

Quote:
..I don't use
newsgroups enough to know these things.
There are a variety of handy resources you can
look out for, fortunately J.R.N. recently collected
a lot of them together into the, what is it, oh yeah..
"Welcome to comp.infosystems.www.authoring.stylesheets,
this is our newsgroup FAQ v2.00 "
<http://groups.google.com/groups?th=420ed4918ccc4996>

That is the short link, but follow the 'frames'
link to get the most up to date version, or..
<http://css.nu/faq/ciwas-mFAQ.html>

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Reply With Quote
  #9  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 03:21 PM



On Sat, 07 Aug 2004 19:16:36 GMT, Andrew Thompson wrote:

Quote:
There are a variety of handy resources you can
look out for, fortunately J.R.N.
J.R.N.?? Try..
"Jan Roland Eriksson"

(My apologies, Jan)

Quote:
...recently collected
a lot of them together into the, what is it, oh yeah..
"Welcome to comp.infosystems.www.authoring.stylesheets,
this is our newsgroup FAQ v2.00 "
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Reply With Quote
  #10  
Old   
Arne
 
Posts: n/a

Default Re: Default Font - 08-07-2004 , 03:25 PM



Brett Baisley wrote:

Quote:
"Arne" <arne (AT) luras (DOT) nu> wrote in message
news:Pn9Rc.100251$dP1.346916 (AT) newsc (DOT) telia.net...

Brett Baisley wrote:


Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px. I tried font-size: 10px but it doesn't
change. Is there a way to force the change?

Why force a unreadable font size to your visitors? At least use em or
percent insted of px (or pt) so also IE users can change to larger size
if they need it, before they are able to read the content on your pages.

--
/Arne


And sorry for top posting. I perfer it that way, as then the most recent
reply is at the top. I didn't realize most people don't. I don't use
newsgroups enough to know these things.
We all learn new things every day :-)
In most newsgroups bottom posting is the standard. In groups with a lot
of newbees and kids there may not be any standard at all. But everything
will be a mess when some people bottom post and other top post, in the
same thread.

For you it may be easier to top post if it's posts in threads you
started your self. But for everybody else it's better with bottom
posting in news. Especialy if you "jump in" and don't download all post
in that particular thread. Then you have no clue what the top poster is
talking about. :-)

If you are new to a thread, you will see that its easier to read the
original post first and first reply after that, so you can understand
the whole discussion when you reach the last (in the bottom and last in
time) post that normaly also is a reply to earlier posts.

You may top post in a communication with one single person, if both
parts agree to do so. That's possible since you and the other person
mostly know what you are replying to, and you both know what you are
talking about, without reading the quotes in the bottom of all mails.
I do it my self in mail mostly :-)

--
/Arne



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.