Home › Forums › CSS › Nth child puesdo class I think right? › Reply To: Nth child puesdo class I think right?
February 9, 2015 at 3:42 pm
#195413
Paulie_D
Member
Give a CSS selector that selects only the advertisement elements that appear after the
heading, so that the very first advertisement is ignored.
h1 ~ .advertisement {
background: #f00;
}
but that’s just one way
Also something a lil different, if you’re asked to make the first paragraph of a bunch of paragraph 50% larger.
p:first-of-type {
color:red;
}