Posted by jojo on 07/28/06 10:35
rathernots@googlemail.com wrote:
>> Try zeroing the margin and padding
>> p {
>> margin: 0;
>> padding: 0;
>> }
>
> Sadly that wouldn't work, as this is part of a page that has regular
> paragraphs and zeroing those two make them look concacenated together.
>
Than add a class to those paragraphs which should have no margin/padding.
The CSS:
p.noSpace {
margin: 0px;
padding: 0px;
}
And your HTML-snippet:
<p class="noSpace">TEST1<br><br></p>
<p class="noSpace">TEST2</p>
BTW: ASFAIK you have to specify a unit (like px, em or %) in CSS, so you
cannot set the margin/padding to "0" but to "0px".
Navigation:
[Reply to this message]
|