Forum Moderators: open
Switching to display:inline eliminates both the line break and the margin, which may not always be the effect you want. You can maintain the line-break by staying with the default display of block, but writing a rule to change margin-bottom: to a smaller amount.
display: inline; on <h1> tags and for me they became really hard to handle (position). I prefer: h1 {margin: 0; padding: 0; font: 2em/1em verdana, arial, sans-serif;} You still have the break afterwards, but you can control the line-height with the second value on the font declaration. You can declare it inline like killroy's example, or link it to your pages in a stylesheet (as above) so it applies to all your
<h1>s. Adam
<h1 style="display:inline;font-family:verdana;font-size:1.2em">Title</h1>
Inline styles (i.e. style information inside HTML tags) is just as much code bloat as the old HTML attributes that it replaces.
Export all of your CSS information to external stylesheet files, and benefit from smaller, faster loading HTML files, and reusable CSS information that can be made common to every single page of the site.