EagerWolf Posted August 9, 2007 Share Posted August 9, 2007 How to remove paddings around H1 text? If I use <h1> TITLE </h1> in firefox and in IE it is shown with 10px of padding... Can I remove it? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 9, 2007 Share Posted August 9, 2007 h1 { padding: 0; margin: 1em; } That will remove all padding and give a margin of 1em. Note: It is always a good idea to define the margin/padding for all block level elements in your page. Never let browsers set defualt paddings/margins. This helps to keep your layout look more consistent through different browsers. Quote Link to comment Share on other sites More sharing options...
EagerWolf Posted August 12, 2007 Author Share Posted August 12, 2007 That's it! Thanks 4 your help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.