PDA

View Full Version : paragraph gap



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

Jutlander
06-28-2007, 11:12 PM
p {
margin: 0;
}


would do the job I guess.

EDIT:

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.

phill_ridout
06-28-2007, 11: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