View Full Version : Changing the CSS value for P's mid Page

05-13-2009, 06:21 PM
Hey Guys,

I've recently replaced another devloper on a project and have found it was really put together poorly. However I have to get the updates done and don't have the time to go through and fix the entire site.

Right now my issue has to do with the fact that the old developer built the site with <p> having a margin of 0... everywhere... then built every piece of the site using p instead of ul or span. (For example the vertical navigation on the left is all <p>Item</p><br /><p>Item</p><br />) Ugh!

Now they want me to use an RSS to post a daily devotional. No problem... at least until the css for p makes all the content bleed together with no spacing between paragraphs. If I declare p at the top of the page the rest of the page gets thrown off.

Is there a way to change <p>'s margin value for just the section of the page that the RSS feed sits on? I'd just add a style to it but (obviously) the <p>'s get generated as part of the feed.

Thanks in advance for any help.

05-13-2009, 06:47 PM
Put the RSS feed into a separate div and apply the padding to the <p> tags within that div.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#rss_feed p {
<div id="rss_feed">
<p>More Content</p>

05-13-2009, 07:38 PM
Great idea! I should have thought of that >.<

Thanks for the help, it worked perfectly.