Overriding pre-set text/font size

This is a discussion on "Overriding pre-set text/font size" within the Web Page Design section. This forum, and the thread "Overriding pre-set text/font size 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


Closed Thread
 
LinkBack Thread Tools
  #1  
Old Apr 24th, 2005, 15:56
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Overriding pre-set text/font size

Can anyone tell me the easiest way to override browser-set text/font size?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Apr 24th, 2005, 16:21
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,152
Blog Entries: 7
Thanks: 26
Thanked 18 Times in 15 Posts
Use the CSS font-size property.

I should point out that if a user wants to over-ride this, they can.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Apr 24th, 2005, 17:09
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
My advice is to set your font-family in the BODY part of your css, then set the font-size: to between 70 and 80% (depending on font)

Then in the other styles use EM font sizes based on 1 (1 being the same size as the 70%-80% of the font)

Example:

BODY {
font-family: Arial, Helvetica, sans-serif;
font-size: 76%;
color: #000;
}

H1 { 1.4em } /* header 1 is 140% size of standard text */
H2 { 1.25em } /* header 2 is 125% size of standard text */
H3 { 1.1em } /* header 2 is 110% size of standard text */

As you build your page, resize the text to check that it doesn't break the layout.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Apr 24th, 2005, 17:54
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
thanks, D3mon. I actually tried a CSS style trick I found online. So far I think it's okay... text is set to pixels instead of pts. I even set the browser text to largest and the font stayed the same (crossing fingers that it's okay, the way I did it).

Thanks a mil, though. I copied and pasted that to notepad for future reference.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Apr 24th, 2005, 18:02
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
If the resize on your browser doesn't work with your page, then that would be a bad thing. Your website then become partially in-accessible.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Apr 24th, 2005, 18:44
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
I do understand that.... but it's just for one of my sites (I have 3). This site's design is done with image slices that would break apart if the text were resized to a large text size.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Apr 24th, 2005, 18:46
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Oh dear. Time for a re-design then!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Apr 25th, 2005, 13:33
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Why's that? Even Flash's text can't be controlled by IE. Also, when I got this laptop a couple weeks ago IE was set to default settings with a text size of medium. Some of the sites I previously visited with my old machine (IE set to my specifications with smaller text) looked awful... sliced images breaking apart, etc. And these were very well done, professional web sites, too.

Also, if you set IE to text size of "largest" while on this forum... the text stays the same. :wink:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Apr 25th, 2005, 16:35
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Flash is really a whole different issue. It's generally assumed that Flash sites aren't accessible anyway, so HTML alternatives should be provided.

What D3mon is saying, is that you should be able to change the text size and that it shouldn't break your design.

Although to be fair, there are browsers out there, such as Opera which resize the entire page, not just text. Personally I think if anyone has bad eyesight then they should use a similiar tool as, if they can't see the text at a particular size, then they probably can't see much else on the page either, including images? Again though, that's another argument!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old Apr 25th, 2005, 16:53
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
I understand what you're saying. Makes sense. But if a page is built with sliced images using tables (or even using CSS which can align the images as well), when the text is increased the cells increase and break images apart.

I'll see if I can find an example page... I know there are a few in my favorites folder.... I'll send them along shortly....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old Apr 25th, 2005, 17:24
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
I can't believe this, but all the links i went to (with my browser text set to largest) stayed the same! They're set not to resize. So, I then left the settings on largest and went surfing. The only sites I ran across where the test resized were ones done in 1st generation design. Even the American Legion web site's text didn't resize to the browser specifications! LOL

Updated Post

Okay, I went surfing around a bit and looked at the code on pages who have design similar to mine... to find out why the images, etc. on tables wouldn't break apart when the text size was increased by the browser....

I don't understand how it's done really, using multiple tables, but my page is in ONE table, whereas these other pages/designs have tables on top of one another, AND the one containing text inside frames (which allows the text to scroll)...

Is there a good, understandable tutorial out there for doing this?? I imagine if I switch my design over that I'll be forced to re-slice the images??

here's an example of one page that does this:

http://www.pywacket.org/adored.html

Here's the site I'm attempting to revamp. The splash page sucks, but I haven't decided yet what I want to do with it (flash or non-flash). Anyway, you can sort of see where I want the text to be and "scroll" (if possible, in frames or whatever)....

http://www.autumnwhisperstome.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
overriding, preset, textfont, size

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
[SOLVED] Ideal Font / Size? sing2trees Web Page Design 12 Dec 28th, 2007 09:50
IE7 font size and formatting - help Xhristy Web Page Design 4 Apr 3rd, 2007 17:35
How font size works in CSS? sahota Web Page Design 19 Dec 20th, 2006 22:56
Best way to define font size? rubyfruit Web Page Design 11 Sep 13th, 2006 13:58
font-size: does not work in <body> andersonoo7 Web Page Design 4 Jul 23rd, 2005 03:00


All times are GMT. The time now is 14:08.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42