<?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>Website Design Ireland, Website Development &#187; CSS</title>
	<atom:link href="http://www.eire-webdesign.ie/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eire-webdesign.ie/blog</link>
	<description>Web Design and Development</description>
	<lastBuildDate>Sat, 02 Jan 2010 14:53:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS Hack !important</title>
		<link>http://www.eire-webdesign.ie/blog/2007/10/15/css-hack-important/</link>
		<comments>http://www.eire-webdesign.ie/blog/2007/10/15/css-hack-important/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 10:02:31 +0000</pubDate>
		<dc:creator>Louie @ Eire Web Design</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.eire-webdesign.ie/blog/2007/10/15/css-hack-important/</guid>
		<description><![CDATA[In CSS is very easy to overwrite a rule you have created earlier, then you wonder why making changes to the rule doesn&#8217;t  apply to the page layout.  One thing to know is the !important rule available since CSS1. Adding !important after a command like this: .div { margin-left: 5px;color:#ff0000!important;margin-left: 3px;} will make sure that all browsers  will have [...]]]></description>
			<content:encoded><![CDATA[<p>In <acronym title="Cascading Stylesheets">CSS</acronym> is very easy to overwrite a rule you have created earlier, then you wonder why making changes to the rule doesn&#8217;t  apply to the page layout. <br />
One thing to know is the <strong><font color="#ff0000">!important</font></strong> rule available since CSS1.<br />
Adding <strong><font color="#ff0000">!important</font></strong> after a command like this:</p>
<pre lang="css">.div { margin-left: 5px;color:#ff0000!important;margin-left: 3px;}</pre>
<p>will make sure that all browsers  will have a margin-left of 5px regardless of what appears after it, except IE (Internet Explorer)  which ignores the <strong><font color="#ff0000">!important</font> </strong>command gives a margin-left of 3px.</p>
<p>This can be very useful when you need to set relative margin as the display will differ from browser to browser.</p>
<p>IE, however, will respect the <strong><font color="#ff0000">!important</font></strong> declarations if they are not in the same rule as below:</p>
<pre lang="css">.div_font {color: red;!important;}
.div_font { color: blue; }</pre>
<p>So whatever you asign this rule to the font color will be <strong><font color="#ff0000">red</font></strong> not <strong><font color="#0000ff">blue</font></strong> as in the second command. </p>
<p>The first example above was a very useful CSS Hack for IE, however since IE7 has been released, the <strong><font color="#ff0000">!important</font></strong> rule doesn&#8217;t have much effect any longer, as IE7 renders the page much like Firefox.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eire-webdesign.ie/blog/2007/10/15/css-hack-important/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Centering fixed-width layouts</title>
		<link>http://www.eire-webdesign.ie/blog/2007/10/15/css-centering-fixed-width-layouts/</link>
		<comments>http://www.eire-webdesign.ie/blog/2007/10/15/css-centering-fixed-width-layouts/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 09:59:18 +0000</pubDate>
		<dc:creator>Louie @ Eire Web Design</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.eire-webdesign.ie/blog/2007/10/15/css-centering-fixed-width-layouts/</guid>
		<description><![CDATA[Do you ever wonder how you can center a containing div? The use of &#8220;tables&#8221; or &#8220;center&#8221; tag makes the job a lot easier, but it will fail validation. Another way of doing this is using CSS stylesheet. body{padding:0px; margin:0px; text-align:center;} #div_container{margin-left: auto;margin-right: auto;width:800px;} The only problem with the above solution is that &#8220;#div_container&#8221; will [...]]]></description>
			<content:encoded><![CDATA[<p>Do you ever wonder how you can center a containing div?<br />
The use of &#8220;tables&#8221; or &#8220;center&#8221; tag makes the job a lot easier, but it will fail validation.<br />
Another way of doing this is using CSS stylesheet.</p>
<pre lang="css">
body{padding:0px; margin:0px; text-align:center;}

#div_container{margin-left: auto;margin-right: auto;width:800px;}</pre>
<p>The only problem with the above solution is that &#8220;#div_container&#8221; will also have the text centered.<br />
To overcome this problem you have to specify the &#8220;text-align&#8221; tag as below:</p>
<pre lang="css">
body{padding:0px; margin:0px; text-align:center;} #div_container{margin-left: auto;margin-right: auto;width:800px;<strong><font color="#ff0000">text-align:left</font></strong>;}</pre>
<p>W3C Visual formatting model explains: &#8220;If both &#8216;margin-left&#8217; and &#8216;margin-right&#8217; are &#8216;auto&#8217;, their used values are equal.<br />
This horizontally centers the element with respect to the edges of the containing block.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eire-webdesign.ie/blog/2007/10/15/css-centering-fixed-width-layouts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
