Announcement

Collapse
No announcement yet.

Different font size for desktop and mobile

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Different font size for desktop and mobile

    Hi, the default font size is too small for desktop.
    How can I increase is for desktop and also increase a bit the mobile version?
    I am referring to both homepage font and postbit

    Please help

    #2
    Changing the font size in the body_font stylevar in the Style Variable Editor in AdminCP will apply on most of the text across the site on both desktop and mobile.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Thank you but I want a different size for mobile and another for desktop
      thanks

      Comment


        #4
        Add in css_additional template.
        Code:
        body.l-small {
            font-size: 16px;
        }
        Last edited by glennrocksvb; 03-21-2018, 08:38 AM. Reason: Typo
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          Originally posted by glennrocksvb View Post
          Add in css_additional template.
          Code:
          body.l-small {
          font-size: 16px:
          }
          And for mobile?

          Comment


          • glennrocksvb
            glennrocksvb commented
            Editing a comment
            That's for mobile. For desktop, just change the body_font stylevar.

          #6
          sorry but I have used your code and nothing changed on my mobile

          Comment


            #7
            Post a link to your site for me to look at.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #8
              Wait, I found a typo on the CSS code. I used colon instead of semicolon. I have corrected the code in post #4.
              Helpful? Donate. Thanks!
              Buy me a coffeePayPal QR Code
              Fast VPS Host for vBulletin:
              A2 Hosting & IONOS

              Comment


                #9
                unfortunately it only changes the sidebar in mobile
                Please check www.interfans.org

                Comment


                  #10
                  glennrocksvb hi man, can you help more please?

                  Comment


                    #11
                    As I mentioned earlier adding the CSS code I suggested will affect most of the text. For others not affected, you would have to add more CSS. It would be time consuming for me to do this all for you. But this video tutorial from vBulletin can teach you the techniques on how to customize styles using stylevars and css_additional template.

                    Click the link below then scroll down to Using Firebug to Find and Edit StyleVars video.
                    View vBulletin video tutorials and learn how to configure your vBulletin community software.
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment


                      #12
                      It doesn't have to be using Firebug as shown in the video. You can also use Chrome inspector tool if you are using Google Chrome browser by right clicking and choosing Inspect. To customize the style for mobile only, prefix the CSS selector with .l-small class. For example, to increase the font size for Forum Category header on mobile:

                      Code:
                      [COLOR=#FF0000].l-small[/COLOR] .forum-list-container .category-header .category {
                          font-size: 20px;
                      }
                      You also need to use the browser's mobile emulator tool in order to quickly view and inspect your site on mobile using the desktop browser. Click link below on how to use this tool.
                      How to simulate a mobile device like an Android smartphone or tablet, an iPhone or an iPad, in your browser: Google Chrome, Firefox, Edge, Internet Explorer, and Opera.
                      Helpful? Donate. Thanks!
                      Buy me a coffeePayPal QR Code
                      Fast VPS Host for vBulletin:
                      A2 Hosting & IONOS

                      Comment


                        #13
                        so glennrocksvb forum title should be:

                        .forum-title.l-small {
                        font-size: 20x;}

                        Comment


                          #14
                          I have also added:

                          .forum-title {
                          font-size: 28x;}

                          to change forum title, but it does not work on my forum http://www.interfans.org/forum/
                          any reason? glennrocksvb

                          Comment


                          • glennrocksvb
                            glennrocksvb commented
                            Editing a comment
                            I'll check when I get to my computer.

                        Users Viewing This Page

                        Collapse

                        There is 1 user viewing this forum topic.

                        • Guest Guest

                        Latest Posts

                        Collapse

                        Working...
                        X
                        Searching...Please wait.
                        An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                        Please push the back button and reload the previous window.'
                        An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                        Please push the back button and reload the previous window.'
                        An internal error has occurred and the module cannot be displayed.
                        There are no results that meet this criteria.
                        Search Result for "|||"