View Full Version : paragraph gap

06-28-2007, 10:10 PM
using css how do i remove the gap at the bottem of text that is applied automatically by the p tag?

06-28-2007, 10:12 PM
p {
margin: 0;

would do the job I guess.


If you put

* {
margin: 0;
padding: 0;

in the stylesheet though, it will be a lot easier to work with and the default margin for <p> tags will also be eliminated and you can then add one to your liking.

06-28-2007, 10:16 PM
thanks very much, i had already tried that, but with different classes and it dint work, but it turns out it has a margin at the top aswell, so if you have two diff classes, you need to set both with your suggestion. Thanks