HTML CSS examples for CSS Widget:Color
Set color for <p>
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ::selection {<!--from www.j a v a 2 s. c o m--> background: blue; } :not(.override)::selection { color: #000; } .p0 { color: blue; } .p1 { color: red; } .p2 { color: green; } </style> </head> <body> <div> <p class="p0">Heading 1</p> <div class="override"> <p class="p1 override">Sub heading 1</p> <p class="p2 override">Sub heading 1</p> </div> </div> </body> </html>