Jump to content
UBot Underground

Change Text Selection Color with CSS


Recommended Posts

I love CSS dont you :)....

 

Here's another little snip that changes the text selection color :) works in pro and standard and dev.

 

 

 

<style>
::selection {
       background-color: #FFA;
       color: #000;
}
</style>

 

 

This is helpful in case in case on occasions your element Labels get that blue highlight that webkit gives you yo can change the color to your background color so you don't see it anymore.

 

 

If you use

 

outline:none;

 

It will also take away that nasty blue outline your elements also occasionally get.

  • Like 1
Link to post
Share on other sites

Thanks Edward, very usefull ;)

 

Do you also know on how to change the tekst colour at the UI stat monitor when something (if/then) happens the colour will change?

 

Regards,

 

Walter

 

Here you go:

ui stat monitor("Monitor:", #status)
set(#status, "<span style=\"color:green;\">Running Smoothly</style>", "Global")
wait(3)
set(#status, "<span style=\"color:red;\">error</style>", "Global")


You can just put that into an if then if you wish the point is that you can use span style to change it to whatever you want.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...