Announcement

Collapse
No announcement yet.

Navbar Link Colour

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

    Navbar Link Colour

    Is there an easy way to change the colour of just one of the navbar links?

    Thanks in advance
    Alan

    #2
    Each nav bar has its own unique class that starts with "navbar_". Right click and inspect the nav bar element and find out what class it is using. Then you can use that class to style that element in your custom css:

    Code:
    .navbar_XXXXX {
        color: red;
    }
    Replace XXXXX with the corresponding value.
    Last edited by glennrocksvb; 01-01-2018, 02:15 PM.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      When I right click on the link and select Inspect Element I get this:



      Its at this point that I am completely lost.

      Comment


        #4
        As you can notice it is using navbar_daily_quiz class.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          I added
          .navbar_daily_quiz {
          color: red;
          }
          to the additional.css but still nothing. What is it that I am doing wrong?

          Alan

          Comment


            #6
            Please post or PM the link to your site for me to see.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #7
              Hi Glenn its: www.plymouthlink.co.uk

              Thankyou for your time and patience.

              Alan

              Comment


                #8
                Try this:

                Code:
                .navbar_daily_quiz {
                    color: red !important;
                }
                Without !important, the default CSS was overriding the custom CSS as it had more specificity.
                Helpful? Donate. Thanks!
                Buy me a coffeePayPal QR Code
                Fast VPS Host for vBulletin:
                A2 Hosting & IONOS

                Comment


                  #9
                  Perfect! thankyou so much.

                  Comment

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