<?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>alexyz &#187; CSS</title>
	<atom:link href="http://alexyz.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexyz.com</link>
	<description>developer notes</description>
	<lastBuildDate>Tue, 13 Dec 2011 19:09:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>jQuery .hover change div background-position example</title>
		<link>http://alexyz.com/jquery-hover-change-div-background-position-example/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-hover-change-div-background-position-example</link>
		<comments>http://alexyz.com/jquery-hover-change-div-background-position-example/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 23:48:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1416</guid>
		<description><![CDATA[example for reference: $(&#8220;#formButtonSubmit&#8220;).hover(function(){ $(this).css({ backgroundPosition: &#8217;0px 0px&#8217; }); }, function(){ $(this).css({ backgroundPosition: &#8217;0px 30px&#8217; }); });]]></description>
			<content:encoded><![CDATA[<p>example for reference:</p>
<p><span style="color: #0000ff;">$</span>(&#8220;#<span style="color: #ff0000;">formButtonSubmit</span>&#8220;).<span style="color: #0000ff;">hover</span>(<span style="color: #008000;">function()</span>{<br />
<span style="color: #0000ff;">$</span>(<strong>this</strong>).<span style="color: #0000ff;">css</span>({<br />
backgroundPosition: &#8217;0px 0px&#8217;<br />
});<br />
}, function(){<br />
<span style="color: #0000ff;">$</span>(<strong>this</strong>).<span style="color: #0000ff;">css</span>({<br />
backgroundPosition: &#8217;0px 30px&#8217;<br />
});<br />
});</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/jquery-hover-change-div-background-position-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS !important override</title>
		<link>http://alexyz.com/css-important-override/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-important-override</link>
		<comments>http://alexyz.com/css-important-override/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:23:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1211</guid>
		<description><![CDATA[A rule that has the !important property will always be applied no matter where that rule appears in the CSS document. example: p { color: #ff0000 !important; }]]></description>
			<content:encoded><![CDATA[<p>A rule that has the !important property will always be applied no matter where that rule appears in the CSS document.</p>
<p>example:</p>
<p>p { color: #ff0000 !important; }</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/css-important-override/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS text-transform</title>
		<link>http://alexyz.com/css-text-transform/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-text-transform</link>
		<comments>http://alexyz.com/css-text-transform/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:22:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1209</guid>
		<description><![CDATA[{text-transform:uppercase} {text-transform:capitalize} {text-transform:lowercase} also consider: {font-variant:small-caps}]]></description>
			<content:encoded><![CDATA[<p>{text-transform:uppercase}<br />
{text-transform:capitalize}<br />
{text-transform:lowercase}</p>
<p>also consider:<br />
{font-variant:small-caps}</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/css-text-transform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS pseudo elements &amp; pseudo classes</title>
		<link>http://alexyz.com/css-pseudo-elements-pseudo-classes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-pseudo-elements-pseudo-classes</link>
		<comments>http://alexyz.com/css-pseudo-elements-pseudo-classes/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:21:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1207</guid>
		<description><![CDATA[CSS Pseudo Elements :after Adds content after an element :before Adds content before an element :first-letter Adds a style to the first character of a text :first-line Adds a style to the first line of a text example: h1:after { content:url(smiley.gif); } Posted on 5 Oct 2009, 17:00 &#8211; Category: CSS Comments &#8211; Edit &#8211; [...]]]></description>
			<content:encoded><![CDATA[<h3>CSS Pseudo Elements</h3>
<p>:after<br />
Adds content after an element</p>
<p>:before<br />
Adds content before an element</p>
<p>:first-letter<br />
Adds a style to the first character of a text</p>
<p>:first-line<br />
Adds a style to the first line of a text</p>
<p>example:<br />
h1:after<br />
{<br />
content:url(smiley.gif);<br />
}</p>
<p><em>Posted on 5 Oct 2009, 17:00 &#8211; Category: <a href="http://www.alexyz.com/cuealex/pplog.pl?viewCat=CSS">CSS</a><br />
<a href="http://www.alexyz.com/cuealex/pplog.pl?viewDetailed=00100">Comments</a> &#8211; <a href="http://www.alexyz.com/cuealex/pplog.pl?edit=00100">Edit</a> &#8211; <a href="http://www.alexyz.com/cuealex/pplog.pl?delete=00100">Delete</a></em></p>
<h3>Pseudo Classes</h3>
<p>:active<br />
Adds a style to an element that is activated</p>
<p>:first-child<br />
Adds a style to an element that is the first child of another element</p>
<p>:focus<br />
Adds a style to an element that has keyboard input focus</p>
<p>:hover<br />
Adds a style to an element when you mouse over it</p>
<p>:lang<br />
Adds a style to an element with a specific lang attribute</p>
<p>:link<br />
Adds a style to an unvisited link</p>
<p>:visited<br />
Adds a style to a visited link</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/css-pseudo-elements-pseudo-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS em</title>
		<link>http://alexyz.com/css-em/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-em</link>
		<comments>http://alexyz.com/css-em/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:18:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1204</guid>
		<description><![CDATA[pixels/16=em example: h1 {font-size:2.5em} /* 40px/16=2.5em */ h2 {font-size:1.875em} /* 30px/16=1.875em */ p {font-size:0.875em} /* 14px/16=0.875em */]]></description>
			<content:encoded><![CDATA[<p>pixels/16=em<br />
example:<br />
h1 {font-size:2.5em} /* 40px/16=2.5em */<br />
h2 {font-size:1.875em} /* 30px/16=1.875em */<br />
p {font-size:0.875em} /* 14px/16=0.875em */</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/css-em/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I always like to have a nice simple AJAX example on hand, you never know&#8230;</title>
		<link>http://alexyz.com/i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know</link>
		<comments>http://alexyz.com/i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 04:52:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=409</guid>
		<description><![CDATA[reference: http://w3schools.com/php/php_ajax_php.asp HTML: &#60;html&#62; &#60;head&#62; &#60;script type=&#8221;text/javascript&#8221;&#62; function showHint(str) { if (str.length==0) { document.getElementById(&#8220;txtHint&#8221;).innerHTML=&#8221;"; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 &#38;&#38; xmlhttp.status==200) { document.getElementById(&#8220;txtHint&#8221;).innerHTML=xmlhttp.responseText; } } xmlhttp.open(&#8220;GET&#8221;,&#8221;gethint.php?q=&#8221;+str,true); xmlhttp.send(); } &#60;/script&#62; &#60;/head &#60;body&#62; &#60;p&#62;&#60;b&#62;Start [...]]]></description>
			<content:encoded><![CDATA[<p><strong>reference:</strong></p>
<p><a href="http://w3schools.com/php/php_ajax_php.asp">http://w3schools.com/php/php_ajax_php.asp</a></p>
<p><strong>HTML:</strong></p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function showHint(str)<br />
{<br />
if (str.length==0)<br />
{<br />
document.getElementById(&#8220;txtHint&#8221;).innerHTML=&#8221;";<br />
return;<br />
}<br />
if (window.XMLHttpRequest)<br />
{// code for IE7+, Firefox, Chrome, Opera, Safari<br />
xmlhttp=new XMLHttpRequest();<br />
}<br />
else<br />
{// code for IE6, IE5<br />
xmlhttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);<br />
}<br />
xmlhttp.onreadystatechange=function()<br />
{<br />
if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)<br />
{<br />
document.getElementById(&#8220;txtHint&#8221;).innerHTML=xmlhttp.responseText;<br />
}<br />
}<br />
xmlhttp.open(&#8220;GET&#8221;,&#8221;gethint.php?q=&#8221;+str,true);<br />
xmlhttp.send();<br />
}<br />
&lt;/script&gt;<br />
&lt;/head<br />
&lt;body&gt;</p>
<p>&lt;p&gt;&lt;b&gt;Start typing a name in the input field below:&lt;/b&gt;&lt;/p&gt;<br />
&lt;form&gt;<br />
First name: &lt;input type=&#8221;text&#8221; onkeyup=&#8221;showHint(this.value)&#8221; size=&#8221;20&#8243; /&gt;<br />
&lt;/form&gt;<br />
&lt;p&gt;Suggestions: &lt;span id=&#8221;txtHint&#8221;&gt;&lt;/span&gt;&lt;/p&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p><strong>Script:</strong></p>
<p><span style="color: #ff0000;">&lt;?php<br />
// Fill up array with names<br />
$a[]=&#8221;Anna&#8221;;<br />
$a[]=&#8221;Brittany&#8221;;<br />
$a[]=&#8221;Cinderella&#8221;;<br />
$a[]=&#8221;Diana&#8221;;<br />
$a[]=&#8221;Eva&#8221;;<br />
$a[]=&#8221;Fiona&#8221;;<br />
$a[]=&#8221;Gunda&#8221;;<br />
$a[]=&#8221;Hege&#8221;;<br />
$a[]=&#8221;Inga&#8221;;<br />
$a[]=&#8221;Johanna&#8221;;<br />
$a[]=&#8221;Kitty&#8221;;<br />
$a[]=&#8221;Linda&#8221;;<br />
$a[]=&#8221;Nina&#8221;;<br />
$a[]=&#8221;Ophelia&#8221;;<br />
$a[]=&#8221;Petunia&#8221;;<br />
$a[]=&#8221;Amanda&#8221;;<br />
$a[]=&#8221;Raquel&#8221;;<br />
$a[]=&#8221;Cindy&#8221;;<br />
$a[]=&#8221;Doris&#8221;;<br />
$a[]=&#8221;Eve&#8221;;<br />
$a[]=&#8221;Evita&#8221;;<br />
$a[]=&#8221;Sunniva&#8221;;<br />
$a[]=&#8221;Tove&#8221;;<br />
$a[]=&#8221;Unni&#8221;;<br />
$a[]=&#8221;Violet&#8221;;<br />
$a[]=&#8221;Liza&#8221;;<br />
$a[]=&#8221;Elizabeth&#8221;;<br />
$a[]=&#8221;Ellen&#8221;;<br />
$a[]=&#8221;Wenche&#8221;;<br />
$a[]=&#8221;Vicky&#8221;;</p>
<p>//get the q parameter from URL<br />
$q=$_GET["q"];</p>
<p>//lookup all hints from array if length of q&gt;0<br />
if (strlen($q) &gt; 0)<br />
{<br />
$hint=&#8221;";<br />
for($i=0; $i&lt;count($a); $i++)<br />
{<br />
if (strtolower($q)==strtolower(substr($a[$i],0,strlen($q))))<br />
{<br />
if ($hint==&#8221;")<br />
{<br />
$hint=$a[$i];<br />
}<br />
else<br />
{<br />
$hint=$hint.&#8221; , &#8220;.$a[$i];<br />
}<br />
}<br />
}<br />
}</p>
<p>// Set output to &#8220;no suggestion&#8221; if no hint were found<br />
// or to the correct values<br />
if ($hint == &#8220;&#8221;)<br />
{<br />
$response=&#8221;no suggestion&#8221;;<br />
}<br />
else<br />
{<br />
$response=$hint;<br />
}</p>
<p>//output the response<br />
echo $response;<br />
?&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS link rollover class change</title>
		<link>http://alexyz.com/css-link-rollover-class-change/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-link-rollover-class-change</link>
		<comments>http://alexyz.com/css-link-rollover-class-change/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 14:24:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=120</guid>
		<description><![CDATA[&#60;a onMouseOver=&#8221;this.className=&#8217;on&#8217;&#8221; onMouseOut=&#8221;this.className=&#8217;off&#8217;&#8221; href=&#8221;10_9_08 MEETING.mp3&#8243;&#62;October 9, 2008&#60;/a&#62;]]></description>
			<content:encoded><![CDATA[<p>&lt;a  <span style="color: #008000;">onMouseOver=&#8221;this.className=&#8217;on&#8217;&#8221; onMouseOut=&#8221;this.className=&#8217;off&#8217;&#8221;</span> href=&#8221;10_9_08 MEETING.mp3&#8243;&gt;October 9, 2008&lt;/a&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/css-link-rollover-class-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inline Javascript CSS properties</title>
		<link>http://alexyz.com/inline-javascript-css-properties/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=inline-javascript-css-properties</link>
		<comments>http://alexyz.com/inline-javascript-css-properties/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:55:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=7</guid>
		<description><![CDATA[Inline Javascript CSS properties dash replaced by capital &#60;a href=&#8221;#&#8221; onmouseover=&#8221;this.style.textDecoration=&#8217;none&#8217;&#8221; onmouseout=&#8221;this.style.textDecoration=&#8217;underline&#8217;&#8221; style=&#8221;color:#FFFFFF text-decoration:underline;&#8221; &#62; Details &#60;/a&#62;]]></description>
			<content:encoded><![CDATA[<p>Inline Javascript CSS properties</p>
<p>dash replaced by capital</p>
<p>&lt;a<br />
href=&#8221;#&#8221;<br />
<span style="color: #008000;">onmouseover=&#8221;this.style.textDecoration=&#8217;none&#8217;&#8221;<br />
onmouseout=&#8221;this.style.textDecoration=&#8217;underline&#8217;&#8221;</span><br />
style=&#8221;color:#FFFFFF text-decoration:underline;&#8221;<br />
&gt;<br />
Details<br />
&lt;/a&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/inline-javascript-css-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

