0

I need to target every contiguous <br> in css. Lemme explain. In my piece of code i have attached you can see one <br> tag. Then comes the text. After that three <br> tag then comes the text and it goes on.

My question is there is any css selector to select when there is continuous range of <br> is present. When there is three continuous <br> tag i want to select second and third <br> tag. When there is four continuous <br> tag i want to select second, third, fourth <br> tag. Any ways to achieve it with CSS

div br:not(:first-child){
  margin-top:10px;
}
<div>
    how can i select a DOM
    <br>
    which comes next to next
   <br>
   <br>
   <br>
    Any Idea please suggest
    <br>
    <br>
    Thanks 
</div>
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Santhosh Kumar
  • 1,672
  • 1
  • 16
  • 26

1 Answers1

0

Don't use
if you don't want unnecessary space of a line. Instead you can use

or because its automatically point the cursor to the next Line.

Deepak swain
  • 3,380
  • 1
  • 30
  • 26