<?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>ModeWeb Blog &#187; CSS</title>
	<atom:link href="http://www.modeweb.co.uk/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modeweb.co.uk/blog</link>
	<description>Web Development Tech Blog</description>
	<lastBuildDate>Sun, 25 Dec 2011 22:05:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pure CSS Rounded corners</title>
		<link>http://www.modeweb.co.uk/blog/2010/04/pure-css-rounded-corners/</link>
		<comments>http://www.modeweb.co.uk/blog/2010/04/pure-css-rounded-corners/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 23:56:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.modeweb.co.uk/blog/?p=10</guid>
		<description><![CDATA[The CSS3 specification offers a new border-radius property to create perfect rounded corners purely using CSS. 

Chrome, Firefox, Mozilla and Safari 3 have all implemented this property but with the vendor extensions added like the CSS box-shadow property as mentioned in an earlier blog post.
The actual property for the above browsers is specified like so:

Chrome
Safari

webkit-border-radius: [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->The CSS3 specification offers a new border-radius property to create perfect rounded corners purely using CSS. </p>
<p><span id="more-10"></span><br />
Chrome, Firefox, Mozilla and Safari 3 have all implemented this property but with the vendor extensions added like the CSS box-shadow property as mentioned in an <a href="http://www.modeweb.co.uk/blog/?p=7" target="_blank">earlier blog post</a>.</p>
<p>The actual property for the above browsers is specified like so:</p>
<ul>
<li>Chrome</li>
<li>Safari
<ul>
<li>webkit-border-radius: 		3px;</li>
</ul>
</li>
<li>Firefox
<ul>
<li>moz-border-radius: 		3px;</li>
</ul>
</li>
<li>Standard
<ul>
<li>border-radius: 3px;</li>
</ul>
</li>
</ul>
<p>The property actually takes 2 length values that basically put define the “slope” of each corner. For example if only one value is used or the two values are the same the “slope” of each corner would be a quarter circle. If the 2 values are different the corner is more of an ellipse shape.</p>
<p>It is also possible to apply the property to individual corners. Again we must specify different vendor extensions for each browser:</p>
<ul>
<li>Chrome</li>
<li>Safari
<ul>
<li>-webkit-border-top-left-radius</li>
<li>-webkit-border-top-right-radius</li>
<li>-webkit-border-bottom-left-radius</li>
<li>-webkit-border-bottom-right-radius</li>
</ul>
</li>
<li>Firefox
<ul>
<li>-moz-border-radius-topleft</li>
<li>-moz-border-radius-topright</li>
<li>-moz-border-radius-bottomleft</li>
<li>-moz-border-radius-bottomright</li>
</ul>
</li>
</ul>
<p>We can use these wonderful features now! There is no need to wait around. If the above doesn&#8217;t fit your needs, here&#8217;s a list of <a href="http://www.devwebpro.com/25-rounded-corners-techniques-with-css/" target="_blank">25 rounded corner techniques</a>, choose the best one that fits your project. Good Luck!.</p>
<p>﻿</p>
]]></content:encoded>
			<wfw:commentRss>http://www.modeweb.co.uk/blog/2010/04/pure-css-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Non-Standard CSS Properties</title>
		<link>http://www.modeweb.co.uk/blog/2010/04/using-non-standard-css-properties/</link>
		<comments>http://www.modeweb.co.uk/blog/2010/04/using-non-standard-css-properties/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 19:38:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://localhost.modeweb.com/blog/?p=7</guid>
		<description><![CDATA[This site extensively uses CSS property box-shadow. Since this property is not available in all browsers we had a few decisions to make. At first we decided using transparent PNGs but these are a no-no in earlier versions of IE, but then we knew this could be fixed with the many PNG fixes around for [...]]]></description>
			<content:encoded><![CDATA[<p>This site extensively uses CSS property box-shadow. Since this property is not available in all browsers we had a few decisions to make. At first we decided using transparent PNGs but these are a no-no in earlier versions of IE, but then we knew this could be fixed with the many PNG fixes around for IE. So we decided to use transparent PNGs and a script to add this functionality to IE. We decided this because we wanted to ensure maximum browser reach in terms of how the site would look.<br />
<span id="more-7"></span><br />
We knew this be be hard work as we have extensively used drop shadows on the site. So all went well in in terms of development with all the modern browsers (Chrome, Firefox, IE8, Opera, Safari) it was when we turned our attentions to IE6 in particular looking at how to implement the script to make transparent PNGs actually work.</p>
<p>As soon as we started playing about with the PNG fix script(s) we knew it wasn&#8217;t really going to fit our needs. We had used a lot of images and it was slow, not only that we were getting sporadic Javascript errors, all-in-all, not a very nice experience. So we decided, like that voice in our head was telling us at the beginning ([spooky voice] use non standard properties, its oookkkaaayy) to totally change track and use box-shadow.</p>
<p>Turns out that box-shadow its actually well supported in modern browsers: Chrome, Firefox, Opera, Safari all support this property but with added vendor extensions, apart from Opera which fully supports the standard CSS box-shadow property. For the rest we have to specify vendor prefixes for the property like so:</p>
<p>Chrome, Safari:<br />
webkit-box-shadow: 0px 3px 5px #000;</p>
<p>Firefox:<br />
mox-box-shadow: 0px 3px 5px #000;</p>
<p>Standard:<br />
box-shadow: 0px 3px 5px #000;</p>
<p>This instantly solved most of our problems and made our development faster and leaner. For IE7 and above we serve the CSS file that uses transparent PNGs, and for the rest we rely solely on the box-shadow property to create excellent looking and natively scalable drop shadows. For IE &lt;= 6 we just don&#8217;t use any background images, they still get a usable website and we don&#8217;t have to mess about with PNG fix scripts.</p>
<p>We have learned that its much more enjoyable and rewarding to work to the highest common denominator instead of the lowest all the time. This only works so far however and you should really only use non-standard features for embellishment and design purposes, but since that is what CSS is for it is a perfect match.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.modeweb.co.uk/blog/2010/04/using-non-standard-css-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

