posfan12 posfan12 - 1 year ago 73
CSS Question

A little gap after <br/> tag

I have a paragraph with two lines separated by a line break < br/ > tag. How do I insert a small gap between the first line and the second?

I want to do this without adding new markup so I don't have to edit every page on my site.


Pat Pat
Answer Source

You can target the <br/> tag with css and go from there. For example:

  line-height: 1.5em;

Although, this will target ALL br tags. Without knowing your code its hard to get more specific than that, maybe p + br { ... }

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download