I have a h3 tag with :before (a small square) and as :after I would like a line that extends for the rest of width.
both the :before and the :after are set to display:inline-block , so that I can set the width and height.
setting the width:100% for the :after breaks into a new line
just take a look here
p.s. I’m fine with a JavaScript solution
Here’s a solution that doesn’t use
:beforeand:after. See: http://jsfiddle.net/Wexcode/CTd2w/83/HTML:
CSS: