Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to override css styles under a single class Re: How to override css styles under a single class

#88833

Use the following (replace colors as required):


.details h3 {
color: #06c;
}
.details p {
color: #333;
}

There is no need to use pseudo-classes (like first-child) or JavaScript for this simple problem.