Jump to content

[SOLVED] H1 settings


EagerWolf

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.