<?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: Background color for inline text</title>
	<atom:link href="http://www.dotvoid.com/2011/10/background-color-for-inline-text/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/</link>
	<description>Experiments and thoughts in PHP and javascript</description>
	<lastBuildDate>Sat, 04 May 2013 18:44:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Velva Anderholm</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3831</link>
		<dc:creator>Velva Anderholm</dc:creator>
		<pubDate>Tue, 30 Apr 2013 14:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3831</guid>
		<description>CSS is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation, including elements such as the layout, colors, and fonts.This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). *-

Our very own internet page
&lt;http://www.foodsupplementcenter.com&lt;B&gt;  &lt;/B&gt;</description>
		<content:encoded><![CDATA[<p>CSS is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation, including elements such as the layout, colors, and fonts.This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). *-</p>
<p>Our very own internet page<br />
&lt;<a href="http://www.foodsupplementcenter.com" rel="nofollow">http://www.foodsupplementcenter.com</a><b>  </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jocuri Aparate</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3697</link>
		<dc:creator>Jocuri Aparate</dc:creator>
		<pubDate>Tue, 19 Mar 2013 23:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3697</guid>
		<description>This worked fine for me , thanks</description>
		<content:encoded><![CDATA[<p>This worked fine for me , thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pike</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3358</link>
		<dc:creator>pike</dc:creator>
		<pubDate>Wed, 14 Nov 2012 22:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3358</guid>
		<description>Martijn de Valks comment is great.

Your solution (using the border of a surrounding div to create fake padding) only creates background padding where the text aligns (in your example, on the left). On the right, the background is cut very tight to the characters.

using box-shadow saves you a div, and adds the padding on both sides of the line as well....</description>
		<content:encoded><![CDATA[<p>Martijn de Valks comment is great.</p>
<p>Your solution (using the border of a surrounding div to create fake padding) only creates background padding where the text aligns (in your example, on the left). On the right, the background is cut very tight to the characters.</p>
<p>using box-shadow saves you a div, and adds the padding on both sides of the line as well&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3356</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Sun, 04 Nov 2012 15:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3356</guid>
		<description>Any ideas on how to do it with a paragraph that has text-indent on it?</description>
		<content:encoded><![CDATA[<p>Any ideas on how to do it with a paragraph that has text-indent on it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martijn de valk</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3355</link>
		<dc:creator>martijn de valk</dc:creator>
		<pubDate>Tue, 23 Oct 2012 13:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3355</guid>
		<description>Oeps, I forgot something. 

Works in most modern browsers IE9+

p {
	padding:5px 0;
	color:#fff;
	font-size: 18px;
	display: inline;
	background-color:red;
	box-shadow: 10px 0 0 0 red, -10px 0 0 0 red;
	left:10px;
	position: relative;
}</description>
		<content:encoded><![CDATA[<p>Oeps, I forgot something. </p>
<p>Works in most modern browsers IE9+</p>
<p>p {<br />
	padding:5px 0;<br />
	color:#fff;<br />
	font-size: 18px;<br />
	display: inline;<br />
	background-color:red;<br />
	box-shadow: 10px 0 0 0 red, -10px 0 0 0 red;<br />
	left:10px;<br />
	position: relative;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martijn de valk</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3354</link>
		<dc:creator>martijn de valk</dc:creator>
		<pubDate>Tue, 23 Oct 2012 13:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3354</guid>
		<description>Try this: 

p {
	padding:5px 0;
	color:#fff;
	font-size: 18px;
	display: inline;
	background-color:red;
	box-shadow: 12px 0 0 0 red, -12px 0 0 0 red;
	left:10px;
	position: relative;
}</description>
		<content:encoded><![CDATA[<p>Try this: </p>
<p>p {<br />
	padding:5px 0;<br />
	color:#fff;<br />
	font-size: 18px;<br />
	display: inline;<br />
	background-color:red;<br />
	box-shadow: 12px 0 0 0 red, -12px 0 0 0 red;<br />
	left:10px;<br />
	position: relative;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Optimizacija</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3315</link>
		<dc:creator>Optimizacija</dc:creator>
		<pubDate>Sat, 29 Sep 2012 06:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3315</guid>
		<description>Thanks for that post.

These days background color for inline text is often used on websites. Especialy on newspaper websites.</description>
		<content:encoded><![CDATA[<p>Thanks for that post.</p>
<p>These days background color for inline text is often used on websites. Especialy on newspaper websites.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Optimizacija</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3238</link>
		<dc:creator>Optimizacija</dc:creator>
		<pubDate>Tue, 10 Jul 2012 12:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3238</guid>
		<description>CSS tips and tricks are always wellcome. So thanks for this post.</description>
		<content:encoded><![CDATA[<p>CSS tips and tricks are always wellcome. So thanks for this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3214</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 22 May 2012 00:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3214</guid>
		<description>Any way to also add CSS if I want the same effect with right aligned text?</description>
		<content:encoded><![CDATA[<p>Any way to also add CSS if I want the same effect with right aligned text?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 5 Most Important Brandable CSS/ HTML Elements &#124; Creativa Club</title>
		<link>http://www.dotvoid.com/2011/10/background-color-for-inline-text/comment-page-1/#comment-3162</link>
		<dc:creator>5 Most Important Brandable CSS/ HTML Elements &#124; Creativa Club</dc:creator>
		<pubDate>Sat, 12 May 2012 22:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=477#comment-3162</guid>
		<description>[...] Background Color for Inline Text - This tutorial shows how to add a background color to text using only CSS. [...]</description>
		<content:encoded><![CDATA[<p>[...] Background Color for Inline Text - This tutorial shows how to add a background color to text using only CSS. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
