Frontend Development

CSS Change Highlight color

Submitted by Sniper, , Thread ID: 83956

Thread Closed
10-04-2018, 07:50 AM
#1
For those that are interested in this, this very simple code allows you to change the color for when you highlight text:
Code:
::selection { background-color: #008EBD;

Use a color picker and change#008EBD to whatever you want!

If you want to use this on Nulled go to the customcsspart. https://nulledbb.com/usercp.php?action=customcss
1

RE: CSS Change Highlight color

#2
Nice share. I would say this is usually over-looked by any clients I do websites for, but I usually make it happen on my own initiative. Then they're like 'Ooohhh that's neat'. Lol.

RE: CSS Change Highlight color

#3
thanks mate, ilearn something good today Smile will help me in further

RE: CSS Change Highlight color

#4
I cant go to the link. Guess i dont have the needed amount of permission.

RE: CSS Change Highlight color

OP
#5
04-05-2018, 07:27 AM
cool99 Wrote:
I cant go to the link. Guess i dont have the needed amount of permission.

You need to upgrade to prime to use that feature.

RE: CSS Change Highlight color

#6
Thanks, I will save it and use it in future Wink Nice and short piece of code

RE: CSS Change Highlight color

#7
What resources you guys use to get css and html tip?

RE: CSS Change Highlight color

#8
i give a quick example

div#test {
width:100px;
height: 100px;
background: green;
}

div#test:hover {
background: red !important;
}

also you can use css3 transition effect to delay background

Users browsing this thread: 1 Guest(s)