html - How can I get rid of this whitespace around my h2 tag? -
html:
<h2>hello world</h2>
css
h2{ padding: 0px; margin: 0px; font-size: 100px; background-color: #f00; }
http://jsfiddle.net/mekaron/w50mz2n3/
margin , padding set 0. why doesnt text fit border? using javascript option here, have no idea start. ideas?
you want make h2 inline element. add display: inline;
css.
Comments
Post a Comment