A definative CSS Font Sizing

This is a discussion on "A definative CSS Font Sizing" within the Web Page Design section. This forum, and the thread "A definative CSS Font Sizing are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 26th, 2006, 15:53
Junior Member
Join Date: Aug 2006
Location: Lancashire, UK
Age: 28
Posts: 36
Thanks: 3
Thanked 0 Times in 0 Posts
A definative CSS Font Sizing

In looking for a clear, definative way to size fonts on a web page I have come accross hundreds of different methods to set up or start sizing fonts on a page....

In the past I have always set the body in the css to a percentage and then used 'em' values to change styles that are different from the normal page text size.

Recently we have had to do a site with a strict 'doctype' and my previous methods no longer seem to be effective as no matter what I set the body % to be the sizing doesnt change.

Put simply:

body {
font-size: 70%;
font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
color: #345A03;
margin:0;
padding:0;
}
h1 {
font-size: 1.4em;
color: #7EA626;
font-weight: bold;
}
#smallerText {
font-size: 0.9em;
}
.......

What should I be doing? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 26th, 2006, 16:05
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Re: A definative CSS Font Sizing

not wuite sure what you mean, but you can use em's for sizes of divs aswell, as they then change size with the font
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 26th, 2006, 16:25
Junior Member
Join Date: Aug 2006
Location: Lancashire, UK
Age: 28
Posts: 36
Thanks: 3
Thanked 0 Times in 0 Posts
Re: A definative CSS Font Sizing

I think it's just a doctype problem, I have looked on various css sites since and changed mine and the fonts act differently depending on the doctype whilst still using the css posted previously.

I was looking for a definative style sheet set up that I should use in future.

I need to do some more research about the doctype I think and which ones to specify on my pages.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 26th, 2006, 17:18
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: A definative CSS Font Sizing

As well as the doctype, you need to look at the charset you are specifying as there may be an interaction there and also look at how your pages are being served up by the server, as html or xhtml.

Th basic principle use were using for font sizing was fine although I would set the body percentage higher so that it closely reflects any base font size that the user has set.

You can find some info on this in the css sticky at the top of the forum.

Last edited by ukgeoff; Oct 26th, 2006 at 17:20.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, font sizing

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sizing issues galan98 Starting Out 6 Apr 24th, 2007 15:27
Misleading font sizing ukgeoff Web Page Design 0 Apr 19th, 2007 14:26
Sizing of a page enemeth Web Page Design 4 Feb 13th, 2007 12:44
layout sizing help thadley Web Page Design 3 Mar 7th, 2006 23:17
Text/Font appearance & Sizing in photoshop 7 autumn_whispers2me Graphics and 3D 3 May 6th, 2005 23:04


All times are GMT. The time now is 09:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved