<?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>AjaxMasters Blog &#187; css3</title> <atom:link href="http://blog.ajaxmasters.com/tag/css3/feed/" rel="self" type="application/rss+xml" /><link>http://blog.ajaxmasters.com</link> <description>Just another WordPress weblog</description> <lastBuildDate>Thu, 24 Jun 2010 11:55:25 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Playing with CSS3</title><link>http://blog.ajaxmasters.com/playing-with-css3/</link> <comments>http://blog.ajaxmasters.com/playing-with-css3/#comments</comments> <pubDate>Thu, 01 Oct 2009 18:55:57 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[Tutorial]]></category> <category><![CDATA[css]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[imageroll]]></category> <category><![CDATA[shadows]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=185</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/playing-with-css3/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/play_css3-170x170.png" class="alignleft wp-post-image tfe" alt="Play with CSS3" title="play_css3" /></a><p>If you saw our "<b>ImageRoll</b>" page and you used Firefox, Chrome or Safari then you saw the images being rotated in different angles well the way i did that is by using CSS3. I guess you already figured that out from the title. :)</p><p>CSS3 implements a lot of new features that can make your life easier of course you will not be able to use them quite yet. IE is not supporting like more than 90% of them so it's useless if you want to make this for a client. The ones that we used on our blog are: <b>box-shadow</b>, <b>border-radius</b> and <b>text-shadow</b>. [...]</p>]]></description> <content:encoded><![CDATA[<div
id="attachment_186" class="wp-caption alignleft" style="width: 249px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/play_css3.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/play_css3.png" alt="Play with CSS3" title="play_css3" width="239" height="239" class="size-full wp-image-186" /></a><p
class="wp-caption-text">Play with CSS3</p></div><p>If you saw our &#8220;<b>ImageRoll</b>&#8221; page and you used Firefox, Chrome or Safari then you saw the images being rotated in different angles well the way i did that is by using CSS3. I guess you already figured that out from the title. <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /></p><p>CSS3 implements a lot of new features that can make your life easier of course you will not be able to use them quite yet. IE is not supporting like more than 90% of them so it&#8217;s useless if you want to make this for a client. The ones that we used on our blog are: <b>box-shadow</b>, <b>border-radius</b> and <b>text-shadow</b>. I think these are the most important of them but you can check all of them out by taking a look at this page: <a
href="http://www.css3.info/preview/" title="http://www.css3.info/preview/">css3.info/preview/</a>.</p><p>I&#8217;m gonna do a simple explanation on the ones we used and show you some code.</p><p>We used on the hrefs of the page this property:</p><pre class="brush: css;">
-moz-box-shadow: 0px 2px 15px #333;
</pre><p>Now let&#8217;s explain. Why &#8220;-moz&#8221; in front of it? This is a simple hack for those who don&#8217;t know it. It tells the browser to render this only in <b>mozilla</b> based browsers. Next we have the property box-shadow  and 0px means the top margin of the shadow, 2px means we move the shadow 2 pixels to the left and 15px<br
/> means we create a shadow with 15 pixels of size of blur if you want, #333 is of course the color of the box shadow. Pretty simple <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /> .</p><p>Now let&#8217;s rotate the images:</p><pre class="brush: css;">
   -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
</pre><p>You know -moz- already but we have a new one &#8220;-webkit-&#8221; this one means it will render in webkit based browsers, the most popular are: Safari and Chrome. Next we have the property &#8220;transform&#8221; and the degree of rotation &#8220;-10deg&#8221;.</p><p>The other one that we used all over the blog is text-shadow</p><pre class="brush: css;">
text-shadow:1px 1px 0px #000;
</pre><p>This property is like this 1px means we move the shadow with 1 pixel from the top, 1 pixel from the left and 0 blur or size, #000 means of course the color of the shadow.</p><p>And here is a preview in 2 browsers IE and Firefox so you can see maybe you are not using a browser that supports CSS3.</p><div
id="attachment_193" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/ie.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/ie-600x705.png" alt="Ie view" title="ie" width="600" height="705" class="size-large wp-image-193" /></a><p
class="wp-caption-text">Ie view</p></div><br
/><div
id="attachment_194" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/firefox.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/firefox-600x642.png" alt="Firefox view" title="firefox" width="600" height="642" class="size-large wp-image-194" /></a><p
class="wp-caption-text">Firefox view</p></div><p>My imageroll page is inspired from this page: <a
href="http://line25.com/tutorials/how-to-create-a-pure-css-polaroid-photo-gallery">line25.com/tutorials/how-to-create-a-pure-css-polaroid-photo-gallery</a> . Go and check it out <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/good.png' alt='(Y)' class='wp-smiley' /> .</p><p>Thank you and happy coding! <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/wink.png' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/playing-with-css3/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 7/27 queries in 0.004 seconds using disk

Served from: blog.ajaxmasters.com @ 2010-07-31 13:54:50 -->