WordPress.org

Forums

Change Text Selection Highlight Colour (1 post)

  1. spiderguy252
    Member
    Posted 2 years ago #

    So I've used the following bit of code to change the text selection colour from the default blue to gray, which is more suited to my site:

    spydistrict.com

    Code:

    /*Overriding the default text selection color*/
    ::selection {
    background:#A4A4A4;
    color:#eee;
    }

    ::-moz-selection {
    background:#A4A4A4;
    color:#eee;
    }

    ::-webkit-selection {
    background:#A4A4A4;
    color:#eee;
    }

    I put it at the end of my stylesheet. Trouble is, (you can figure out what's happening when you go to any page on my site and press Ctrl+A), some regions on highlight like the logo or elements of the sidebar still retain the blue colour?

    Any way I can make them gray as well?

    [No bumping. If it's that urgent, consider hiring someone.]

Topic Closed

This topic has been closed to new replies.

About this Topic