Forums

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

Home Forums CSS Child and Sibling Selectors

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41002

    I have been trying to figure out how to remove the margin-top on the first paragraph which appears on a page under an H1 with the class of entry-title I was reading https://css-tricks.com/child-and-sibling-selectors/ but couldn’t figure it out.

    Here is the html and css on pastebin (couldn’t get it work work in the forum)

    http://pastebin.com/rjGu2aPv

    However that is doing nothing to affect the first paragraph under the H1 tag. What am I doing wrong?

    Thanks,

    Chad

    #115546
    Watson90
    Member

    Hi @aeboi80

    I have noticed in your pastebin that you have mis-spelled content in the CSS. Also you have put a ‘+’ to seperate the two selectors, when with CSS syntax you should use a comma (I think?) try and make them changes and see what you get…

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.