Forum Moderators: not2easy
you can remove the line break by adding "display: inline"
Hope this helps
Adjusting the margins in CSS. You'd want to do something like:
h1 { margin-bottom: 0; }
p { margin-top: 0; } <p> elements in strict mode (at least in Firefox) have margins on the top as well so you'll want to remove them.
To answer your secoding question, the ideal solution would be:
h1 { display: run-in; } This should make the <h1> element (according to the specs [w3.org]) become the first inline element of the following <p>. Unfortunately full support is limited to Opera, and limited support to Safari and IE5/mac. You might be able to simulate the effect by making both the <h1> and the following <p> inline but I'm not sure how well that'd work.