Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to make the selected text red on a yellow background ?

user-image
Question added by karem ibrahemm , ويب ديزاينر , فالكو
Date Posted: 2017/04/10
medhatmahmoud mahmoud
by medhatmahmoud mahmoud , Web Designer , Connect Computer Service Co

<head>

<style>

::-moz-selection {

    color: red;

    background: yellow;

}

 

::selection {

    color: red;

    background: yellow;

}

</style>

</head>

<body>

 

<h1>Select  text on this page to view selection color</h1>

 

</body>

More Questions Like This