[Solved] :before psuedo element not working on h1 tag
One solution is to use positioning relative to #container to achieve this: Demo Fiddle <div id=”container”> <div class=”theLines”> <h1>Line 1</h1> <h1>Line 2</h1> <h1>Line 3</h1> <h1>Line 4</h1> </div> </div> CSS #wrapper { max-width: 800px; margin:0 auto; background-color: rgb(201, 238, 219); } #container { position:relative; /* <– set ‘base’ positioning */ } .theLines { width: 300px; border: … Read more