<?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>MaggsWeb:7 &#187; block</title>
	<atom:link href="http://www.maggsweb.com/tag/block/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maggsweb.com</link>
	<description>www.maggsweb.com</description>
	<lastBuildDate>Sat, 21 Aug 2010 20:50:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>InLine or Block elements&#8230;?</title>
		<link>http://www.maggsweb.com/css/inline-or-block-elements/</link>
		<comments>http://www.maggsweb.com/css/inline-or-block-elements/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 14:16:48 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[inline]]></category>

		<guid isPermaLink="false">http://www.cmaggs.co.uk/?p=8</guid>
		<description><![CDATA[OK, Bear with this, its quite handy when you understand it. Block Elements &#60;div&#62;, &#60;p&#62;, &#60;h1&#62;, &#60;form&#62;, &#60;ul&#62;, and &#60;li&#62; * Always begin on a new line * Height, line-height and top and bottom margins can be manipulated * Width defaults to 100% of their containing element, unless a width is specified Inline elements &#60;span&#62;, [...]]]></description>
			<content:encoded><![CDATA[<p>OK, Bear with this, its quite handy when you understand it.</p>
<p><strong>Block Elements</strong></p>
<pre> &lt;div&gt;, &lt;p&gt;, &lt;h1&gt;, &lt;form&gt;, &lt;ul&gt;, and &lt;li&gt;</pre>
<p>* Always begin on a new line<br />
* Height, line-height and top and bottom margins can be manipulated<br />
* Width defaults to 100% of their containing element, unless a width is specified</p>
<p><strong>Inline elements</strong></p>
<pre>&lt;span&gt;, &lt;a&gt;, &lt;label&gt;, &lt;input&gt;, &lt;img&gt;, &lt;strong&gt; and &lt;em&gt;</pre>
<p>* Begin on the same line<br />
* Height, line-height and top and bottom margins can&#8217;t be changed<br />
* Width is as long as the text/image and can&#8217;t be manipulated</p>
<p><span id="more-269"></span></p>
<p>So, why change an element&#8217;s status using <strong>display: inline</strong> or <strong>display: block</strong>&#8230;?</p>
<p>* Have an inline element start on a new line &#8211; <strong>display:block;</strong><br />
* Have a block element start on the same line &#8211; <strong>display:inline;</strong><br />
* Control the width of an inline element &#8211; <strong>display:block;</strong><br />
* Manipulate the height of an inline element &#8211; <strong>display:block;</strong><br />
* Set a background colour as wide as the text for block elements, without having to specify a width &#8211; <strong>display:inline;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/css/inline-or-block-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
