-2

This might be a noob question, but I'm trying to search by terms like "CSS add more propertiers to existent class"; "Add CSS properties to class"; etc and I can't find what I'm looking for.

Imagine I have this:

.ui-bar { color: red }

Now I want to extend this property, but continue with the same color red.

.ui-bar-margin { margin-top: 10px; }

How can I accomplish this? If you want, you can point me links or terms to search for.

Thanks!

user3065191
  • 145
  • 3
  • 17

1 Answers1

0

You just do it like this... Here's a lot of examples.

.ui-bar {
    color: red;
    margin-top: 10px;
    background: white;
    width: 300px;
    display: block;
    text-align: left;
}
CRABOLO
  • 8,605
  • 39
  • 41
  • 68