1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 How to change colour of highlighted text?

Discussion in 'Styling and Customization Questions' started by Robust, Apr 8, 2015.

  1. Robust

    Robust Well-Known Member

    When you use your cursor and highlight text, mine is the same as the background, so you don't see it's highlighted. I changed the background colour and then the highlighted colour works. How can I change the colour for highlighting text?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That is an internal function of the browser, it's not something which can be styled in XF.
  3. Robust

    Robust Well-Known Member

    So there's nothing I can do except change the background colour? Can I not do something like this?
  4. Robust

    Robust Well-Known Member

    Solution for anyone that comes across this thread:

    Add this to EXTRA.css:

    ::-moz-selection {
        background: #FFFFFF;
    ::selection {
        background: #FFFFFF;
    Replace #FFFFFF with your desired colour.
    worrorfight and maszd like this.

Share This Page