|
Posted by asdf on 12/03/07 01:05
"RetroMIDI" <murray.r.3@gmail.com> wrote in message
news:22ff74cf-76f8-4770-bfc6-b1fea5b8c408@b40g2000prf.googlegroups.com...
>I notice that the <p> tag 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 <p> does 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.
Navigation:
[Reply to this message]
|