开发者

Overide automatic padding with text?

开发者 https://www.devze.com 2023-01-29 01:58 出处:网络
whenever I\'m using the p tag (or h1 etc. for tha开发者_运维问答t matter) there is always some spacing between each element. I\'ve tried to overcome this by using padding:0; in a stylesheet but the sp

whenever I'm using the p tag (or h1 etc. for tha开发者_运维问答t 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


margin:0;

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

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


Try to also set the margin to 0.

0

精彩评论

暂无评论...
验证码 换一张
取 消