Jake
Jake

Reputation: 1177

Overide automatic padding with text?

whenever I'm using the p tag (or h1 etc. for that matter) there is always some spacing between each element. I've tried to overcome this by using padding:0; in a stylesheet but the spacing still remains. Thank you

Upvotes: 0

Views: 265

Answers (2)

shamazing
shamazing

Reputation: 730

margin:0;

But the best option is to use a reset.css to default all elements out.

http://meyerweb.com/eric/tools/css/reset/

Upvotes: 4

thejh
thejh

Reputation: 45568

Try to also set the margin to 0.

Upvotes: 2

Related Questions