Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting a tag that is not present in the HTML. #38

Open
wondersavant opened this issue Oct 16, 2023 · 0 comments
Open

Selecting a tag that is not present in the HTML. #38

wondersavant opened this issue Oct 16, 2023 · 0 comments

Comments

@wondersavant
Copy link

wondersavant commented Oct 16, 2023

https://btholt.github.io/complete-intro-to-web-dev-v3/lessons/css/pseudoclasses-and-pseudoelements
Pseudoelements

<div class="chapter">This is a chapter of my book.</div>

<div class="chapter">This is a second chapter of my book.</div>

<style>
  .chapter p {
    margin: 0;
  }
  .chapter::after {
    content: "❦";
    font-size: 50px;
    text-align: center;
    display: block;
  }
</style>

there are no p tags within those elements in the given HTML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant