• Resolved jonalange

    (@jonalange)


    I can’t change the background color of highlighted text.
    I’ve tried this in twenty nineteen and seventeen. There my code works completely fine.

    How do I change it in twentytwenty? Also can’t find anything in the theme files.

    My css:

    ::-moz-selection {
    background-color: #f2e600 !important;
    color: #000;
    }
    
    ::selection {
    background-color: #f2e600;
    color: #000;
    }
    

    Any ideas what blocking it?
    Also !important doesn’t help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 14254218

    (@anonymized-14254218)

    Works perfectly fine without !important on my site.
    Which browser are you using?

    Thread Starter jonalange

    (@jonalange)

    Update:

    It was working fine, but I am using an plugin called “simply schedule appointments” wich uses an iFrame that I couldn’t control with the customizer css and I had to use their build in css area.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t change color of selected text’ is closed to new replies.