I want to use inline styling [via PHP], and need the ::selection
and -moz-selection
properties to be changed. In this project, I need randomly changed colors after pages refresh for this property.
Apparently, the css property (that is set at first place in an external file) is more dominant than inline styling, even if I use !important
for inline values.
Is there any way to get inline styling work for this special property?
Check this question.
You can't declare a pseudo class inline, only in a stylesheet (or using
<style>
in the head).