• Community
    • Community
    • Vivaldi Social
    • Blogs
  • Forum
    • Vivaldi Forum
    • Categories
    • Recent
    • Popular
  • Themes
    • Vivaldi Themes
    • My Themes
    • FAQ
  • Contribute
    • Contribute
    • Volunteer
    • Donate
  • Browser
    • Vivaldi Browser
    • Latest News
    • Snapshots
    • Help
Register Login

Vivaldi

  • Community
  • Themes
  • Contribute
  • Browser

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Desktop
    3. Vivaldi for Linux
    4. CSS Not Working

    CSS Not Working

    Scheduled Pinned Locked Moved Vivaldi for Linux
    5 Posts 3 Posters 392 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      twisted8000
      last edited by twisted8000

      Hello, I use Ubuntu 22.04 and installed Vivaldi. Small issue that I see is I imported my CSS file from a Windows computer. When I try to run the change the color of the selected tab in CSS it won't work for some odd reason. Here's the CSS code:

      #browser .tab-position .tab.active {background-color: green; color: white !important;}
      

      That works in Windows, Ubuntu it doesn't. My other CSS is working fine. If I put in a comma after .tab-position then it will change all tabs, but the selected one stays black. I like it the other way where they're black and the selected on is green. Before you say I don't have to do it using CSS. The other way under settings didn't work. Because it changes the whole top under the tab bar. Which I don't really like.

      Thanks

      DoctorG
      D
      1 Reply Last reply
      Reply Quote 0
    • DoctorG
      D
      DoctorG Soprano @twisted8000
      last edited by DoctorG

      @twisted8000 I can not test at this time.

      #browser .tab-position .tab.active {
      background-color: green  !important; 
      color: white !important;
      }
      

      But if you want to override a CSS from UI you have to add !important to all rules, not only the last.

      _bug hunter · Volunteer helper · Sopranos tester · Language DE,EN · ♀👵
      Known old dragon lady: Gwen aka Dr. Gwen Agon aka GwenDragon aka DoctorGTesting


      Linux Debian 12 KDE X11 / Windows 11 Pro
      Intel i5-7400 / NVidia GT 710

      T
      Pathduck
      P
      2 Replies Last reply
      Reply Quote 1
    • T
      twisted8000 @DoctorG
      last edited by

      @DoctorG said in CSS Not Working:

      #browser .tab-position .tab.active {
      background-color: green !important;
      color: white !important;
      }

      Beautiful, that worked.

      Thanks

      1 Reply Last reply Reply Quote 1
    • Pathduck
      P
      Pathduck Moderator Soprano Supporters @DoctorG
      last edited by

      @DoctorG said in CSS Not Working:

      But if you want to override a CSS from UI you have to add !important to all rules, not only the last.

      Well, it depends ... on specificity:
      https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

      🎻Volunteer helper · Forum moderator · Sopranos tester 🛠️Troubleshooting 🐛Report a bug 📜Markdown help
      🦆"With a rubber duck, one's never alone" -Douglas Adams🦆

      DoctorG
      D
      1 Reply Last reply
      Reply Quote 1
    • DoctorG
      D
      DoctorG Soprano @Pathduck
      last edited by

      @Pathduck said in CSS Not Working:

      it depends ... on specificity:

      Well, not very easy to decide which rule has precedence for regular users, that'S why mostly !important is used.

      _bug hunter · Volunteer helper · Sopranos tester · Language DE,EN · ♀👵
      Known old dragon lady: Gwen aka Dr. Gwen Agon aka GwenDragon aka DoctorGTesting


      Linux Debian 12 KDE X11 / Windows 11 Pro
      Intel i5-7400 / NVidia GT 710

      1 Reply Last reply Reply Quote 1
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    • 1 / 1
    • First post
      Last post

    Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status