0

I have HTML that looks like this:

<div class="passage">
  <header>a bunch of stuff and elements here</header>
  text
  <div/>
  text
</div>

is there a CSS selector that will allow me to select everything in passage, excluding the header? In this example, it would give me this:

  text
  <div/>
  text
Alex Skorkin
  • 4,264
  • 3
  • 25
  • 47
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356

1 Answers1

0

Try to give a class to your header e.g.:

<header class="header">a bunch of stuff and elements here</header>

And then try to select all elements in passage which don't have class .header:

.passage *:not(.header) {...}