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? Link to comment https://forums.phpfreaks.com/topic/64130-solved-h1-settings/ 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. Link to comment https://forums.phpfreaks.com/topic/64130-solved-h1-settings/#findComment-319650 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! Link to comment https://forums.phpfreaks.com/topic/64130-solved-h1-settings/#findComment-321919 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.