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
  • 665,005
  • 155
  • 1,345
  • 1,328
Santhosh Kumar
  • 1,607
  • 13
  • 24

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,081
  • 1
  • 28
  • 26