How can i change style "style only element" #2759
-
Target HTMLdiv element don't have index.html <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<div style="background-color: green">
Text001
</div>
<div style="background-color: gray">
Text002
</div>
</body>
</html> What i trieddiv {
background-color: red !important;
}
QuestionI want write Stylus like this. div (if [background-color == 'green']) {
background-color: red !important;
} |
Beta Was this translation helpful? Give feedback.
Answered by
vendethiel
Feb 18, 2023
Replies: 1 comment 3 replies
-
Wrong Stylus |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
CRC32EX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrong Stylus