<?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>Altryne's Blog &#187; Css</title>
	<atom:link href="http://alexw.me/tags/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexw.me</link>
	<description>Not everyday I get to learn "nothing"</description>
	<lastBuildDate>Fri, 04 Jun 2010 20:06:27 +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>Pure css3 analog clock (with a little cheat)</title>
		<link>http://alexw.me/2010/06/pure-css3-analog-clock-with-a-little-cheat/</link>
		<comments>http://alexw.me/2010/06/pure-css3-analog-clock-with-a-little-cheat/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 20:01:08 +0000</pubDate>
		<dc:creator>Altryne</dc:creator>
				<category><![CDATA[Playing with stuff]]></category>
		<category><![CDATA[Amazing]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://alexw.me/?p=222</guid>
		<description><![CDATA[I love css3, have I told you already? Love it. Anyway, I wanted to see what I can do with transitions and animations in webkit, and I made this : Click the Image to see the live demo Support : Firefox + Webkit browsers In firefox I use javascript to move the properties In Webkit, [...]]]></description>
			<content:encoded><![CDATA[<p>I love css3, have I told you already? Love it.</p>
<p>Anyway, I wanted to see what I can do with transitions and animations in webkit, and I made this :</p>
<div id="attachment_223" class="wp-caption aligncenter" style="width: 371px"><a href="http://alexw.me/playground/cssclock.html"><img class="size-full wp-image-223 " title="Click Here to see it live in action" src="http://alexw.me/wp-content/uploads/2010/06/clockthumb.jpg" alt="" width="361" height="414" /></a><p class="wp-caption-text">Css only (well almost) analog clock</p></div>
<p>Click the Image to see the<strong> </strong><a href="http://alexw.me/playground/cssclock.html"><strong>live demo</strong></a></p>
<h3><strong>Support</strong> :</h3>
<p>Firefox + Webkit browsers<br />
In firefox I use javascript to move the properties<br />
In Webkit, all the animation and the calculation is in CSS!!<br />
I did cheat however : I used js to determine the current  time. Now way to do that in css.             I didn&#8217;t want to include jquery here, as u can see all the  code is pure js, but I had to because it&#8217;s dufficult to do browser  detection properly with js.</p>
<h3><strong>Lessons learned</strong> :</h3>
<ul>
<li> CSS3 is awesome!! Especially the way webkit does it  (transitions, animations)<br />
But it still has a LONG way to go untill we see  compability cross browsers</li>
<li> In Safari and Mobile safari, the arrows were jagged  untill I gave the css-shadow, So it seems that                 giving this property turns on antialiasing somehow. Cool</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://alexw.me/2010/06/pure-css3-analog-clock-with-a-little-cheat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Html5 video puzzle &#8211; proof of concept</title>
		<link>http://alexw.me/2010/05/html5-video-puzzle-proof-of-concept/</link>
		<comments>http://alexw.me/2010/05/html5-video-puzzle-proof-of-concept/#comments</comments>
		<pubDate>Thu, 27 May 2010 21:30:10 +0000</pubDate>
		<dc:creator>Altryne</dc:creator>
				<category><![CDATA[Playing with stuff]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://alexw.me/?p=210</guid>
		<description><![CDATA[I&#8217;ve decided to learn more about html5, since Google and Apple and a lot of these BIG companies say it&#8217;s the future. I went to http://canvasdemos.com and was amazed that all this can be achieved with canvas tag. I specifically liked the blowing up video into pieces , check it out, it&#8217;s AWESOME. Sean from [...]]]></description>
			<content:encoded><![CDATA[<h3><span style="font-size: medium;"><br />
</span></h3>
<p>I&#8217;ve decided to learn more about html5, since Google and Apple and a lot of these BIG companies say it&#8217;s the future.</p>
<p>I went to <a href="http://canvasdemos.com">http://canvasdemos.com</a> and was amazed that all this can be achieved with canvas tag.</p>
<p>I specifically liked the <a href="http://www.craftymind.com/2010/04/20/blowing-up-html5-video-and-mapping-it-into-3d-space/">blowing up video into pieces</a> , check it out, it&#8217;s AWESOME.</p>
<p>Sean from craftymind.com has done and amazing proof of concept, you should really check it out. I played with it and then realized, that clicking is the only interactivity there is and it seems that there&#8217;s more there. much more.</p>
<p><a href="http://alexw.me/playground/canvas.html">Here&#8217;s what I came up with</a> :</p>
<p><a href="http://alexw.me/playground/canvas.html"><img title="Click Here to see it live in action" src="http://alexw.me/wp-content/uploads/2010/05/demo.jpg" alt="" width="480" height="291" /></a></p>
<p>Click on <strong>Randomize Pieces</strong> to explode the video to pieces and Begin assembling.</p>
<p><a href="http://alexw.me/playground/canvas2.html">demo2</a> has video courtecy of bigcbuckbunny movie and lots more pieces (use chome)</p>
<p>I&#8217;ve decided to try and make something using the drawImage() method for the canvas, and inserting the video feed.</p>
<h2>Goals :</h2>
<ul>
<li>Learn a bit more about &lt;canvas&gt; ,html5 ,  video encoding</li>
<li>Use tools I know to interact with the new stuff (jquery, css)</li>
<li>Create something awesome!</li>
<li>Make it fun</li>
</ul>
<h2>The idea:</h2>
<p>The idea was simple, take Sean&#8217;s example, and add interactivity, first I was leaning towards making a &#8220;pyatnashki&#8221; ор <a href="http://en.wikipedia.org/wiki/Fifteen_puzzle">fifteenpuzzle</a> puzzle game, only using video, but then I decided it&#8217;s cool to leave it as a regular puzzle without constraints.</p>
<h2>The actual work:</h2>
<p>First I had to use some movie, it had to loop good enough, since as it turned out later, video puzzle isn&#8217;t really easy. I&#8217;ve used video shot by <a href="http://leenetsky.ru">my uncle </a> I offcourse had to format it properly, well it turns out, right now there are weird ways to input &lt;video&gt; in html, since webkit browsers support h.264 and webM and firefox supports theora codec.</p>
<p>I&#8217;ve re-encoded the video to 2 files ( .ogv and .mp4) using this tutorial : <a href="http://diveintohtml5.org/video.html">http://diveintohtml5.org/video.html</a></p>
<p>I then had to choose what will I do the actual interactivity with, the canvas itself, or DOM elements. I&#8217;ve chosen DOM elements, that maybe slower, but it&#8217;s a diferent approach then I&#8217;ve seen, plus I already know how to manipulate DOM, and can use that to my advantage.</p>
<p>I&#8217;ve created a factory function, that picks up on original video width and height, and takes the number of pieces that I want, and creates the necessary amount of canvas elements.</p>
<p>I then use drawImage each frame of the video, and copy pixels to each canvas according to their location on the matrix.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexw.me/2010/05/html5-video-puzzle-proof-of-concept/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Simlest jquery rounded tabs with some css3</title>
		<link>http://alexw.me/2010/02/simle-jquery-rounded-tabs/</link>
		<comments>http://alexw.me/2010/02/simle-jquery-rounded-tabs/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 21:05:53 +0000</pubDate>
		<dc:creator>Altryne</dc:creator>
				<category><![CDATA[Playing with stuff]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[xHtml]]></category>

		<guid isPermaLink="false">http://alexw.me/?p=176</guid>
		<description><![CDATA[This is a solution for tabbed interface I wrote while working on a high profile project at work. It uses jQuery and about 3 lines of code to create it(plus some css+xtml). Very easy indeed. I know there are a LOT of tab plugins avaliable out-there, I used them myself. A lot. The problem was, [...]]]></description>
			<content:encoded><![CDATA[<p>This is a solution for tabbed interface I wrote while working on a high profile project at work. It uses jQuery and about 3 lines of code to create it(plus some css+xtml). Very easy indeed.<br />
I know there are a LOT of <a title="simple tabs with jquery" href="http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery/" target="_blank">tab</a> <a title="jQuery ui tabs" href="http://docs.jquery.com/UI/Tabs" target="_blank">plugins</a> <a title="Tabs using animation effects" href="http://stilbuero.de/jquery/tabs/" target="_blank">avaliable</a> out-there, I used them myself. A lot.<br />
The problem was, I wanted a quick solution, without the bells and whiles of animation and FX. This is what came out.</p>
<p><a href="http://alexw.me/playground/tabs.html">SEE DEMO HERE<br />
</a></p>
<p><strong><span style="font-size: medium;">Step one : xHtml markup</span></strong></p>
<p><strong><span style="font-size: medium;"><span id="more-176"></span><br />
</span></strong></p>
<p>I decided to use the most basic structure. 2 wrappers next to each other, one containing the actual tabs, the other the relative content to each tab. Both elements(tabs and content) receive the &#8216;active&#8217; class when their are in fact <strong>active</strong>.</p>
<pre class="brush: html">
&lt;ul id=&quot;tabz&quot;&gt;
&lt;li class=&quot;tab active&quot;&gt;Tab1&lt;/li&gt;
&lt;li class=&quot;tab &quot;&gt;Tab2&lt;/li&gt;
&lt;li class=&quot;tab &quot;&gt;Tab3&lt;/li&gt;
&lt;/ul&gt;
&lt;div id=&quot;tabz_cont&quot;&gt;
&lt;div class=&quot;cont active&quot;&gt;Content 1&lt;/div&gt;
&lt;div class=&quot;cont&quot;&gt;Content 2&lt;/div&gt;
&lt;div class=&quot;cont&quot;&gt;
&lt;h1&gt;some other content&lt;/h1&gt;
Content 1

&lt;/div&gt;
&lt;/div&gt;
</pre>
<p><strong><span style="font-size: medium;">Step two : Css</span></strong></p>
<p><span>I used a grid system (<a href="http://960.gs)">http://960.gs)</a> to position and give widths to all the elements, beside that, I used some css3 techniques to beatify my tabs (rounded corners and shadow).</span><br />
The actual css you use, isn&#8217;t important to the work of the <strong>tabz</strong>.</p>
<p><span style="font-size: large;"><strong>Step three : JAVASCRIPT</strong></span></p>
<p>This is the reason why you are reading this, right? here you go:</p>
<pre class="brush: js">
//Tabz code - apply event to the tabs elements and your done
$(&#039;#tabz li&#039;).live(&#039;click&#039;,function(){
_index = $(this).parent().children().index($(this));
$(this).addClass(&#039;active&#039;).siblings().removeClass(&#039;active&#039;);
$(&#039;.cont&#039;).removeClass(&#039;active&#039;).eq(_index).addClass(&#039;active&#039;);
});
</pre>
<p>I select the tabs and assign them a click event listener, with the <strong>live()</strong> function.</p>
<p>Then I create an <strong>_index</strong> variable, that will tel me the index of the tab inside it&#8217;s parent.</p>
<p>By this <strong>_index</strong> I can now show the relevant content in the content div(the tabs and their content <strong>have </strong> to be the same index in their respective containers)</p>
<p>That&#8217;s it. Hope you can use this. If you do, don&#8217;t forget to comment here and show me your work.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexw.me/2010/02/simle-jquery-rounded-tabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6. Must die?</title>
		<link>http://alexw.me/2009/02/ie6-must-die/</link>
		<comments>http://alexw.me/2009/02/ie6-must-die/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 14:22:23 +0000</pubDate>
		<dc:creator>Altryne</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Standarts]]></category>
		<category><![CDATA[xHtml]]></category>

		<guid isPermaLink="false">http://alexw.me/?p=26</guid>
		<description><![CDATA[In short : YES! Internet Explorer 6 was included (and I beleive still is) with Windows XP. In turn, XP was released in October 2001! That&#8217;s 8 years ago. Think about it. 8 YEARS. Die ie6! DIE! And yeah yeah I know&#8230;there are issues of accessibility involved, and many people simply cannot install new software [...]]]></description>
			<content:encoded><![CDATA[<h2>In short : YES!</h2>
<p>Internet Explorer 6 was included (and I beleive still is) with Windows XP.</p>
<p>In turn, XP was released in October 2001!  That&#8217;s 8 years ago.</p>
<p>Think about it. <strong>8 YEARS</strong>.</p>
<h3>Die ie6! DIE!</h3>
<p><a title="Browse Happy: Switch to a safer browser today" href="http://browsehappy.com/"><img src="http://browsehappy.com/buttons/bh_150x40_anim.gif" alt="Browse Happy logo" /></a></p>
<p><span id="more-26"></span></p>
<p>And yeah yeah I know&#8230;there are issues of accessibility involved, and many people simply cannot <strong>install</strong> new software (officces and GP policy ) and they are <strong>STUCK</strong> with <strong>IE6</strong>.</p>
<p><strong>But personally, I don&#8217;t care.</strong></p>
<p>As a webmaster, I do twise the work, trying to make up for IE6&#8242;s standart non-compliance.</p>
<ul>
<li>I need to create another stylesheet (conditional comments to the resque)</li>
<li>I have to figure out what exactly is wrong with IE6 and how to fix it (google helps me here alot)</li>
<li>I have to use different graphics or extend the website with javascript to achieve transparency.</li>
<li>I have to clean up all the hair on the floor, hair I previously tore from my head in anger with IE6.</li>
</ul>
<p>The thing is, in Israel, as little as 10% &#8211; 15% of all websites are standart compliant. That&#8217;s because nobody here really cares about web-standarts (very few do : <a title="KCSnet web services" href="http://www.kcsnet.net">KCS</a> is one of them) , and it becomes something of a needed skill to know how to write mark-up for both standart-compliant browsers and otherwise(ie6 + ie7).</p>
<p>Ok, so I agree, when most of your clients still use ie6 <img src='http://alexw.me/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  , you have to build their website&#8217;s accordingly.</p>
<p>But personally, <strong>NO!</strong></p>
<p>That&#8217;s why this blog and other personal websites I will build from now on, will not even be tested with IE6 or IE7. Well maybe IE7, but that&#8217;s about it.</p>
<p>IE8 is almoust here, and it&#8217;s good. Nice and standart compliant. No need for hacks of any sort.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexw.me/2009/02/ie6-must-die/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fade in/out effect makes text Garbled. /strange</title>
		<link>http://alexw.me/2009/02/fade-inout-effect-makes-text-garbled-strange/</link>
		<comments>http://alexw.me/2009/02/fade-inout-effect-makes-text-garbled-strange/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 22:22:03 +0000</pubDate>
		<dc:creator>Altryne</dc:creator>
				<category><![CDATA[Problems and Fixes]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[xHtml]]></category>

		<guid isPermaLink="false">http://alexw.me/?p=13</guid>
		<description><![CDATA[<h1>Prologue :</h1>
Ok so i'm working on this site at work, and our creative designers decided it should have a news ticker in Javascipt. A fade-in/out kind of thing.]]></description>
			<content:encoded><![CDATA[<h1>Prologue :</h1>
<p>Ok so i&#8217;m working on this site at work, and our creative designers decided it should have a news ticker in Javascipt. A fade-in/out kind of thing.</p>
<p>I used <strong>Mootools</strong> (of course) to write a simple script for this. And then I noticed something very strange. While in transition, both in Firefox and IE (6 and 7) the text got Garbled and rendered strangely.</p>
<h1>Problem :</h1>
<p>I then noticed this deal on another websites :<br />
<div id="attachment_14" class="wp-caption alignnone" style="width: 511px"><img class="size-full wp-image-14" title="getstisfaction.com" src="http://alexw.me/wp-content/uploads/2009/02/getstisfaction.jpg" alt="getstisfaction.com " width="501" height="341" /><p class="wp-caption-text">getstisfaction.com </p></div><br />
<span id="more-13"></span></p>
<h1>Preview :</h1>
<p>I tried to recreate this , and I made it happen only in IE for some reason.<br />
<Iframe border="0" frameborder="0" width="500" height="200" src="http://alexw.me/html_examples/show_hide_garlbed.php"></iframe></p>
<h1>FIX :</h1>
<p>All that needs to be done, is to add background color to the absolute positioned elements that get faded in and out&#8230;</p>
<p>like so :<br />
<code><br />
.fade_div{<br />
position:absolute;<br />
background-color:#fff;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://alexw.me/2009/02/fade-inout-effect-makes-text-garbled-strange/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ok, So I opened a new blog</title>
		<link>http://alexw.me/2009/02/first-post/</link>
		<comments>http://alexw.me/2009/02/first-post/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 19:50:08 +0000</pubDate>
		<dc:creator>Altryne</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[xHtml]]></category>

		<guid isPermaLink="false">http:/?p=1</guid>
		<description><![CDATA[Hi everybody, I opened this blog, to share my thoughts on different things I come accross in my field. I&#8217;m a web-designer and web-developer for a year now. I do mostly PHP and JavaScript (usually mootools), also I really love everything that has to with mark-up (xHTML and CSS) Everyday I learn something new, and [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everybody,</p>
<p>I opened this blog, to share my thoughts on different things I come accross in my field.</p>
<p>I&#8217;m a web-designer and web-developer for a year now.</p>
<p>I do mostly <strong>PHP </strong>and <strong>JavaScript</strong> (usually <strong>mootools</strong>), also I really love everything that has to with mark-up (<strong>xHTML </strong>and <strong>CSS</strong>)</p>
<p>Everyday I learn something new, and this will be the place to share my newly acquired knowledge.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexw.me/2009/02/first-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
