Previous Thread
Next Thread
Print Thread
Hop To
#185846 06/06/2007 6:46 PM
Joined: Jun 2007
Posts: 3
N
NLR
Offline
stranger
stranger
N Offline
Joined: Jun 2007
Posts: 3
Hi all,
Just moved across to new v7. Have had a few users ask for larger font size and one even ask if they, the users, can control their own font sizing.

Is this possible or at least to change the default font size?

Thanks in advance.

Nic

NLR #185853 06/06/2007 7:11 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
its controlled in your style sheet.

Modify your style sheet

General Style Sheet Properties :
body :

And increase

font-size: 10pt;

to 12 or something.

I dont think its possible to control there font size
due to the forums being in tables and pinned down with
pt and not em << That's just css not need to panic.

If there using IE they can Zoom

CTRL + use the mouse scroll wheel wink


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i suggest using em for the body tag, then everything else (that uses em) will be relative to whatever value you choose there. don't use pt or px (just my preference, only wink )

this will allow zoom and ALL will zoom proportionally.

eg: 'body' @ 0.85em/1.1em and oh say 'small' at .75 em.

since small is inside of body, it would NOT be .75 em, but instead it would be .75*0.85em(from body - essentially small is 3/4ths the size of whatever the body font size is).

that way, you can change just ONE em (body one) and all change relatively to it. this allows you to essentially clone an existing theme (say it's called 'mytheme-normalfonts' to another theme called 'mytheme-hugefonts' and just change the body css to a bigger em value and voila!) you don't have to hunt down all those specific pt values and change them.

SD #185862 06/06/2007 7:57 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
I may be wrong, but ive been reading that you need a fixed size for the em to work from?

Give the body a fixed pt and then em has a reference to work from.

If you dont give it a base you can get mixed results.

Its working for me on my websites.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i use em exclusively in all my ubbt 711 styles and the classes inside of the body follow with relative sizes determined by the body's em value.

eric meyer has some excellent examples of 100% em solutions and why to use them. An example that's an old one, but it still applies. he mentions the 'containing div' . well the body is the ultimate containing div, so it causes all to follow.

once again, it's STILL a personal choice and i only offer it as what i prefer.

using pt and px work too. it's just more work from where i see it.

ps: i'm not 100% em. just only for fonts. i use px where size matters and for absolute/relative positioning and width,height etc.

SD #185865 06/06/2007 8:08 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
yehh been to his sites, he knows his stuff.

If found unless i set a px / pt as a base, i get inconsistency's.

I read and read and read, got confused, read some more
and followed this advice and that advice.

In the end, i found as explained above to be my
best solution.

How come? I was trying to make a politically correct CSS site
you know the disabled stuff etc..

And the common word seems to be, forget it,
you can do it but it will look so poo.

CSS and Browsers just haven't settled enough for this to be
a practical road to take just yet.

I know i'm going to be proved wrong now lol


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
hehe, no you won't be proven wrong smile

they KEY is that you got it to work for your site and that is a good thing.

there are just different ways to do things and the nice thing is that every day the browsers get their sh*t together (cough IE cough) to finally start adhering to standards.

would be nice if we didn't have to put in IE hack or NS6 or whatever hacks, just for browsers that don't adhere to w3c or like to have their own DOM definition(s). frown

SD #185868 06/06/2007 8:15 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Have you seen the Yahoo hack for the cross browser
and font stabilisation ??

So font sizes are constant across browsers?

If not i shall dig a link out


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Here we go wink

May come in handy for others too Yahoo Hack

Then click on YUI Library CSS Tools:

CSS Grids http://developer.yahoo.com/yui/grids/
CSS Fonts http://developer.yahoo.com/yui/fonts/
CSS Reset http://developer.yahoo.com/yui/reset/


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2007
Posts: 3
N
NLR
Offline
stranger
stranger
N Offline
Joined: Jun 2007
Posts: 3
Thanks all.

I seem to amended most. Can't get a grip of Thread Number or Post Number?

Last edited by NLR; 06/06/2007 8:25 PM.
NLR #185873 06/06/2007 8:36 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
okay the style sheet.

Category/Forum Properties
.threadtotal

Add

font-size:12pt;

should do it wink


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by Mark S
So font sizes are constant across browsers?

thats a loaded question! laugh

answer: no ..

there are some caveats (that can be worked around, if you know what's happening -- and you don't accommodate really OLD browsers)

also, it's good to note that a 1em verdana X is different than a 1em Arial in size. so size + font matters.

Perty good explanation

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
And the same with the

.posttotal

font-size:1em;

em works like a percentage.
But if you want to standerdise what it looks like
use pt or px wink


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
That's why on my web pages i'm using the yahoo hack
to attempt to standardise font sizes across browsers. wink

IE7 & FF2

Ive noticed a difference and there now the same wink

I'm not fussed about the older browsers,
too much time and hassel, while i'm learning.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2007
Posts: 3
N
NLR
Offline
stranger
stranger
N Offline
Joined: Jun 2007
Posts: 3
legend! Thanks smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by Mark S
But if you want to standerdise what it looks like
use pt or px wink


well, i almost agree with you with one thing to add though.

px will vary in actual measured size by whatever resolution the user has for their monitor, while pt = 1/72inch which is absolute.

so, if you really want to be EXACT same size on any monitor, you use pt over px.

ps: it's between the 1st and 2nd period of the hockey game, so i HAD to come back ! laugh

NLR #185893 06/07/2007 3:23 AM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
fyi, users can adjust font sizes through their browser, making them smaller or larger based on their preferances; this is available through most modern browsers and is generally found under "view" as "font size".

I use it here all the time


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
SD #185937 06/07/2007 2:52 PM
Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Originally Posted by Sirdude
while pt = 1/72inch which is absolute.

so, if you really want to be EXACT same size on any monitor, you use pt over px.

Sorry to disagree but I believe that EM is the way to go to allow the user to change font size based on their own eyesight/preference. Using one of the fixed methods does not lend itself to WAI conformance.

I could be wrong but this site should have more information on the subject.

http://www.w3.org/WAI/

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i was only referring to exact size, and NOT my preference (which as i stated is em)

wink

SD #185975 06/08/2007 6:20 AM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
I'm learning like everyone else but i can share my findings.
which i found to be helpful.

Web Accessibility Initiative - that's what i was saying earlier, that to create such a site there are side effects, one i mentioned earlier is that to get the WAI Badge if you like the site is so basic in construction its not practical to try, as the results will be disappointing.

Ive like many done alot of reading on the internet about the correct way to go, a base line to get things on a standard road for presentation purposes. And to me there is a war of words on the internet about the best practices. Nothing is definitive in the right way.

I draw my conclusions from the magazines i have delivered and the so called expert columns, with that practising the results too.

Sir Dude your right about the pt (I do get confused with the million options in CSS)

So following and reading the advice over the net and my magazines and testing PERSONALLY i have found that by setting a BASE this can standardise the font size results.

Different browsers - have display different sizes for (em)

So when working towards a WAI site,
its always going to look different per browser.
If that's okay for you then that's fine wink

I like things to stay the same, so i wont go down a totally em road, i have proven to myself a pt / pix base then em up from there will standardise the font output.

My 25 cents worth lol

p.s. i'm no expert its only my understanding.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
Originally Posted by Mark S
My 25 cents worth lol


Euros or Dollars?

Ian #185994 06/08/2007 9:20 AM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
go for dollars


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Go for Dollars means it's is weaker these days frown

No doubt, each designer has to make his/her own decisions. There are some that have or want a specific artistic look that just will not look good if you're not running in the size and browser they want and they're fine with it.

Even WAI is not in agreement on some of their requests and is ongoing in recommendations.

I try to use some of it but I'm not going to go crazy over it unless I have a valid request to do so.

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Originally Posted by ntdoc
I try to use some of it but I'm not going to go crazy over it unless I have a valid request to do so.
agreed


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (Havenofsobriety), 156 guests, and 140 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)