Hi Guys,

Does anyone know how to remove the space between the paragraphes when creating a new element <p>? (see the example below).

http://www.mozilla.org/docs/dom/technote/intro/example.html

Thanks!

Member Avatar for iamthwee

Don't the <p> </p> tags add a space(newline) by default? In that case, wouldn't you have to use something else?

Hi,

Yes when creating a new element, the browser automatically add a margin by default. So i was wondering how to remove the top and bottom margin around the new element created.

Thanks

try adding this to your style sheet:

p{
  margin:0px;
  padding:0px;
}
commented: Yup, that'll do it. +10
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.