This is a discussion on "User Controlled text sizes" within the Web Page Design section. This forum, and the thread "User Controlled text sizes are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
User Controlled text sizes
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
User Controlled text sizes
<font face="Tahoma">
<font size="2"> <font color="blue"> As you should be aware, users can control the text size in their browser (View - Text Size - user selection) I have noticed using CSS that this over-rides the user control - does anyone know if there is away of over-coming this? Or is it, if you use CSS to control your font then thats it? </font id="blue"> </font id="size2"> </font id="Tahoma"> |
|
|
|
||||
|
CSS does overide the text size function of the IE browser.... no easy way round it really other than to just specify a font using the font tag, and leave the size up to the users browser.... you can also make use of the other size tags like h1, h2, etc.
I know with css you can specify text as bigger / smaller and this may be a way forward, although it is nothing I have really looked at before. Can anyone else shed any light on this?
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
<font face="Tahoma">
<font size="2"> <font color="blue"> What would be good is if you could detect and use a user specified font - so you would have to use some sort of script to find out what their font setting is on the browser - if medium then use CSS style else use user selected font size. You could have the stylesheet as an include file in ASP - then using a variable find out what the user text is set to and apply settings for font from there - trick is how do you find out if a user has set their font settings other than medium? </font id="blue"> </font id="size2"> </font id="Tahoma"> |
|
||||
|
I am not sure how to use the browsers font settings, however, a little trick I have used int he past it to have two CSS files. You can specify both CSS files up front and then switch between the two.
I have used this in two fashions. You can use it for a printer friendly page without having to reload the page or create a seperate page, or you could have a link on your page that says "Larger Fonts" which could switch to the CSS for larger fonts. Here is an example of the code:
|
|
|||
|
CSS font's are easy, just use relative sizes like em or % instead of px.
1em is the same as the normal size of a font, 0.5em is the same as half the size, 2em is twice the size etc... When using these types of sizes, if someone changes the browser font size, the text will resize along with it. Thats one of the main reasons against using px sizes. |
|
|||
|
http://www.alistapart.com/stories/goingtoprint/
Printer Friendly pages in CSS, no need for any javascript or the like or IE Vs NS version, works in all standards compliant browsers. |
|
|||
|
The idea is that they don't need to see what it will be like as you've already done that for them, and Meyer admits in places that people may be unaware the page is setup to print properly, but a note somewhere saying 'This page is set to print correctly' instead of a 'Printer Friendly' link could be used instead.
As sites start using print stylesheets, people will get used to not needing to check if its set as much. Hopefully, eventually, most websites will use a print stylesheet, thus people will EXPECT it to print fine (even if it does look different to the screen). |
![]() |
| Tags |
| user, controlled, text, sizes |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Curser controlled scrolling gallery | Solistic | Flash & Multimedia Forum | 2 | Sep 26th, 2007 16:00 |
| avatar sizes | Gerry | Webforumz Cafe | 15 | Sep 2nd, 2007 11:22 |
| IE CSS Hell - Font Sizes In IE & FF | weasel | Web Page Design | 2 | Aug 18th, 2007 17:41 |
| Page Sizes | Maverick25r | Web Page Design | 11 | Feb 26th, 2007 17:24 |
| image sizes | benbacardi | Classic ASP | 5 | May 24th, 2005 20:57 |