CSS first-child selector problem?

First-child does not care about the type. By adding i.

First-child does not care about the type. By adding to your code, I becomes the first child (assuming is within and the rest is in , of course). Your selector wants to match p, but since p is not the first child anymore, your style can't be applied.

If you want to filter by type, use the CSS3 :first-of-type pseudo-class: p:first-of-type { background:yellow; }.

– Francesco Bertelli Apr 5 at 8:15 I actually found myslf it might be easier to wrap the elements in a parent wrapper div and than specify that in css...it works.. – Francesco Bertelli Apr 5 at 8:16 @camelCase: Not really. And yes, you're way better off wrapping your p elements in a div.It doesn't make much sense to have an I before a series of ps anyway. – BoltClock?

Apr 5 at 8:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions