<?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>iBlog random &#187; website</title>
	<atom:link href="http://blog.zurka.us/tag/website/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zurka.us</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 02 Aug 2011 17:22:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Make Your Titles Dynamic with PHP</title>
		<link>http://blog.zurka.us/make-your-titles-dynamic-with-php/</link>
		<comments>http://blog.zurka.us/make-your-titles-dynamic-with-php/#comments</comments>
		<pubDate>Tue, 26 May 2009 15:25:00 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=938</guid>
		<description><![CDATA[When developing your website, if you want to rank well in search engines it is crucial that you use different titles for every sub-page you&#8217;ve got online. This is because these search engines (Google, MSN etc) love your titles and categorize your site based on them. This is good for SEO. This is a simple [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fmake-your-titles-dynamic-with-php%252F&title=Make+Your+Titles+Dynamic+with+PHP&desc=When+developing+your+website%2C+if+you+want+to+rank+well+in+search+engines+it+is+crucial+that+you+use+different+titles+for+every+sub-page+you%27ve+got+online.+This+is+because+these+search+engines+%28Google%2C&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>When developing your website, if you want to <strong>rank well</strong> in search engines it is crucial that you use <strong>different titles for every sub-page</strong> you&#8217;ve got online. This is because these search engines (Google, MSN etc) <strong>love your titles</strong> and categorize your site based on them. This is <strong>good for SEO</strong>.</p>
<p>This is a simple thing to accomplish using PHP but it really is very effective. I will put dumb text into them but you should use titles rich with keywords related to your niche.</p>
<pre class="brush: php">
$title = &#039;Welcome to our website!&#039;;
if (key($_REQUEST) == &#039;register&#039;) { $title = &#039;Register now&#039;; }
if (key($_REQUEST) == &#039;404&#039;) { $title = &#039;Error 404: The page is unavailable&#039;; }
if (key($_REQUEST) == &#039;about&#039;) { $title = &#039;Who we are, what we do&#039;; }
if (key($_REQUEST) == &#039;news&#039;) { $title = &#039;Recent news&#039;; }
</pre>
<p>This would work if you are using urls like yoursite.com/?register, ?news etc. What it does is set a variable <strong>$title</strong> which will include the text your define according to the page we are watching. Now we need to display it in our browser.</p>
<pre class="brush: html">
&lt;head&gt;
    &lt;title&gt;&lt;?= $title; ?&gt; - Your Company Name&lt;/title&gt;
&lt;/head&gt;
</pre>
<p>Pretty easy, isn&#8217;t it?</p>
<p>Oh and today I&#8217;ve found a <a href="http://waka.us/nvyzbr"><strong>FREE</strong> product</a> that helps you make some money with google, all you have to pay is less then $3 for shipping and handling and they mail it to you. The offer is only valid for the US though. <a href="http://waka.us/nvyzbr">Click here</a> if you are interested. It can do no harm if you&#8217;re serious about making some money online and $3 really isn&#8217;t something you could not afford!</p>
<p>Have swing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/make-your-titles-dynamic-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Have an Opaque Text on a Transparent Background</title>
		<link>http://blog.zurka.us/how-to-have-an-opaque-text-on-a-transparent-background/</link>
		<comments>http://blog.zurka.us/how-to-have-an-opaque-text-on-a-transparent-background/#comments</comments>
		<pubDate>Fri, 15 May 2009 14:56:17 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[opacity]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=632</guid>
		<description><![CDATA[This is what I&#8217;m going to show you how to do: This is Kakashi from the Naruto anime. It&#8217;s a nice effect that can be used for many things, for a nice gallery or something. You could combine this with some JS, add a hover effect to the picture and have it display the caption. [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fhow-to-have-an-opaque-text-on-a-transparent-background%252F&title=How+to+Have+an+Opaque+Text+on+a+Transparent+Background&desc=This+is+what+I%27m+going+to+show+you+how+to+do%3A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09This+is+Kakashi+from+the+Naruto+anime.%0D%0A%09%0D%0A%09%0D%0A%0D%0A%0D%0AIt%27s+a+nice+effect+that+can+be+used+for+many+things%2C+for+a+nice+gallery+or+something.+You+coul&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>This is what I&#8217;m going to show you how to do:</p>
<div style="width: 300px; height: 224px; position: relative;">
<div style="position: absolute; bottom: 0px; _bottom: 4px; width: 100%; background: transparent url('http://zurka.us/bg_overlay_black.png') repeat scroll 0 0; font-family: verdana; font-size: 11px;">
<div style="color: #fff; margin: 10px; text-align: center; display: block; position: relative; z-index: 1;">This is Kakashi from the Naruto anime.</div>
</p></div>
<p>	<img src="http://www.quizilla.com/user_images/K/KA/KAK/kakashihatake1226/1158375681_resKAKASHI.jpg" width="300" />
</div>
<p>It&#8217;s a nice effect that can be used for many things, for a nice gallery or something. You could combine this with some JS, add a hover effect to the picture and have it display the caption.</p>
<p><em>edit: <a href="http://www.theodin.co.uk/">theodin</a> posted a comment with a link to this kind of effect, check it out at <a href="http://buildinternet.com/live/boxes/">buildinternet.com</a></em></p>
<p>This is a pretty simple trick that works in different browsers except for older IE versions I think (because IE seems to hate transparent png&#8217;s). Btw, <a href="http://www.ripie6.com/">RIP, IE6</a>.</p>
<p>Let me show you the code and then explain how it works:</p>
<pre class="brush: html">
&lt;div style=&quot;width: 300px; height: 224px; position: relative;&quot;&gt;
    &lt;div style=&quot;position: absolute; bottom: 0px; _bottom: 4px; width: 100%; background: transparent url(&#039;http://zurka.us/bg_overlay_black.png&#039;) repeat scroll 0 0; font-family: verdana; font-size: 11px;&quot;&gt;
        &lt;div style=&quot;color: #fff; margin: 10px; text-align: center; position: relative; z-index: 1;&quot;&gt;This is Kakashi from the Naruto anime.&lt;/div&gt;
    &lt;/div&gt;
    &lt;img src=&quot;http://www.quizilla.com/user_images/K/KA/KAK/kakashihatake1226/1158375681_resKAKASHI.jpg&quot; width=&quot;300&quot; /&gt;
&lt;/div&gt;
</pre>
<p>So basically what we are doing is enclose our image in a relatively positioned DIV element. Inside this element we create another DIV element, absolutely positioned. We stick it on the bottom of it&#8217;s parents div, so it goes displayed on the bottom (we could position it on the top if wanted). The background of this div is a semi-transparent black PNG image, 1x1px (http://zurka.us/bg_overlay_black.png). This is our black box, the content holder.</p>
<p>Now what we need to do is add our text to the box. Inside the box we create another DIV, give it a 10px margin (this way it has some space around it), style the text and put it over the other layers with z-index.</p>
<p>And that&#8217;s it, we have it done. It&#8217;s a simple HTML + CSS effect that I tried to get using different methods (like css opacity and stuff) but didn&#8217;t manage to replicate.</p>
<p>Original image: <a href="http://www.quizilla.com/user_images/K/KA/KAK/kakashihatake1226/1158375681_resKAKASHI.jpg">Kakashi at Quizilla</a></p>
<p>So once again, easy peasy!<br />
Have swing, thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/how-to-have-an-opaque-text-on-a-transparent-background/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Check if A Number is Even or Odd with PHP</title>
		<link>http://blog.zurka.us/check-number-even-odd-php/</link>
		<comments>http://blog.zurka.us/check-number-even-odd-php/#comments</comments>
		<pubDate>Thu, 14 May 2009 15:04:29 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[webmaster]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=921</guid>
		<description><![CDATA[I&#8217;m going to show you a very simple method for finding out if a number is even or odd in php. You could use this for many things but usually this is mostly used when you have a, let&#8217;s say, table and you want to color the background of every second row differently. The php [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fcheck-number-even-odd-php%252F&title=Check+if+A+Number+is+Even+or+Odd+with+PHP&desc=I%27m+going+to+show+you+a+very+simple+method+for+finding+out+if+a+number+is+even+or+odd+in+php.+You+could+use+this+for+many+things+but+usually+this+is+mostly+used+when+you+have+a%2C+let%27s+say%2C+table+and+y&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>I&#8217;m going to show you a very simple method for finding out if a number is even or odd in php. You could use this for many things but usually this is mostly used when you have a, let&#8217;s say, table and you want to color the background of every second row differently.</p>
<p>The php code looks like this:</p>
<pre class="brush: php">
if ($number % 2) {
    echo &#039;The number is even&#039;;
} else {
    echo &#039;The number is odd&#039;;
}
</pre>
<p>In real life we would use something like this:</p>
<pre class="brush: php">
$i = 0;
while ($something = mysql_fetch_assoc($query)) {
    echo &#039;&lt;div style=&quot;padding: 5px; background: #&#039; . ($i % 2 ? &#039;eee&#039; : &#039;ddd&#039;) . &#039;;&quot;&gt;Content&lt;/div&gt;&#039;;
    $i++;
}
</pre>
<p>And of course, likewise you could check if a number is divisible by another number using this:</p>
<pre class="brush: php">
if ($number % 3 == 0) {
    echo &#039;The number is divisible by 3&#039;;
} else {
    echo &#039;The number is not divisible by 3&#039;;
}
</pre>
<p>Easy peasy, as always!<br />
Have swing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/check-number-even-odd-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create A Sliding AD Showing Up From The Bottom *upd 15.06.2009*</title>
		<link>http://blog.zurka.us/create-sliding-ad-showing-from-bottom/</link>
		<comments>http://blog.zurka.us/create-sliding-ad-showing-from-bottom/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 19:57:31 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=896</guid>
		<description><![CDATA[Did you ever want to do something like this? An ad showing from the bottom of the screen? Well, today I&#8217;m going to show you how to do it, without the need to spend $47 Yay! We are going to do reproduce this by using mootools and some styling. Again, it&#8217;s an easy thing to [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fcreate-sliding-ad-showing-from-bottom%252F&title=Create+A+Sliding+AD+Showing+Up+From+The+Bottom+%2Aupd+15.06.2009%2A&desc=Did+you+ever+want+to+do+something+like+this%3F+An+ad+showing+from+the+bottom+of+the+screen%3F%0A%0AWell%2C+today+I%27m+going+to+show+you+how+to+do+it%2C+without+the+need+to+spend+%2447+%3AD+Yay%21%0A%0AWe+are+going+to+do+rep&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>Did you ever want to do something like <a href="http://ultimatefooterad.com/v/index.php">this</a>? An ad showing from the bottom of the screen?</p>
<p>Well, today I&#8217;m going to show you how to do it, without the need to spend $47 <img src='http://blog.zurka.us/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Yay!</p>
<p>We are going to do reproduce <a href="http://blog.zurka.us/wp-content/uploads/2009/04/slidingad1.html">this</a> by using <a href="http://www.mootools.net">mootools</a> and some styling. Again, it&#8217;s an easy thing to make.</p>
<p>Let&#8217;s start by including mootools in our document and writing a little script that will basically do all the job that need to be done. This goes into the &lt;head&gt; of our html file.</p>
<pre class="brush: html">&lt;script src=&quot;inc/mootools-1.2.1-core.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre>
<pre class="brush: js">
&lt;script&gt;
    window.addEvent(&#039;domready&#039;, function() {
        slideUp = new Fx.Tween(&#039;footerad&#039;, { property: &#039;height&#039;, duration: 1000 });
        (function(){ slideUp.start(0, 90) }).delay(&#039;1000&#039;);
        $(&#039;closead&#039;).addEvent(&#039;click&#039;, function() {
            $(&#039;footerad&#039;).tween(&#039;height&#039;, 0);
        });
});
&lt;/script&gt;
</pre>
<p>Let&#8217;s analyse the script:</p>
<ol>
<li>When the DOM is ready, execute the following function:</li>
<li>slideUp is the variable in which we &#8216;store&#8217; the motion of our sliding div. We give a tween effect to our element with &#8216;footerad&#8217; as ID</li>
<li>Next, we make the function execute after 1 second (1000ms) and make it raise the height from 0px to 90px. This is going to be the height of our slider on the bottom</li>
<li>Now, we add a button that will close the ad if clicked. We could do something more complicated here by adding some code that would write a cookie so the ad doesn&#8217;t show up again if the user reloads the page but we don&#8217;t need it, we want to bug the user, right?</li>
</ol>
<p>Now that&#8217;s it with the script. All we need to do now is create or DIV element (if you go check out the page at the top of this post you will see they use an IFRAME.. I&#8217;m not going to use it).</p>
<p>Now, I think that if you don&#8217;t understand how DIV&#8217;s work you won&#8217;t understand a shit here. Feel free to ask for further explanation in the comments. Oh and I will style the divs directly here, without a css file, so we see how it works.</p>
<pre class="brush: html">
&lt;div id=&quot;footerad&quot; style=&quot;display: block; position: fixed; bottom: 0; left: 0; width: 100%; height: 0;&quot;&gt;
    &lt;div style=&quot;position: relative; left: 0; bottom: 0;&quot; id=&quot;positioned_relatively&quot;&gt;
        &lt;div style=&quot;background: #002949; border-top: solid 3px #3b8ccb; position: absolute; top: 15px; left: 0; width: 100%; height: 75px; color: white;&quot; id=&quot;background_color&quot;&gt;
            &lt;img src=&quot;http://server.zurka.us/images/RSS-Blue.png&quot; style=&quot;position: absolute; left: 20px; top: -15px;&quot; id=&quot;RSS_icon&quot; /&gt;
            &lt;div style=&quot;margin: 10px 0 5px 105px;&quot; id=&quot;text_div&quot;&gt;
                &lt;div style=&quot;font-size: 15px; margin-bottom: 7px; font-family: &#039;trebuchet ms&#039;, arial, sans-serif;&quot;&gt;This is a test, the form is not working!&lt;/div&gt;
                &lt;div style=&quot;font-size: 12px;&quot;&gt;Name: &lt;input type=&quot;text&quot; name=&quot;name&quot; style=&quot;margin-right: 10px;&quot; /&gt; Email: &lt;input type=&quot;text&quot; name=&quot;email&quot; style=&quot;margin-right: 10px;&quot; /&gt; &lt;input type=&quot;submit&quot; value=&quot;Subscribe!&quot; /&gt;&lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div style=&quot;position: absolute; right: 5px; top: 0; font-size: 11px;&quot; id=&quot;close_button&quot;&gt;
            &lt;a href=&quot;#&quot; id=&quot;closead&quot;&gt;[close]&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</pre>
<ol>
<li>We give the <strong>first DIV</strong> the <strong>ID &#8216;footerad&#8217;</strong>, since that&#8217;s the id we told the script to show when the dom is ready. We style it so it will cover <strong>100% of the width</strong>, will be <strong>0px high</strong> (the script is going to increase the height with a nice movement) and we make it stay <strong>fixed at the bottom of the page</strong>. The background of this element is not set, so it will be transparent.</li>
<li>The <strong>second DIV</strong> stays there only because we need a <strong>relatively positioned</strong> element so we can absolute position other elements inside it.</li>
<li>The <strong>third div</strong> we give a background color and a border on the top, we position <strong>absolutely</strong>, <strong>0px from the left so it sticks left and 15px from the top</strong> so we have some transparent background on top of it (the RSS or whatever icon will look like it&#8217;s coming out of the slider)</li>
<li>Now it&#8217;s time to position our <strong>rss icon</strong>. We position it <strong>absolutely </strong>and move it <strong>20px from the left and -15px from the top</strong> (this is why we positioned the third div 15px from the top).</li>
<li>We make a <strong>fifth div</strong> with the text and our form. We could position it absolutely but I decided to position it using <strong>margins</strong>. So we move it <strong>10px from the top and 105px from the left</strong> of the screen (because there&#8217;s the icon)</li>
<li>We <strong>close this div and make a new one, positioned absolutely, 5px from the right and 0px from the top</strong>, this will be out <strong>close button</strong>. We make a link and give it the ID &#8216;closead&#8217;</li>
<li>We close every div tag. It&#8217;s <strong>done</strong></li>
</ol>
<p>Now, as I said, I maybe made a complete confusion writing this. If you don&#8217;t understand how this works ask and I will help you out. If you don&#8217;t care how this works just copy/paste the code and play a bit with the styling. It&#8217;s not hard to understand even if you don&#8217;t read my messy writing.</p>
<p>What&#8217;s different from <a href="http://ultimatefooterad.com/v/index.php">this</a> is, that they use a wider image on the left and everything seems more centered. You could do the same by positioning the icon further from the left and then giving your text div a bigger margin on the left.</p>
<p>Have a nice day and go drink some beer with the $47 you just saved!</p>
<p><a href="http://blog.zurka.us/wp-content/uploads/2009/04/slidingad1.html">Live example</a></p>
<p><em>As IE does NOT support the use of the CSS position: fixed; property, I found a workaround that works in all browsers but which I didn&#8217;t test with other content on the page. The demo is still using the old code, displaying well in all the browsers except IE. This code will work there as well.</em></p>
<pre class="brush: html">
&lt;body style=&quot;margin: 0; padding: 0;&quot;&gt;
    &lt;div style=&quot;position: relative; width: 100%; height: 100%;&quot;&gt;
        &lt;div id=&quot;footerad&quot; style=&quot;display: block; position: absolute; bottom: 0; left: 0; width: 100%; height: 0;&quot;&gt;
            &lt;div style=&quot;position: relative; left: 0; bottom: 0;&quot;&gt;
                &lt;div style=&quot;position: absolute; background: #002949; border-top: solid 3px #3b8ccb; top: 15px; left: 0; width: 100%; height: 75px; color: white;&quot;&gt;
                    &lt;img src=&quot;http://server.zurka.us/images/RSS-Blue.png&quot; style=&quot;position: absolute; left: 20px; top: -15px;&quot; /&gt;
                    &lt;div style=&quot;margin: 10px 0 5px 105px;&quot;&gt;
                        &lt;div style=&quot;font-size: 15px; margin-bottom: 7px; font-family: &#039;trebuchet ms&#039;, arial, sans-serif;&quot;&gt;This is a test, the form is not working!&lt;/div&gt;
                        &lt;div style=&quot;font-size: 12px;&quot;&gt;Name: &lt;input type=&quot;text&quot; name=&quot;name&quot; style=&quot;margin-right: 10px;&quot; /&gt; Email: &lt;input type=&quot;text&quot; name=&quot;email&quot; style=&quot;margin-right: 10px;&quot; /&gt; &lt;input type=&quot;submit&quot; value=&quot;Subscribe!&quot; /&gt;&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div style=&quot;position: absolute; right: 5px; top: 0; font-size: 11px;&quot;&gt;
                    &lt;a href=&quot;#&quot; id=&quot;closead&quot;&gt;[close]&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/body&gt;
</pre>
<p>All that changes is that we create a dummy div with a 100% height and position the ad absolutely on it&#8217;s bottom. Should work well with all the content as well, but as I said, I didn&#8217;t test it.</p>
<p>However, I suggest you using this with caution and parse it only if the useragent shows up to be an IE. Create two different CSS files and use something like this:</p>
<pre class="brush: html">
&lt;style type=&#039;text/css&#039;&gt;@import &#039;all.css&#039;;&lt;/style&gt;
&lt;!--[if IE]&gt;
&lt;link
 href=&#039;ie_win.css&#039;
 type=&#039;text/css&#039;
 media=&#039;screen&#039;&gt;
&lt;![endif]--&gt;
</pre>
<p>Have swing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/create-sliding-ad-showing-from-bottom/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MooTools</title>
		<link>http://blog.zurka.us/mootools/</link>
		<comments>http://blog.zurka.us/mootools/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:41:35 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=871</guid>
		<description><![CDATA[I started reading some tutorials and books about this very nice and simple javascript framework, with which you can do supercool things in the browser. It&#8217;s actually pretty simple to use for simple effects and gets complex as you try to do magic with it. After reading a chapter about it&#8217;s Tween function, I decided [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fmootools%252F&title=MooTools&desc=I+started+reading+some+tutorials+and+books+about+this+very+nice+and+simple+javascript+framework%2C+with+which+you+can+do+supercool+things+in+the+browser.%0A%0AIt%27s+actually+pretty+simple+to+use+for+simple+e&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>I started reading some tutorials and books about this very nice and simple <a href="http://www.mootools.net/">javascript framework</a>, with which you can do supercool things in the browser.</p>
<p>It&#8217;s actually pretty simple to use for simple effects and gets complex as you try to do magic with it.</p>
<p>After reading a chapter about it&#8217;s Tween function, I decided to make a simple menu with a simple fade animation. It&#8217;s really something for beginners, since this is what I am, a beginner.</p>
<p>We are going to do a menu with some links that change their position and color with a simple animation when we hover them. Easy peasy. <a href="http://blog.zurka.us/wp-content/uploads/2009/04/moo1.html">Check the result here</a>.</p>
<p><strong>First:</strong> we start the document as always, with a doctype (I still use the transitional xhtml) and include the framework.</p>
<pre class="brush: html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
   &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;sl&quot; lang=&quot;sl&quot;&gt;
    &lt;head&gt;
        &lt;title&gt;MooTools&lt;/title&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=windows-1250&quot; /&gt;
        &lt;script src=&quot;inc/mootools-1.2.1-core.js&quot;&gt;&lt;/script&gt;
</pre>
<p><strong>Second:</strong> we add an event to our <em>window</em> element which is going to start as soon as the DOM (Document Object Model &#8211; the browser) is ready (it won&#8217;t wait all the other elements to load [big, fat images, advertisments etc]).</p>
<pre class="brush: js">
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
            window.addEvent(&#039;domready&#039;, function() {

             });
&lt;/script&gt;
</pre>
<p><strong>Third:</strong> when the DOM will be ready we want it to get all the links with a specified class (I made it this way, you could easily make all the links in a specified UL or any other element behave the same way) and apply a special behaviour to them.</p>
<pre class="brush: js">
                $$(&#039;a.click&#039;).addEvents({

                    &#039;mouseover&#039;: function() {
                        this.morph({
                            &#039;padding-left&#039;: &#039;20&#039;,
                            &#039;color&#039;: [&#039;#1E0CB5&#039;, &#039;#94BB06&#039;]
                        })
                    },

                    &#039;mouseout&#039;: function() {
                        this.morph({
                          &#039;padding-left&#039;: &#039;10&#039;,
                          &#039;color&#039;: [&#039;#94BB06&#039;, &#039;#1E0CB5&#039;]
                        })
                    }

                });
</pre>
<p>As you can see, MooTools is very simple and easily understandable. Using <strong>$$(&#8216;a.click&#8217;)</strong> we create an <strong>array of all the links</strong> in our page with the <em>class=&#8221;click&#8221;</em> attribute.</p>
<p>Next, we tell the function to <a href="http://mootools.net/docs/Fx/Fx.Morph">Morph</a> the link when the mouse hovers the link and when the mouse leaves the link. We add 10px of padding on the left and change the color to green when the mouse passes over the link and restore the default values when it leaves. Easy.</p>
<p>Still in the head we apply some styles to our menu.</p>
<pre class="brush: css">
        &lt;style&gt;
            a { color: #1E0CB5; }

            #menu { list-style: none; margin: 0; padding: 0; }
            #menu li { width: 150px; background: #eee; }
            #menu li a { padding: 4px 10px; display: block; }
        &lt;/style&gt;
</pre>
<p>And now we complete our simple page.</p>
<pre class="brush: html">
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h3&gt;Something nice&lt;/h3&gt;
        &lt;ul id=&quot;menu&quot;&gt;
            &lt;li&gt;&lt;a class=&quot;click&quot; href=&quot;#&quot;&gt;link&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a class=&quot;click&quot; href=&quot;#&quot;&gt;link&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a class=&quot;click&quot; href=&quot;#&quot;&gt;link&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a class=&quot;click&quot; href=&quot;#&quot;&gt;link&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>That&#8217;s it, a nice animated menu to use on your website! If you want to see the whole code in one piece, check the source of the <a href="http://blog.zurka.us/wp-content/uploads/2009/04/moo1.html">live example</a>.</p>
<p>Hope I was clear enough.</p>
<p>I&#8217;ll write again with a new example of what I&#8217;ve learnt!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use PHP To Display Page Content (LMAWT part 2)</title>
		<link>http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/</link>
		<comments>http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 15:27:16 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=826</guid>
		<description><![CDATA[If you missed the previous posts, you can read the Introduction and First part to catch with us. What we are going to do today is make our links work and display the content depending on what link we click. First let&#8217;s make our links go live. In our final result of part 1, our [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fuse-php-to-display-page-content-lmawt-part-2%252F&title=Use+PHP+To+Display+Page+Content+%28LMAWT+part+2%29&desc=If+you+missed+the+previous+posts%2C+you+can+read+the+Introduction+and+First+part+to+catch+with+us.%0A%0AWhat+we+are+going+to+do+today+is+make+our+links+work+and+display+the+content+depending+on+what+link+we&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>If you missed the previous posts, you can read the <a href="http://blog.zurka.us/lets-make-a-website-together/">Introduction</a> and <a href="http://blog.zurka.us/lets-make-a-website-together/">First part</a> to catch with us.</p>
<p>What we are going to do today is <strong>make our links work</strong> and display the content depending on what link we click.</p>
<p>First let&#8217;s make our links go live. In our <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index41.html">final result</a> of part 1, our links were dead. To make a link work, we must use this syntax:</p>
<pre class="brush: html">
&lt;a href=&quot;./&quot;&gt;Home&lt;/a&gt;
&lt;a href=&quot;./?news&quot;&gt;News&lt;/a&gt;
&lt;a href=&quot;./?contact&quot;&gt;Contact&lt;/a&gt;
*** notice we use ?news for the news, ?contact for the contact page etc, will be explained later ***
</pre>
<p>So let&#8217;s change all of our links to this. Our final result will be <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index51.html">this</a>. As you can see, the links are underlined and you can click on them. But if you click on them you will notice nothing really changes on the page, except for the URL in the browser.. that&#8217;s because we need our PHP code that will &#8220;read&#8221; the URL and display the content that comes along.</p>
<p>Let&#8217;s see the PHP code that we put into our <strong>#main-content</strong> div. To load different contents depending on what click we link on, we are going to use the <a href="http://php.net/switch" target="_blank">switch</a> function, which is not hard to understand, is very useful and works fast!</p>
<pre class="brush: php">
&lt;?php
switch (key($_REQUEST)) {

	case &#039;news&#039;:
		echo &#039;We will display our news here&#039;;
	break;

	case &#039;members&#039;:
		echo &#039;This will be the member list&#039;;
	break;

	// we continue like this for all our links
	// and finish with the default statement

	default:
	echo &#039;Welcome to my first website&#039;;

}
?&gt;
</pre>
<p>As I said before, put this code between inside your #main-content DIV.</p>
<p>&lt;div id=&#8221;main-content&#8221;&gt;<br />
&lt;?php switch () {} ?&gt;<br />
&lt;/div&gt;</p>
<p><strong>What will this piece of code do?</strong><br />
It will display different contents based on the page we are on. If, for example, we will click on our &#8220;news&#8221; link, the URL will change to &#8220;domain.com/?<strong>news</strong>&#8221; and the content that will be shown will be &#8220;<strong>news.php</strong>&#8220;, because of the &#8216;case&#8217; we wrote. In this case, what comes after the question mark in the URL is called a &#8220;query string&#8221; and we will work with these.</p>
<p>In this example we are using the &#8220;key($_REQUEST)&#8221; but we could change this to react to something like &#8220;domain.com/?page=news&#8221; and in this case we would use a different switch. Tell me if you want to know about it and I&#8217;ll write an example for this.</p>
<p>Anyway, check what we <a href="http://blog.zurka.us/wp-content/uploads/2009/01/page1.php">accomplished</a> now. We made our first working website, we could actually put whatever we would like inside, we are done. The content is changing and everything is working fine.</p>
<p>Any questions? Feel free to ask!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Design A Simple Layout In HTML and CSS (LMAWT, part 1)</title>
		<link>http://blog.zurka.us/design-simple-layout-html-css/</link>
		<comments>http://blog.zurka.us/design-simple-layout-html-css/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 00:15:36 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[webmaster]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=797</guid>
		<description><![CDATA[Sorry for not writing recently but my laptop decided to stop working and actually it really did stop working. It has some motherboard problems again I guess, keeps dying and the keys in the last row aren&#8217;t working (except for y, b and n). So it sucks, can&#8217;t really write anything. Luckily I&#8217;ve got a [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fdesign-simple-layout-html-css%252F&title=Design+A+Simple+Layout+In+HTML+and+CSS+%28LMAWT%2C+part+1%29&desc=Sorry+for+not+writing+recently+but+my+laptop+decided+to+stop+working+and+actually+it+really+did+stop+working.+It+has+some+motherboard+problems+again+I+guess%2C+keeps+dying+and+the+keys+in+the+last+row+a&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>Sorry for not writing recently but my laptop decided to stop working and actually it really did stop working. It has some motherboard problems again I guess, keeps dying and the keys in the last row aren&#8217;t working (except for y, b and n). So it sucks, can&#8217;t really write anything. Luckily I&#8217;ve got a very kind girlfriend who lent me her laptop so I could work. &#8220;Work&#8221;.</p>
<p>As I wrote in the first &#8220;lesson&#8221; (<a href="http://blog.zurka.us/lets-make-a-website-together/">Let&#8217;s Make A Website Together</a>), this post will be about <strong>designing a simple interface</strong> using <strong>HTML</strong> and <strong>CSS</strong>. I already wrote everything but unfortunately it went lost along with my laptop. Sucks.</p>
<p>So what we&#8217;ll be doing is something like the image below. Nothing complicated as you can see.. Let&#8217;s keep it simple for the beginning.</p>
<p><img src="http://blog.zurka.us/wp-content/uploads/2009/01/page1.gif" alt="Sample page" title="Sample page" width="490" height="400" class="alignnone size-full wp-image-798" /></p>
<p>As you can see form the image, the page will be composed by <strong>7 elements</strong>, having the <em>#container</em> keep our other elements &#8220;tight&#8221; and centering the page. We will have <em>two #menus</em> (I will make those menus simple, links only, without the use of ordered/unordered lists), a <em>#header</em> with the logo, a <em>#sidebar</em> with the latest news and our favorite links, the <em>#content</em> where we will load our content and the <em>#footer</em> with the copyright notice or our email, whatever we want.</p>
<p>So let&#8217;s start at the beginning. We need to open our new document, write some lines in and save it as index.php. I usually write the same lines in every file I start and save it, so it is there in the folder, waiting to be updated. And I <strong>save my work</strong> after everything I make, even for just a smaller change.. I got used to this because once the electricity went off and I lost like 2 hours of work. After all the CTRL+S combo is not that hard to hit and it can for sure spare a lot of bad mood (or nerves).</p>
<p>Okay so let&#8217;s see the first few lines of code:</p>
<pre class="brush: html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
    &lt;head&gt;
        &lt;title&gt;My First Website&lt;/title&gt;
        &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=windows-1250&quot; /&gt;
            &lt;meta name=&quot;keywords&quot; content=&quot;this, is, my, first, website&quot; /&gt;
            &lt;meta name=&quot;description&quot; content=&quot;Creating my first website by scratch. It&#039;s a simple one but good for learning.&quot; /&gt;
    &lt;/head&gt;
    &lt;body&gt;

    &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>As you can see, I start my project like every webpage should start, with the <a href="http://www.w3schools.com/tags/tag_DOCTYPE.asp"><strong>DOCTYPE declaration</strong></a>, so keep the first two lines somewhere you can easily find them and copy/paste them into your new projects. We then open the <strong>HEAD</strong> part of the site in which we put our page <strong>title</strong>, <strong>charset</strong>, <strong>styles</strong>, <strong>meta keywords</strong>, the <strong>meta description</strong> and everything that we have to load before the rest of the page. For the charset I usually use windows-1250 encoding since I&#8217;m from Slovenia and I use special charactes like č, š and ž and I don&#8217;t really like UTF-8. The meta keywords and description are used by the search engines which get an idea about what our site will be talking about and rank you higher in the results. The description will be shown in the search result of a search engine. It is the <em>text</em> that you see <em>under the site&#8217;s title</em>.</p>
<p><img src="http://blog.zurka.us/wp-content/uploads/2009/01/google1.gif" alt="google" title="google" width="545" height="81" class="alignnone size-full wp-image-799" /></p>
<p>In the head I also load my <strong>style.css</strong> file which will include the (guess what?) style of the page. It is best to load an external file since it gets <em>stored into the cache of the browser</em> and helps the <em>site load faster</em>.</p>
<p>As you can see I open and close the BODY tag and then close the HTML tag. I save the file and I go make myself a sandwich. It&#8217;s time to start working. From now on I will write the code that comes between the body tags.</p>
<p>I will now put down the HTML part, explain it and then go to the CSS part, put it down, explain and confront the results I get. The HTML part is going to be without styles and since the DIV is a block element, all of our site elements will be listed one under the other, in the hierarchy I put them in the code. Let&#8217;s start.</p>
<pre class="brush: html">
&lt;div id=&quot;container&quot;&gt;

    &lt;div id=&quot;top-menu&quot;&gt;
        home | contant | sitemap
    &lt;/div&gt;

    &lt;div id=&quot;header&quot;&gt;
        Our big fat logo comes here
    &lt;/div&gt;

    &lt;div id=&quot;main-menu&quot;&gt;
        home | news | members | whatever | link
    &lt;/div&gt;

    &lt;div id=&quot;main-content&quot;&gt;
        Something really nice here, this will be our content soon.
    &lt;/div&gt;

    &lt;div id=&quot;sidebar&quot;&gt;
        My friends:
    &lt;/div&gt;

    &lt;div id=&quot;footer&quot;&gt;
        &amp;copy; 2009 OurSiteName.Domain
    &lt;/div&gt;

&lt;/div&gt;
</pre>
<p>I created a file with these lines in it so you can see <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index1.html">our result</a>. It&#8217;s basically nothing but 6 lines of text written one under the other which we are now going to style using Cascading Style Sheets.</p>
<p>I start by <em>wrapping everything in the #container</em> div, to which I will define a specific <strong>width</strong>, <strong>position</strong> on the page and everything else I want to style inside of it. Since the layout will be simple the only thing you need to understand is what will happen to the #content and #sidebar divs. We will <strong>float</strong> them one next to the other. Floats are a bit hard to understand since they can get pretty tricky and we very often have problems with them because of the incompatibility between web browsers (it&#8217;s not an incompability between them but they render the site in a different way), like for example Firefox and Internet Explorer. I have to admit that I lost my nerves lots of times because of IE, mainly because of IE6, but I can see nobody actually cares about IE6 nowadays since it&#8217;s being replaced by IE7.. But I still see many users use it so I think we should take it into consideration as well.. But it&#8217;s a lot of work, including hacks and so on, we are not gonna do this in this lesson. Maybe when we finish the site, we are going to look into tweaking it some more.</p>
<p>Let&#8217;s start with the styling. I will do this step by step, so you can see or results as we keep on going on. We put the following code in the style.css that we put in the same folder as our index.php file.</p>
<pre class="brush: css">
/* here I style the body, select the font size and family and background color */
body { font-family: arial; font-size: 12px; background: #f8f8f8; }

#container {
width: 800px;
position: relative;
margin: 0 auto;
background: white;
border: solid 1px black;
}
</pre>
<p>What I do to the container is define the width of 800px, &#8220;paint&#8221; it in white, give it a simple solid border and <a href="http://www.w3schools.com/Css/pr_class_position.asp">position</a> it relatively and center it using the <a href="http://www.w3schools.com/CSS/css_margin.asp">MARGIN</a> property. <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index21.html">See the result</a> by yourself. Please note that I&#8217;m using html files for now since I didn&#8217;t install apache and php on this laptop and can&#8217;t use .php files locally. And if you check the source code of that file you will see that I am putting the styling directly into it and not into the style.css file. It works the same but reloads every time so the loading time takes longer but it really doesn&#8217;t matter with such small codes. Anyway, you put it into the style.css file and you&#8217;ll be fine.</p>
<pre class="brush: css">
#top-menu {
background: #55bdda;
text-align: right;
padding: 5px 10px;
}

#header {
background: #3a8195;
text-align: center;
font-size: 20px;
color: white;
padding: 40px 0;
}

#main-menu {
background: #244f5c;
color: white;
padding: 5px 10px;
}
</pre>
<p>With this I&#8217;ve styled the top part of the site, including as you can see the top menu, header and main menu. Every property is self explanatory except for the <strong><a href="http://www.w3schools.com/CSS/css_padding.asp">padding</a></strong>, which I&#8217;ll try to explain now. The padding is basically the space that you make between the border of the box and the content of the same box. The values of this property are like this: padding: TOP RIGHT BOTTOM LEFT. Why did I write only two values then? Because if we leave them out, they will get the same value as their opposite. So in that statement I say the padding should be 5px 10px 5px 10px.</p>
<p>EXAMPLE<br />
<img src="http://blog.zurka.us/wp-content/uploads/2009/01/padding1.gif" alt="padding and margin example" /></p>
<p>Since I know I explained this in a shitty way, I suggest you read the <a href="http://www.w3schools.com/CSS/css_padding.asp">w3schools</a> article about padding. But the main point is that the padding will <strong>push your text to the inside of it&#8217;s container</strong>. See the <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index31.html">result</a> here.</p>
<p>Now that we styled the head we move on to the body and footer. Let&#8217;s see the code.</p>
<pre class="brush: css">
#main-content {
width: 550px;
padding: 10px;
background: #cee1e6;
float: left;
}

#sidebar {
background: #007394;
color: white;
padding: 10px;
float: left;
width: 210px;
}

#footer {
clear: both;
background: #163741;
color: white;
text-align: right;
padding: 5px 10px;
}
</pre>
<p>Since I will be floating the content and sidebar, I have to use a little bit of mathematics now. At least that&#8217;s how I do it. What we do now is <strong>define the width of the sidebar</strong>. Let&#8217;s say that we want it <strong>230px wide</strong> so we have 570px for our content. Do make the content of the sidebar clearer, we are going to give our box the <strong>padding</strong> property, so we move the text into the center a little. We are goingo to apply a <strong>10px padding on each side</strong>, so we will define the width to <strong>230px &#8211; 10px*2 = 210px</strong> and <strong>float it to the left</strong>.<br />
Now we have 570px for our main content. But since we want this box to be clear as well, we apply the same padding as to te sidebar. So here, we again have <strong>570px &#8211; 20px = 550px</strong> od width. We <strong>float</strong> this box <strong>to the left</strong> as well.</p>
<p>Now that we have floated the content and sidebar, we kinda messed up with the layout and it&#8217;s &#8220;path&#8221;. If we now style the footer without taking the floats in consideration, the footer will come out messed up. Lifted a bit or maybe even in a position that it&#8217;s not what it should be. To save ourself from this mess we must <strong><a href="http://www.w3schools.com/Css/pr_class_clear.asp">clear</a></strong> the footer. To clear means telling the box that we don&#8217;t want it to be touching other elements according to the value that we clear it with. In this case we clear it with a <strong>both</strong> value, which means it won&#8217;t touch anything on the left and on the right side. This makes it slide down and fix itself like it should.</p>
<p>Check our today&#8217;s <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index41.html">final result</a> here.</p>
<p>One last thing, make you have a good host, not some terrible fly by night operation. You can find the <a href="http://www.webhostingsearch.com/cheap-web-hosting.php">best cheap web hosting plans</a> and if you&#8217;re a super serious person, a <a href="http://www.webhostingsearch.com/dedicated-server.php">dedicated server</a>.</p>
<p>I&#8217;m sorry if anything wasn&#8217;t clear, I&#8217;m sleepy and my head will explode but I had to write it. I will go through it again today and correct the mistakes and make things clearer.</p>
<p>If there&#8217;s any question on your mind don&#8217;t hesitate to ask it, I will be happy to reply you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/design-simple-layout-html-css/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Simple SEO tips by Google</title>
		<link>http://blog.zurka.us/simple-seo-tips-by-google/</link>
		<comments>http://blog.zurka.us/simple-seo-tips-by-google/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 22:07:08 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=709</guid>
		<description><![CDATA[If you are new to Search Engine Optimization, you can read what Google engineers suggests you to do, to improve your website ranking. The guide is made for all webmasters of all levels and for sites of any kind, so it will definitely fit your case. Read more on their Webmaster Central Blog or download [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fsimple-seo-tips-by-google%252F&title=Simple+SEO+tips+by+Google&desc=If+you+are+new+to+Search+Engine+Optimization%2C+you+can+read+what+Google+engineers+suggests+you+to+do%2C+to+improve+your+website+ranking.+The+guide+is+made+for+all+webmasters+of+all+levels+and+for+sites+o&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>If you are new to Search Engine Optimization, you can read what Google engineers suggests you to do, to improve your website ranking. The guide is made for all webmasters of all levels and for sites of any kind, so it will definitely fit your case.</p>
<p>Read more on their <a href="http://googlewebmastercentral.blogspot.com/2008/11/googles-seo-starter-guide.html">Webmaster Central Blog</a> or download the <a href="http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf">PDF file</a> directly.</p>
<p>Remember that optimizing your site will bring you more free traffic.. which means more earnings if you advertise on your site!</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/simple-seo-tips-by-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color meaning</title>
		<link>http://blog.zurka.us/color-meaning/</link>
		<comments>http://blog.zurka.us/color-meaning/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 14:36:04 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[webmaster]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=536</guid>
		<description><![CDATA[Did you ever wonder what color should your website be? Depending on what the content of the site is, different colors will suit best. I give you a list of colors, their meaning and what the human brain feels when it comes in contact with them. Red Red is the color associated with energy, strength, [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%253A%252F%252Fblog.zurka.us%252Fcolor-meaning%252F&title=Color+meaning&desc=Did+you+ever+wonder+what+color+should+your+website+be%3F+Depending+on+what+the+content+of+the+site+is%2C+different+colors+will+suit+best.+I+give+you+a+list+of+colors%2C+their+meaning+and+what+the+human+brai&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>Did you ever wonder what color should your website be? Depending on what the content of the site is, different colors will suit best. I give you a list of colors, their meaning and what the human brain feels when it comes in contact with them.</p>
<p><strong style="color: red;">Red</strong></p>
<p>Red is the color associated with <strong>energy, strength, power, determination</strong> as well as <strong>passion, desire</strong>, and <strong>love</strong>.</p>
<p>Red brings text and images to the <strong>foreground</strong>. Use it as an accent color to <strong>stimulate</strong> people to make <strong>quick decisions</strong>; it is a perfect color for ‘<strong>Buy Now</strong>’ or ‘<strong>Click Here</strong>’ buttons on Internet banners and websites. In advertising, red is often used to evoke <strong>erotic feelings</strong> (red lips, red nails, red-light districts, ‘Lady in Red’, etc). This color is also commonly associated with energy, so you can use it when <strong>promoting energy drinks, games, cars</strong>, items related to <strong>sports</strong> and high <strong>physical activity</strong>.</p>
<p><strong>Light red</strong> represents joy, sexuality, passion, sensitivity, and love.<br />
<strong>Pink</strong> signifies romance, love, and friendship. It denotes feminine qualities and passiveness.<br />
<strong>Brown</strong> suggests stability and denotes masculine qualities.<br />
<strong>Reddish-brown</strong> is associated with harvest and fall.</p>
<p><span id="more-536"></span></p>
<p><strong style="color: orange;">Orange</strong></p>
<p>Orange combines the energy of red and the happiness of yellow. It is associated with <strong>joy, sunshine</strong>, and the <strong>tropics</strong>. Orange represents <strong>enthusiasm, fascination, happiness, creativity, determination, attraction, success, encouragement</strong>, and <strong>stimulation</strong>.</p>
<p>To the human eye, orange is a very hot color, so it gives the <strong>sensation of heat</strong>. Nevertheless, orange is not as aggressive as red. Orange <strong>increases oxygen supply to the brain</strong>, produces an <strong>invigorating effect</strong>, and stimulates <strong>mental activity</strong>. It is highly accepted among <strong>young people</strong>. As a citrus color, orange is associated with <strong>healthy food</strong> and stimulates <strong>appetite</strong>. Orange is the color of fall and harvest. In heraldry, orange is symbolic of <strong>strength and endurance</strong>.</p>
<p>Orange has very high visibility, so you can use it to <strong>catch attention and highlight</strong> the most important elements of your design. Orange is very effective for <strong>promoting food products</strong> and <strong>toys</strong>.</p>
<p><strong>Gold</strong> evokes the feeling of prestige. The meaning of gold is illumination, wisdom, and wealth. Gold often symbolizes high quality.</p>
<p><strong style="color: yellow;">Yellow</strong></p>
<p>Yellow is the color of <strong>sunshine</strong>. It’s associated with <strong>joy, happiness, intellect,</strong> and <strong>energy</strong>.</p>
<p>Yellow produces a <strong>warming effect</strong>, arouses <strong>cheerfulness</strong>, stimulates <strong>mental activity</strong>, and generates <strong>muscle energy</strong>. Yellow is often associated with <strong>food</strong>. Bright, <strong>pure yellow is an attention getter</strong>, which is the reason taxicabs are painted this color. Yellow is seen before other colors when placed against black; this combination is often used to issue a warning. In heraldry, yellow indicates <strong>honor</strong> and <strong>loyalty</strong>.</p>
<p>Use yellow to evoke <strong>pleasant, cheerful feelings</strong>. You can choose yellow to promote <strong>children’s products</strong> and items related to <strong>leisure</strong>. Yellow is very effective for <strong>attracting attention</strong>, so use it to highlight the most important elements of your design.</p>
<p><strong>Light yellow</strong> is associated with intellect, freshness, and joy.</p>
<p><strong style="color: green;">Green</strong></p>
<p>Green is the color of <strong>nature</strong>. It symbolizes <strong>growth, harmony, freshness,</strong> and <strong>fertility</strong>. Green has strong emotional correspondence with <strong>safety</strong>. Dark green is also commonly associated with <strong>money</strong>.</p>
<p>Green has great <strong>healing power</strong>. It is the <strong>most restful color for the human eye</strong>; it can improve vision. Green suggests <strong>stability</strong> and <strong>endurance</strong>. Green, as opposed to red, means safety; it is the color of free passage in road traffic.</p>
<p>Use green to indicate safety when advertising drugs and medical products. Green is directly related to nature, so you can use it to <strong>promote ‘green’ products</strong>. Dull, darker green is commonly associated with money, the financial world, banking, and Wall Street.</p>
<p><strong>Aqua</strong> is associated with emotional healing and protection.<br />
<strong>Olive</strong> green is the traditional color of peace.</p>
<p><strong style="color: navy;">Blue</strong></p>
<p>Blue is the color of the <strong>sky and sea</strong>. It is often associated with <strong>depth and stability</strong>. It symbolizes <strong>trust, loyalty, wisdom, confidence, intelligence, faith, truth,</strong> and <strong>heaven</strong>.</p>
<p>Blue is considered <strong>beneficial to the mind and body</strong>. It slows human metabolism and <strong>produces a calming effect</strong>. Blue is strongly associated with <strong>tranquility and calmness</strong>.</p>
<p>You can use blue to <strong>promote products and services related to cleanliness</strong> (water purification filters, cleaning liquids, vodka), <strong>air and sky</strong> (airlines, airports, air conditioners), <strong>water and sea</strong> (sea voyages, mineral water). As opposed to emotionally warm colors like red, orange, and yellow; blue is linked to consciousness and intellect. Use blue to <strong>suggest precision</strong> when promoting high-tech products.</p>
<p>Blue is a masculine color; according to studies, it is <strong>highly accepted among males</strong>. <strong>Dark blue</strong> is associated with depth, expertise, and stability.</p>
<p><strong>Light blue</strong> is associated with health, healing, tranquility, understanding, and softness.<br />
<strong>Dark blue</strong> represents knowledge, power, integrity, and seriousness.</p>
<p><strong style="color: purple;">Purple</strong></p>
<p>Purple combines the stability of blue and the energy of red. Purple is associated with <strong>royalty</strong>. It symbolizes <strong>power, nobility, luxury, and ambition</strong>. It conveys <strong>wealth and extravagance</strong>. Purple is associated with <strong>wisdom, dignity, independence, creativity, mystery, and magic</strong>.</p>
<p>According to surveys, almost 75 percent of pre-adolescent children prefer purple to all other colors. Purple is a very rare color in nature; some people consider it to be artificial.</p>
<p><strong>Light purple</strong> is a good choice for a feminine design. You can use bright purple when promoting children’s products.</p>
<p><strong>Light purple</strong> evokes romantic and nostalgic feelings.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/color-meaning/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

