<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>.NET Hell &#38; Heaven &#187; apply width label</title>
	<atom:link href="http://www.florinraicu.com/tag/apply-width-label/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.florinraicu.com</link>
	<description>First, solve the problem. Then, write the code.</description>
	<lastBuildDate>Sun, 18 Jul 2010 07:56:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Input formatting &#8211; apply width to a label</title>
		<link>http://www.florinraicu.com/input-formatting-apply-width-to-a-label/</link>
		<comments>http://www.florinraicu.com/input-formatting-apply-width-to-a-label/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 22:40:01 +0000</pubDate>
		<dc:creator>Florin RAICU</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[apply width label]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[width]]></category>

		<guid isPermaLink="false">http://www.florinraicu.com/?p=69</guid>
		<description><![CDATA[Just a few minutes ago a friend of mine asked me how can he apply width attribute to a label (he&#8217;s trying to format a form without using tables). Well the idea is very simple. You need to use the label element, but because the label is an inline element, it cannot have width value; [...]]]></description>
			<content:encoded><![CDATA[<p>Just a few minutes ago a friend of mine asked me how can he apply width attribute to a label (he&#8217;s trying to format a form without using tables). Well the idea is very simple. You need to use the label element, but because the label is an inline element, <strong>it cannot have width value</strong>; in order to do this you need to put <strong>display:block</strong> or<strong> float:left</strong>.</p>
<pre>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc-1">&lt;!--</span>
<span class="sc-1">label, input </span>
<span class="sc-1">{</span>
<span class="sc-1"> &nbsp; &nbsp;margin-top: 5px;</span>
<span class="sc-1"> &nbsp; &nbsp;float: left;</span>
<span class="sc-1">}</span>

<span class="sc-1">label </span>
<span class="sc-1">{</span>
<span class="sc-1"> &nbsp; display: block;</span>
<span class="sc-1"> &nbsp; width: 100px;</span>
<span class="sc-1">}</span>
<span class="sc-1">--&gt;</span></div>
</div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/www.florinraicu.com/p=69</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
