PDA

View Full Version : Adding a new class?


aceofspades
10-02-2007, 09:16 PM
Hi guys,

Im a little stuck and would really appreciate your help on this. Ive been modding my VB board and im trying to create a new CSS class for the username in the postbit. Say for example that i wanted it to be font size 14 and font arial, what should i be putting in that extra css definition box? Ive tried a few different combinations, but either it ends up screwing up my postbit, or it doesnt change the text at all.

Freesteyelz
10-03-2007, 02:07 AM
The class for the usernames in postbit is .bigusername, although you can change it to any class you want. If you wish to stick with it then go to Main CSS in Admin CP, at the second to the last text area (Additional CSS Definitions).

There are other ways but for what you want to do editing .bigusername is the less-hassle way.

aceofspades
10-03-2007, 08:45 AM
Ok, so ive edited the bigusername class in the css section in the admincp to how i want it. However since i was removing some of the code in the postbit, i dont know how to apply this CSS definition to the musername phrase.

So, what code do i use to apply the CSS bigusername definition to this phrase?

$post[musername]

Dismounted
10-03-2007, 09:38 AM
It's already applied on musername.

aceofspades
10-03-2007, 11:17 AM
Yes i know, but i was removing some code to restructure my postbit, and i happened to remove that as well, since i thought i would be creating a new class and not using an old one. How do i put the bigusername class back on?

Freesteyelz
10-04-2007, 01:13 AM
Depending on how you changed the codes, it should look similar to:


<div class="bigusername">$post[musername]</div>