Reply to Re: To the gurus out there - a conundrum.

Your name:

Reply:


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".

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация