Ignore and acknowledge class attribute on elements in CSS

1 · Amit Merchant · May 16, 2024, 6:37 a.m.
Summary
Sometimes, when working with some common elements, for instance, <ul>, <a>, or <div>, you might add the class attribute to some of them and then use that class to style them. Many times, these classes might be different for the same kind of elements. For instance, <ul> might have a class of list and some-other-list for different lists. These classes have different styles according to the context. But sometimes, what you might really want is to have common styles for these elements irrespective o...