"RetroMIDI" <mu********@gmail.comwrote in message
news:22**********************************@b40g2000 prf.googlegroups.com...
>I notice that the <ptag does not always allow the same amount of
space. Some websites have about half a line only. When I check their
code, they have used just <p>. On other occasions it seems that <p>
has left not just one line of space as per the current font size, but
as much as 20 or 30 pixels.
Can someone please explain to me how to control what <pdoes in terms
of space after a paragraph using a CSS.
Here's my 'standard' p redefinition that you can play with/modify to suit:
p {
padding: 0;
margin-top: 0;
margin-right: 0;
margin-bottom: 1em;
margin-left: 0;
}
What does it do? It stops all padding and margins for all p tags, and adds a
1em margin to the bottom.
It's important that you do not use pixel spacings for (at least) textual
elements. If the viewer changes their viewable font size, it is desirable
that any white space also changes to suit.