Fandom

Community Central

User blog:PhilippL/How to make your own Colors in CSS

English
Comments0

How to make your own Colors in CSS

PhilippL October 10, 2015 User blog:PhilippL

How to make your own colors in CSS and HTML. This is the code:


<html>
<head>
<style>
p[style="color: COLORNAME;"] {
    color: #HEXCODE;
}
</style>
</head>
<body>
<p style="color: COLORNAME;">Text</p>
</body>
</html>

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.