Announcement

Collapse
No announcement yet.

What font styles are applied in vb4.0.7 when no style is defined ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • [Forum] What font styles are applied in vb4.0.7 when no style is defined ?

    hi. I wanted the rest of my website to have the same colors and styles as my forums.
    Hence, I went to the source of a page of our forums, and copied the html head to /head

    Applied that all over my site with an injected header.php

    all the fonts became much smaller.....

    so here is my question : what font style, font size and color that is, are applied to text that is NOT defined to belong to any class ?

    In other words: when vb4 styles are applied to a page, and the html code says:

    Code:
    <P>This is unformatted text in a vanilla plain <P>... </P>
    Which font size applies ?

    (I tried the font stylevar in the common stylevars........ ;-)
    .

  • #2
    Look at what is defined for body in your css.

    Comment


    • #3
      Originally posted by Zachery
      Look at what is defined for body in your css.
      man..... easy times where when the whole style was something like



      Code:
      <link rel="stylesheet" type="text/css"  href="/vb/style.css">
      and that is it.....

      today we are at something like .....
      Code:
      <link rel="stylesheet" type="text/css" href="/vb/css.php?styleid=46&amp;langid=2&amp;d=1287102584&amp;td=rtl&amp;sheet=bbcode.css,editor.css,popupmenu.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css," />
      <link rel="stylesheet" type="text/css" href="/vb/css.php?styleid=46&amp;langid=2&amp;d=1287102584&amp;td=rtl&amp;sheet=forumbits.css,forumhome.css,tagcloud.css" />
      <!--[if IE 6]><link rel="stylesheet" type="text/css" href="/vb/css.php?styleid=46&amp;langid=2&amp;d=1287102584&amp;td=rtl&amp;sheet=forumbits-ie.css" /><![endif]-->
      <link rel="stylesheet" type="text/css" href="/vb/css.php?styleid=46&amp;langid=2&amp;d=1287102584&amp;td=rtl&amp;sheet=additional.css" />
      <!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="/vb/css.php?styleid=46&amp;langid=2&amp;d=1287102584&amp;td=rtl&amp;sheet=replacement-vbulletin-ie.css" /><![endif]-->
      how do you expect Mr. Everybody to find his way in that jungle ?
      .

      Comment


      • #4
        Firebug works wonders for Firefox. You could check the names of the css files vs the database.

        Comment


        • #5
          Originally posted by Zachery
          Firebug works wonders for Firefox. You could check the names of the css files vs the database.
          I did ...... it looks to me like my issue is body font 13px in /vb/css.php?styleid=46&langid=2&d=1287102584&td=rtl&sheet=bbcode.css,editor.css,popupmenu.css, reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css,

          go guess........
          .

          Comment


          • #6
            It is vbulletin.css which defines the basic styles. Everything else builds on there. Look at your actual CSS templates. No guessing involved.

            If you look at the stylevars and type font in the searchbox at the top, it will show you all the stylevars with font in their name. You'll see that your specific definition above is set in the 'font' stylevar. The description for that stylevar is "Changes the font style for the general text used within vBulletin."
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment


            • #7
              Originally posted by Wayne Luke
              It is vbulletin.css which defines the basic styles. Everything else builds on there. Look at your actual CSS templates. No guessing involved.

              If you look at the stylevars and type font in the searchbox at the top, it will show you all the stylevars with font in their name. You'll see that your specific definition above is set in the 'font' stylevar. The description for that stylevar is "Changes the font style for the general text used within vBulletin."


              thank you for your kind advice.

              but despite 15 minutes of reading and changing font sizes, I just could not get it.


              .

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎