vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to fix [CODE]? (https://vborg.vbsupport.ru/showthread.php?t=225254)

leftwich86 10-14-2009 10:46 PM

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?

Lynne 10-14-2009 11:13 PM

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)

leftwich86 10-15-2009 12:18 AM

We're using verdana instead of a type face font -- there's no way to assign CODE a certain font?

Lynne 10-15-2009 12:33 AM

Quote:

Originally Posted by leftwich86 (Post 1900058)
We're using verdana instead of a type face font -- there's no way to assign CODE a certain font?

Sure, you can add it inline in the style tag in the template (along with all the other inline style stuff).

leftwich86 10-15-2009 01:01 AM

What would the name of the style be?

.code {font-family: Arial;}?

Lynne 10-15-2009 01:07 AM

Arial is also a sans-serif font. You want to use a monospace font like Courier.

leftwich86 10-15-2009 01:27 AM

I tried doing this, but apparently I don't know how to do this. How do you give [code] a style set?

Lynne 10-15-2009 02:45 AM

google "css font" and the first result is this - CSS Font

leftwich86 10-15-2009 04:20 AM

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";
}

Lynne 10-15-2009 02:50 PM

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.


All times are GMT. The time now is 02:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00989 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete