How do I write my class so that it isn't selector specific?

Posted Posted by jerothe in CSS     Comments No comments
Jul
13

Just like any other style. I will assume that you know a little something about this if you are already here and reading this entry. If we got back to our stylesheet, you would retype;

div.wrapper{}

Instead to look like this;

.wrapper{}

This way, you can apply this style to any element you want, including the paragraph(p) and list(li) element tags I used in the above example.

Post comment