The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to fix [CODE]?
<a href="http://www.virtualsportsnetwork.com/forum/showpost.php?p=777150&postcount=466" target="_blank">http://www.virtualsportsnetwork.com/...&postcount=466</a>
For some reason code has changed its formatting and now does not work properly. Any idea how to fix this? Any code I need to provide to make troubleshooting easier? |
#2
|
||||
|
||||
Since I have no idea what you expect it to look like, I can't tell you what's wrong. Maybe you changed the font? (for some reason, you are using Verdana in there instead of a basic typeface font)
|
#3
|
|||
|
|||
We're using verdana instead of a type face font -- there's no way to assign CODE a certain font?
|
#4
|
||||
|
||||
Sure, you can add it inline in the style tag in the template (along with all the other inline style stuff).
|
#5
|
|||
|
|||
What would the name of the style be?
.code {font-family: Arial;}? |
#6
|
||||
|
||||
Arial is also a sans-serif font. You want to use a monospace font like Courier.
|
#7
|
|||
|
|||
I tried doing this, but apparently I don't know how to do this. How do you give [code] a style set?
|
#9
|
|||
|
|||
I mean what is code's actual title in the style sheet.
I tried this but could not get it to work: code { font-family: "Courier New"; } |
#10
|
||||
|
||||
You need to edit the actual template and use inline styling in this case since you have assigned it class alt1 (or alt2, I forget) and that class has a font assigned..
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|