View Full Version : Save bandwidth with CSS.
This modification will save you tons of bandwidth. What it dose is point all the <font> tags to one source.
Basicly This:
<font face="verdana, arial, helvetica, sans-serif" size="2">
Becomes This:
<font class="nf">
It also blocks users from using custom sized text on your forum via their broswer :).
Buddha
11-18-2002, 02:09 PM
don't forget to add the large font sizes as well (if you use it).
i've got a bunch of stuff css'ed as well to save bandwidth. grabbed all of the css headerinclude and put it into it's own stylesheet along with all of my others (include the font size), and then linked it instead.
<link href="forum.css" rel="stylesheet" type="text/css">
there's a nice long thread about it at vbulletin.com in their hints and tips.
imported_DemonZ
11-18-2002, 02:54 PM
Very nice, Anime-loo.
I am currently using this already, but it's a good Mod.
Just to clarify, i dident make this myself. I belive it came out of the hints and tips forum at vbulletin.com.
filburt1
11-18-2002, 04:09 PM
http://www.vbulletin.com/forum/showthread.php?s=&threadid=17943 , specifically.
I for one don't use it because I sometimes do things like <normalfont style="padding:3px"> and this would confuse the browser. :)
Tony G
11-19-2002, 03:30 AM
Ahh, thats smart! Nice work. :)
Orfejs
01-30-2003, 04:13 PM
At last I found it.
It's miserable, it's fu2#$@#$ that by default vb2 did not used css all over the templates, because it's such a headache without them and all the serious browser support them for years ...
imported_Someguy
02-05-2003, 08:48 PM
Thanks, I for one am a 56k user, and I could immeditaly (badd speler, can't u tel?) see the difference.
Mickie D
04-08-2003, 05:26 PM
anime loo you have helped me loads of times :)
thanks very much for this mod, all mods that save bandwidth are top mods :)
Tony G
04-09-2003, 05:29 AM
I used this, couldn't use the smaller font which looks a bit more stylish though because it's hard for big reso's to see it.
Xelation
04-13-2003, 06:05 AM
Thank you god! I've always wondered how certain sites kept people from changing the size of the font... now it stays the same size no matter what their browser setting is... WEEE!! :D
imported_kyouens
05-01-2005, 04:56 PM
Why the hell would you want to stop people from changing the font sizes? To DECREASE the accessibility of your page for people with vision troubles, etc? That is contrary to what we all learned in webdesign 101. While it might make your site look cool, it's a bad precedent.
realy i dont understand this bit
Now go to the Styles section of the admin cp and click modify, then pick the style you wish to edit and click [fonts/colors/etc].
Under Larg Font and Normalfont leave the face and size options blank (if they are already filled deleate their contants)
Under the class feild add:
nf
Do the same for small font but under the class feild add this insted of nf:
sf
can anyone help me
clearchannel
10-23-2005, 06:17 PM
realy i dont understand this bit
Now go to the Styles section of the admin cp and click modify, then pick the style you wish to edit and click [fonts/colors/etc].
Under Larg Font and Normalfont leave the face and size options blank (if they are already filled deleate their contants)
Under the class feild add:
nf
Do the same for small font but under the class feild add this insted of nf:
sf
can anyone help me
I have the same issue. I created a new style so as to give my members a choice but I do not find how to complete this part of the instructions
Now go to the Styles section of the admin cp and click modify, then pick the style you wish to edit and click [fonts/colors/etc].
Under Larg Font and Normalfont leave the face and size options blank (if they are already filled deleate their contants)
When I click on styles then fonts/colors/etc I do not find the reference to large font. I instead see all style options, common templates, style, etc.
I want to create a new style the members can chose if they do not desire to see all the hoppla.
clearchannel
11-05-2005, 05:11 PM
Is there no interest in replying to this message? I am running vB 3.51?
Oh crap, I just realized this is a mod for vB2. How stupid am I......LOL
Is this doable in vB.51?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.