So I’ve got style.css which defines all my CSS classes. But I want to redefine a class for an entire page without modifying style.css. I know I could override the CSS properties by using the style attribute on each element, but I don’t want to do that.
So let’s say I’ve got the class colortext defined in style.css with color:blue; but I want it to be color:red; for one entire page. How can I accomplish this?
You could always place a
in your HTML document somewhere inside the
<head>tag… however I’d recommend simply adding a rule to your stylesheet, if possible.