<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hacking &#8216;paragraph spacing&#8217; with CSS (despite IE)</title>
	<atom:link href="http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/</link>
	<description>web design and life</description>
	<lastBuildDate>Sat, 14 Aug 2010 20:51:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: CSS 设置段落间距 &#124; Bolo的博客</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-20</link>
		<dc:creator>CSS 设置段落间距 &#124; Bolo的博客</dc:creator>
		<pubDate>Wed, 27 Jan 2010 07:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-20</guid>
		<description>[...] 本文译自：Hacking ‘paragraph spacing’ with CSS (despite IE)。内容有删改。       Categories: Develop Tags: CSS, JavaScript [...]</description>
		<content:encoded><![CDATA[<p>[...] 本文译自：Hacking ‘paragraph spacing’ with CSS (despite IE)。内容有删改。       Categories: Develop Tags: CSS, JavaScript [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-18</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Tue, 26 Jan 2010 10:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-18</guid>
		<description>Thanks, this is useful because I think that most headings tend to need both top and bottom margins/padding, regardless of whether the paragraphs have a bottom margin (ideally), or a top margin.</description>
		<content:encoded><![CDATA[<p>Thanks, this is useful because I think that most headings tend to need both top and bottom margins/padding, regardless of whether the paragraphs have a bottom margin (ideally), or a top margin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oliver</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-16</link>
		<dc:creator>David Oliver</dc:creator>
		<pubDate>Tue, 26 Jan 2010 09:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-16</guid>
		<description>Thanks Harry. Think of the margin-top issue as more of an example of a particular situation that may sometimes come up - it&#039;s not that I&#039;m having problems. As mentioned in another comment, I usually use margin-bottom myself. I still believe it&#039;s a potentially useful example, when applied to headings. Remember, it&#039;s about maintaining flexibility - style and forget, as it were.

The aim of supporting Internet Explorer 6 (and 7 and 8) with CSS 2 and 3 selectors is more of a general thing - this is obviously more useful for other styling considerations than just paragraph/heading spacing.</description>
		<content:encoded><![CDATA[<p>Thanks Harry. Think of the margin-top issue as more of an example of a particular situation that may sometimes come up &#8211; it&#8217;s not that I&#8217;m having problems. As mentioned in another comment, I usually use margin-bottom myself. I still believe it&#8217;s a potentially useful example, when applied to headings. Remember, it&#8217;s about maintaining flexibility &#8211; style and forget, as it were.</p>
<p>The aim of supporting Internet Explorer 6 (and 7 and 8) with CSS 2 and 3 selectors is more of a general thing &#8211; this is obviously more useful for other styling considerations than just paragraph/heading spacing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Roberts</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-15</link>
		<dc:creator>Harry Roberts</dc:creator>
		<pubDate>Tue, 26 Jan 2010 09:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-15</guid>
		<description>By applying margin-bottoms and line-heights to your elements (be they textual or otherwise) you can alleviate the majority of the problems you seem to be encountering as well as achieving a much nicer (and easier) vertical rhythm.

Applying margin-tops seems to be causing you unnecessary grief, for which a hacks (especially JS dependent ones) are not the best solution.</description>
		<content:encoded><![CDATA[<p>By applying margin-bottoms and line-heights to your elements (be they textual or otherwise) you can alleviate the majority of the problems you seem to be encountering as well as achieving a much nicer (and easier) vertical rhythm.</p>
<p>Applying margin-tops seems to be causing you unnecessary grief, for which a hacks (especially JS dependent ones) are not the best solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oliver</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-14</link>
		<dc:creator>David Oliver</dc:creator>
		<pubDate>Tue, 26 Jan 2010 05:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-14</guid>
		<description>A benefit of using #article &gt; :first-child/last-child is that you don&#039;t have to know which element comes first within the #article. Applying style specifically to h1 doesn&#039;t give that flexibility, which can be useful in larger, less predictable documents.</description>
		<content:encoded><![CDATA[<p>A benefit of using #article &gt; :first-child/last-child is that you don&#8217;t have to know which element comes first within the #article. Applying style specifically to h1 doesn&#8217;t give that flexibility, which can be useful in larger, less predictable documents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jitendra vyas</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-13</link>
		<dc:creator>jitendra vyas</dc:creator>
		<pubDate>Tue, 26 Jan 2010 03:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-13</guid>
		<description>usually we use  once in a body then no need to give css .class or advanced selector to give {margin-top:0}. we can directly to h1{ margin-top:0}</description>
		<content:encoded><![CDATA[<p>usually we use  once in a body then no need to give css .class or advanced selector to give {margin-top:0}. we can directly to h1{ margin-top:0}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oliver</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-12</link>
		<dc:creator>David Oliver</dc:creator>
		<pubDate>Mon, 25 Jan 2010 12:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-12</guid>
		<description>Ha - of course. :) You can tell I haven&#039;t been using these fancy new pseudo selectors much yet.</description>
		<content:encoded><![CDATA[<p>Ha &#8211; of course. :) You can tell I haven&#8217;t been using these fancy new pseudo selectors much yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart van Heukelom</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-11</link>
		<dc:creator>Bart van Heukelom</dc:creator>
		<pubDate>Mon, 25 Jan 2010 11:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-11</guid>
		<description>Or you can just use the simpler :last-child.</description>
		<content:encoded><![CDATA[<p>Or you can just use the simpler :last-child.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Hacking ‘paragraph spacing’ with CSS (despite IE) -- Topsy.com</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-10</link>
		<dc:creator>Tweets that mention Hacking ‘paragraph spacing’ with CSS (despite IE) -- Topsy.com</dc:creator>
		<pubDate>Mon, 25 Jan 2010 07:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-10</guid>
		<description>[...] This post was mentioned on Twitter by bkmacdaddy designs, Nicholas Patten, WPstudios, Pinceladas da Web, Richard Laksana and others. Richard Laksana said: Hacking ‘Paragraph Spacing’ with CSS - http://su.pr/1AGbOI [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by bkmacdaddy designs, Nicholas Patten, WPstudios, Pinceladas da Web, Richard Laksana and others. Richard Laksana said: Hacking ‘Paragraph Spacing’ with CSS &#8211; <a href="http://su.pr/1AGbOI" rel="nofollow">http://su.pr/1AGbOI</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oliver</title>
		<link>http://blog.doliver.co.uk/2010/01/hacking-paragraph-spacing-with-css-despite-ie/comment-page-1/#comment-9</link>
		<dc:creator>David Oliver</dc:creator>
		<pubDate>Mon, 25 Jan 2010 06:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.doliver.co.uk/?p=95#comment-9</guid>
		<description>Hi Kevin! Thanks for reading and your comment.

I agree that using margin-bottom is usually easier for the reasons you mention. I think where this particular example could come into play even if you do use margin-bottom for paragraphs is when your headings (or whatever other element type that happens to be the first element in your containing element) have extra margin-top applied. Also, it might be useful to use both margin-top and margin-bottom on paragraphs, if its important that every paragraph has at least some margin either side throughout your document.

This kind of CSS rule could also be useful in taking away the margin-bottom of the &lt;em&gt;last&lt;/em&gt; element in a particular containing element (perhaps if the containing element already has its own padding-bottom for whatever reason) - the pseudo selector &lt;a href=&quot;http://reference.sitepoint.com/css/pseudoclass-nthlastchild&quot; rel=&quot;nofollow&quot;&gt;:nth-last-child(N)&lt;/a&gt; would then be used instead.</description>
		<content:encoded><![CDATA[<p>Hi Kevin! Thanks for reading and your comment.</p>
<p>I agree that using margin-bottom is usually easier for the reasons you mention. I think where this particular example could come into play even if you do use margin-bottom for paragraphs is when your headings (or whatever other element type that happens to be the first element in your containing element) have extra margin-top applied. Also, it might be useful to use both margin-top and margin-bottom on paragraphs, if its important that every paragraph has at least some margin either side throughout your document.</p>
<p>This kind of CSS rule could also be useful in taking away the margin-bottom of the <em>last</em> element in a particular containing element (perhaps if the containing element already has its own padding-bottom for whatever reason) &#8211; the pseudo selector <a href="http://reference.sitepoint.com/css/pseudoclass-nthlastchild" rel="nofollow">:nth-last-child(N)</a> would then be used instead.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
