Solved

<P> tag not working

Posted on 2011-03-02
2
321 Views
Last Modified: 2012-05-11
http://www.necmh.org/body.cfm?lvl1=ltsnew&arc=022011#19

This above page ignores the <p> tag in the article body. I'm baffled as to why. I can copy the same raw source code for the paragraph and it displays in a blank page properly (spaced).

I thought it might have something to do with the attached CSS sheet, but I have no defined css styles regarding the paragraph tag.

Please advise. If you look at the source code of this page, you'll clearly see the <P> tags.
0
Comment
Question by:day6
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 400 total points
ID: 35022204
According to the styles in "nec.css" there is a style for "p" elements that sets the margin to zero, which is what has removed all the line breaks between them.
0
 
LVL 10

Assisted Solution

by:c_a_n_o_n
c_a_n_o_n earned 100 total points
ID: 35022209
In line 149 of nec.css file, you have

p {
 margin: 0;
}

remove the margin: 0; line or remove the whole statement, the spacing between paragraphs will return.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem with a CSS in a page 2 27
Custom Form Design to Match this example 1 16
FIELDSETs and LEGENDs in email markup 1 13
Remove lines by logo 2 23
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now