<?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>Learn Web Design Online</title>
	<atom:link href="http://learnwebdesignonline.com/feed" rel="self" type="application/rss+xml" />
	<link>http://learnwebdesignonline.com</link>
	<description>Resources for Learning Web Design and Web Development</description>
	<lastBuildDate>Sat, 27 Apr 2013 18:30:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>What is your site worth?</title>
		<link>http://learnwebdesignonline.com/what-is-your-site-worth</link>
		<comments>http://learnwebdesignonline.com/what-is-your-site-worth#comments</comments>
		<pubDate>Sat, 01 Dec 2012 05:26:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=602</guid>
		<description><![CDATA[Many people who own a website are interested in knowing what their site is worth.   If you Google &#8220;what is your site worth&#8221; or something similar, you will come across a whole bunch of web sites that claim to be able to calculate you site worth by entering your site&#8217;s web address. Well, these [...]]]></description>
				<content:encoded><![CDATA[<p>Many people who own a website are interested in knowing what their site is worth.   If you Google &#8220;what is your site worth&#8221; or something similar, you will come across a whole bunch of web sites that claim to be able to calculate you site worth by entering your site&#8217;s web address.</p>
<p>Well, these &#8220;site-worth calculators&#8221; are not very accurate.  To see just how accurate or off they are, put in the site &#8220;google.com&#8221; and see how much they say it is worth.   Last check, I typed in google.com on www.urlappraisal.net and it gave me $3,252.  Are you kidding?   Google.com worth a few thousand $$$&#8217;s.   Give me a break.   Anyone knows google.com just the domain name is worth much more than that.</p>
<p>I tried it on www.yourwebsitevalue.com and it gave me a more realistic answer of $1.6 billion. </p>
<p>Two calculators gave two extreme answer.</p>
<p>For those in the business of buying and selling sites, they typically will calculate a site worth as a multiple of its monthly revenue.  What that multiple is would be subject to debate.  I&#8217;ll let you google on that.</p>
<p>If you are really interested in selling a site.  Another way to determine worth is to actually put it up for sale and see what kinds of bids you are getting.  One place is flippa.com or one of the other nice places listed on article <em><a href="http://www.sitepoint.com/10-places-to-sell-your-web-site/">10 places to sell your website</a></em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/what-is-your-site-worth/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial on Creating Your First HTML 5 Page</title>
		<link>http://learnwebdesignonline.com/tutorial-on-creating-your-first-html-5-page</link>
		<comments>http://learnwebdesignonline.com/tutorial-on-creating-your-first-html-5-page#comments</comments>
		<pubDate>Sun, 14 Oct 2012 05:53:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=568</guid>
		<description><![CDATA[In this tutorial we will create a very simple HTML 5 page. We will keep it as simple as possible so that you can get something up and running quickly. HTML 5 is a significant change from HTML 4.  It comes with brand new tags and a new doctype plus more.   However older browsers [...]]]></description>
				<content:encoded><![CDATA[<p>In this tutorial we will create a very simple HTML 5 page. We will keep it as simple as possible so that you can get something up and running quickly.</p>
<p>HTML 5 is a significant change from HTML 4.  It comes with brand new tags and a new doctype plus more.   However older browsers that was in existence prior to HTML 5 will not know of these news tags.  Of course, we will want our page to be viewable on these older browser as well. Therefore there are various tricks and techniques that we have to employ in order to get our HTML 5 page to render on older browsers.</p>
<p>The easiest way to start is to start with an HTML 5 template that has all these techniques and best practices coded for you already.   HTML 5 Boilerplate is the popular template to use.  We will use this template as the skeleton for our HTML page.</p>
<p>1.  First download the latest HTML5 Boilerplate from <a href="http://html5boilerplate.com/">http://html5boilerplate.com/</a></p>
<p>In this tutorial we are using version 4.0.0.</p>
<p>2.  After you have downloaded and extracted the zip file into a new folder on your hard disk, you will see a bunch of files like the following&#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/html5-templatefiles.jpg"><img class="alignnone size-full wp-image-571" title="html5-templatefiles" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/html5-templatefiles.jpg" alt="" width="282" height="544" /></a></p>
<p>3.  The main file that we are interested in is index.html.   Open this file in your favorite text editor. (I&#8217;m using Dreamweaver).</p>
<p>4.  Note the new doctype is now the following&#8230;</p>
<p>&lt;!DOCTYPE html&gt;</p>
<p>This is the new doctype for HTML5.  If you see this, it means that the author intends for this to be an HTML 5 document.</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/html5-doctype.jpg"><img class="alignnone size-full wp-image-577" title="html5-doctype" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/html5-doctype.jpg" alt="HTML5 doctype" width="564" height="331" /></a></p>
<p>5.  Without changing any code, just test it by running the index.html file in your browser.   We are using Chrome for this viewing. As of this writing in October 2012, Chrome version 22 is the browser that supports the most features of the latest HTML5 specifications, according to <a href="http://html5test.com/results/desktop.html">HTM5Test.com</a>. That is why many web designers like to using Google Chrome during development.</p>
<p>You will see the following in the browser &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/first-html5-chrome.jpg"><img class="alignnone size-full wp-image-578" title="first-html5-chrome" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/first-html5-chrome.jpg" alt="First HTML5 page viewed in Chrome" width="418" height="241" /></a></p>
<p>which indicates that everything currently works.</p>
<p>You can say that this is your first &#8220;Hello World&#8221; HTML5 page.  Of course, we now want to start writing some code so that we can understand how all the pieces are put together.</p>
<p>6.  Let&#8217;s add a title to our page by typing in &#8220;Our First HTML5 Page&#8221; into the index.html file in between the &lt;title&gt; tags as shown&#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/add-title.jpg"><img class="alignnone size-full wp-image-579" title="add-title" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/add-title.jpg" alt="Add Page Title" width="512" height="192" /></a></p>
<p>This is known as the &#8220;Page Title&#8221;.  After saving the file and refreshing the browser, you should see that our page title shows up in the browser tab.</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/page-title-chrome.jpg"><img class="alignnone size-full wp-image-580" title="page-title-chrome" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/page-title-chrome.jpg" alt="Page Title Shown in Tab" width="396" height="193" /></a></p>
<p>7.  HTML5 Boilerplate intends for you to delete things from it that you do not need.  One of the things that it puts in near the bottom of the HTML file is a code snippet intended for Google Analytics.  Since we will not be using that in this example, we will delete it.  If you don&#8217;t know what Google Analytics is, then you don&#8217;t need it.</p>
<p>Delete the code as that is marked as shown&#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/delete-google-analytics.jpg"><img class="alignnone size-full wp-image-581" title="delete-google-analytics" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/delete-google-analytics.jpg" alt="Delete Google Analytics Code" width="768" height="442" /></a></p>
<p>If you save file and view in browser, you will see that the deletion had no effect.</p>
<p>8.  Let&#8217;s make the background color be a pale gray.   Styling information is done in CSS.  And if you are using HTML5, you would be using CSS3 (as opposed to CSS2).   The CSS code is found in the main.css file within the css folder.  You can see that our index.html file links to this css file via the link tag shown below &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/html-link-css.jpg"><img class="alignnone size-full wp-image-582" title="html-link-css" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/html-link-css.jpg" alt="HTML links to CSS file" width="508" height="227" /></a></p>
<p>8.  Now open up the main.css file in your editor and look for the section that says &#8220;Author&#8217;s custom styles&#8221; &#8212; that&#8217;s for us.</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/add-first-css.jpg"><img class="alignnone size-full wp-image-583" title="add-first-css" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/add-first-css.jpg" alt="Add first CSS rule" width="342" height="483" /></a></p>
<p>9.  We write our first CSS rule into that section.   The code shown above highlighted by the red rectangle is the code that we just added.  This tells the browser to set the background color of our page to be light gray (which is the hexidecimal color #CCCCCC).  Save changes in the CSS file and refresh browser.   Our page now has gray background.</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/gray-background.jpg"><img class="alignnone size-full wp-image-585" title="gray-background" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/gray-background.jpg" alt="Gray background" width="418" height="247" /></a></p>
<p>10.  Now you may have noticed that the index.html page also links to another css file called normalize.css.</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/normalize-css.jpg"><img class="alignnone size-full wp-image-584" title="normalize-css" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/normalize-css.jpg" alt="Normalize css" width="508" height="227" /></a></p>
<p>11. You don&#8217;t have to worry about that css file.  Not all browsers may use the same default styling for a HTML page.  Hence, one technique is to use CSS to make the styling consistent among browsers .   This is known &#8220;normalizing the styles&#8221; and the code for doing that is known as &#8220;css reset code&#8221;.  That is what is contained within normalize.css.</p>
<p>12.  Also within normalize.css, you will see this code &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/block-display-new-tags.jpg"><img class="alignnone size-full wp-image-586" title="block-display-new-tags" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/block-display-new-tags.jpg" alt="Set block display for new tags" width="250" height="384" /></a></p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/block-display-new-tags.jpg"></a>This is to allow older non-HTML5 browser to work well with the new HTML5 tags (some of which are article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, summary).</p>
<p>The CSS contain styling to make these new tags display as &#8220;block style&#8221; tags.   Shown above is the &#8220;display&#8221; property with the &#8220;block&#8221; value for these new tags.  Don&#8217;t worry about what that means for now since this is your first  HTML5 page.  We have to take things one step at a time.  Just know that the above CSS code is needed to make older browser work with the new HTML5 tags.</p>
<p>13.  Next, let&#8217;s give some definition to our content area containing the text by adding some borders and a different content background color to set it apart from the background color.  In the index.html file, we will add an &#8220;article&#8221; tag (one of the new HTML5 tags) around the text content as shown&#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/article-tags.jpg"><img class="alignnone size-full wp-image-587" title="article-tags" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/article-tags.jpg" alt="Article tags" width="423" height="200" /></a></p>
<p>Note that the starting tag (the first tag) is &lt;article&gt;</p>
<p>And the closing tag is &lt;/article&gt; with the extra slash at the end.  That is how most tags work.  They come in pairs with a starting tag and a closing tag.  Save changes and refresh browser.</p>
<p>14.  You will see no effect until we add styling rule for the article tag.  Let&#8217;s add the article CSS rule to the main.css file&#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/css-page-definition.jpg"><img class="alignnone size-full wp-image-588" title="css-page-definition" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/css-page-definition.jpg" alt="CSS Page definition" width="292" height="274" /></a></p>
<p>We set the width of our page to be 500 pixels with the line &#8230;</p>
<pre>width: 500px;</pre>
<p>The margin property has two values &#8230;</p>
<pre>margin: 20px auto</pre>
<p>The first value 20px represents the top and bottom margins of our page.  The second value represents the left and right margins of our page.  Since we set that to &#8220;auto&#8221;, it has the effect of making the page be centered horizontally across the browser.</p>
<p>Saving the file and running in browser, we get  &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/first-html5-page-centered.jpg"><img class="alignnone size-full wp-image-589" title="first-html5-page-centered" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/first-html5-page-centered.jpg" alt="First HTML5 page centered" width="727" height="235" /></a></p>
<p>15.  In CSS3, we can have rounded corners and drop shadows like &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/corners-drop-shadow1.jpg"><img class="alignnone size-full wp-image-592" title="corners-drop-shadow" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/corners-drop-shadow1.jpg" alt="Corners and Drop Shadows" width="619" height="127" /></a></p>
<p>by adding the following two lines to our article CSS rule as shown below &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/article-css-rule.jpg"><img class="alignnone size-full wp-image-593" title="article-css-rule" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/article-css-rule.jpg" alt="CSS rule for corners and drop shadows" width="302" height="144" /></a></p>
<p>For the <strong>border-radius</strong> property, we set the roundness to 8 pixels (the greater the value, the more rounded).</p>
<p>The first two values of the <strong>box-shadow</strong> property represents the horizontal and vertical offset respectively.  The third value is the amount of blur.  And the fourth value is the color of the shadow.</p>
<p>16. One last thing before we are done, the text content is too close to the left edge of the page.  Add a bit of padding around the article element by &#8230;.</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/padding-article.jpg"><img class="alignnone size-full wp-image-594" title="padding-article" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/padding-article.jpg" alt="Pad article" width="267" height="150" /></a></p>
<p>and we should get &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/10/after-padding.jpg"><img class="alignnone size-full wp-image-595" title="after-padding" src="http://learnwebdesignonline.com/wp-content/uploads/2012/10/after-padding.jpg" alt="After padding" width="608" height="149" /></a></p>
<p>Since  we had only specified one value for the padding property, it will use the 30 pixels as padding for the top, right, bottom, and left edges.</p>
<p>In this case, since all the properties of the article CSS rule is unique, it does not matter which order you place the properties in.  We just like putting the padding property where it was.</p>
<p>And that is your first HTML 5 page.</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/tutorial-on-creating-your-first-html-5-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List Drop Down Menu Examples</title>
		<link>http://learnwebdesignonline.com/drop-down-menu-examples</link>
		<comments>http://learnwebdesignonline.com/drop-down-menu-examples#comments</comments>
		<pubDate>Thu, 06 Sep 2012 04:50:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=560</guid>
		<description><![CDATA[It is not a problem building a basic horizontal menu, but building a horizontal menu with drop down item upon hover is a bit more challenging &#8212; especially if it is a complex multi-level menu system. Plus there are so many different ways of building them, from pure CSS menus to those that uses some [...]]]></description>
				<content:encoded><![CDATA[<p>It is not a problem building a basic horizontal menu, but building a horizontal menu with drop down item upon hover is a bit more challenging &#8212; especially if it is a complex multi-level menu system.</p>
<p>Plus there are so many different ways of building them, from pure CSS menus to those that uses some jQuery.  Making them cross-browser compatible is another chore.</p>
<p>There are so many drop down menu examples out there, that you might want to look through a few to find one the most closely matches what you are looking for and then see how it works.</p>
<p>Here is a list of some drop down menu example (listed in no particular order).</p>
<ul>
<li><a href="http://www.alistapart.com/articles/dropdowns">SuckerFish</a> &#8211; AListApart.com</li>
<li><a href="http://www.htmldog.com/articles/suckerfish/dropdowns/">Son of SuckerFish</a> &#8211; HTMLDog</li>
<li><a href="http://users.tpg.com.au/j_birch/plugins/superfish/">SuperFish</a> -</li>
<li><a href="http://net.tutsplus.com/tutorials/html-css-techniques/how-to-create-a-drop-down-nav-menu-with-html5-css3-and-jquery/">How to Create a drop-down nav menu with HTML5, CSS3, and JQuery</a> &#8211; tutsplus.com</li>
<li><a href="http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm">Smooth Navigation Menu</a> &#8211; dynamicdrive.com</li>
<li><a href="http://www.hv-designs.co.uk/2009/02/17/sliding-jquery-menu/">Sliding JQuery Menu</a> &#8211; hv-designs.co.uk</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/drop-down-menu-examples/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When to use &#8220;em&#8221; and &#8220;i&#8221; tags for italics in HTML5</title>
		<link>http://learnwebdesignonline.com/when-use-em-i-tags-italics-html5</link>
		<comments>http://learnwebdesignonline.com/when-use-em-i-tags-italics-html5#comments</comments>
		<pubDate>Mon, 03 Sep 2012 14:34:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=558</guid>
		<description><![CDATA[In HTML5, both the &#60;i&#62; and the &#60;em&#62; tags are perfectly fine to use.  Both will italicize text with the same appearance. So when do you use the &#60;i&#62; versus the &#60;em&#62; tags? Use &#60;em&#62; when you want to place emphasize on particular words within a sentence that would change the meaning of the sentence. [...]]]></description>
				<content:encoded><![CDATA[<p>In HTML5, both the &lt;i&gt; and the &lt;em&gt; tags are perfectly fine to use.  Both will italicize text with the same appearance.</p>
<p>So when do you use the &lt;i&gt; versus the &lt;em&gt; tags?</p>
<p>Use &lt;em&gt; when you want to place emphasize on particular words within a sentence that would change the meaning of the sentence.  For example, these three sentences mean something slightly different &#8230;</p>
<p>Dogs are smart and <em>likable</em>.<br />
Dogs are <em>smart</em> and likable.<br />
<em>Dogs</em> are smart and likable.</p>
<p>And they are using &lt;em&gt; for the italics.</p>
<p>Use the &lt;i&gt; tag for general italicize text when you want to offset italicized text from the rest of the non-italicized text.  Or when text is in a different tone.</p>
<p>HTML5 W3C says to use &lt;i&gt; for text &#8230;</p>
<blockquote><p>&#8220;in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text&#8221;</p></blockquote>
<p>To convey importance, use &lt;strong&gt; instead of &lt;em&gt;.</p>
<p>See also the <a href="http://learnwebdesignonline.com/bold-with-b-versus-strong-tags-in-html5">use of &lt;b&gt; and &lt;strong&gt;</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/when-use-em-i-tags-italics-html5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bold with b versus strong tags in HTML5</title>
		<link>http://learnwebdesignonline.com/bold-with-b-versus-strong-tags-in-html5</link>
		<comments>http://learnwebdesignonline.com/bold-with-b-versus-strong-tags-in-html5#comments</comments>
		<pubDate>Mon, 03 Sep 2012 14:21:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=554</guid>
		<description><![CDATA[Some of you may have been doing web design long enough to hear the instruction of not to use the &#60;b&#62; tag and to only use the &#60;strong&#62; tag for bolding text. Well, in HTML5, the &#60;b&#62; tag is a perfectly legitimate tag to use.  And so is the &#60;strong&#62; tag.  So when to use [...]]]></description>
				<content:encoded><![CDATA[<p>Some of you may have been doing web design long enough to hear the instruction of not to use the &lt;b&gt; tag and to only use the &lt;strong&gt; tag for bolding text.</p>
<p>Well, in HTML5, the &lt;b&gt; tag is a perfectly legitimate tag to use.  And so is the &lt;strong&gt; tag.  So when to use &lt;b&gt; tag and when to use &lt;strong&gt;?</p>
<p>Both will bold text with appearance being the same.  However, the semantic meaning of the two are different.</p>
<p>Use &lt;b&gt; when you want bolded text for cosmetic reasons and when you do not intent to give the text any stronger weight in voice.   <a href="http://www.w3.org/TR/html5/the-b-element.html#the-b-element">HTML5 W3C</a> says to use &lt;b&gt; &#8230;</p>
<blockquote><p>&#8220;for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood&#8221;</p></blockquote>
<p>Use &lt;strong&gt; to give text a stronger voice along with a bolded appearance.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/bold-with-b-versus-strong-tags-in-html5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make Internet Explorer 8 support media queries</title>
		<link>http://learnwebdesignonline.com/internet-explorer-8-support-media-queries</link>
		<comments>http://learnwebdesignonline.com/internet-explorer-8-support-media-queries#comments</comments>
		<pubDate>Mon, 03 Sep 2012 07:14:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=548</guid>
		<description><![CDATA[CSS media queries are supported by most modern browsers including Internet Explorer 9.  However, Internet Explorer 8 does not know of CSS media queries.  But you still can make it support them by a couple of Javascripts. 1.  respond.js response.js is a lightweight polyfill which adds support only for min-width and max-width, which is what [...]]]></description>
				<content:encoded><![CDATA[<p>CSS media queries are supported by most modern browsers including Internet Explorer 9.  However, Internet Explorer 8 does not know of CSS media queries.  But you still can make it support them by a couple of Javascripts.</p>
<h2>1.  respond.js</h2>
<p>response.js is a lightweight polyfill which adds support only for min-width and max-width, which is what most people need anyways.  It adds support to IE6-8.   <a href="https://github.com/scottjehl/Respond">Available on github</a>.</p>
<h2>2. css3-mediaqueries.js</h2>
<p>If you require more robust support for media queries, then use this one which does not require any additional comments in your media queries because it transparently parse, test, and apply CSS media queries for IE5+, Firefox 1+ and Safari 2.   <a href="http://code.google.com/p/css3-mediaqueries-js/">Available on Google Code</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/internet-explorer-8-support-media-queries/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media query syntax</title>
		<link>http://learnwebdesignonline.com/media-query-syntax</link>
		<comments>http://learnwebdesignonline.com/media-query-syntax#comments</comments>
		<pubDate>Mon, 03 Sep 2012 06:58:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=544</guid>
		<description><![CDATA[Media queries are conditional CSS rules. For example, the following written in the CSS stylesheet &#8230; @media screen and (min-width:768px) { h1 { font-size: 2em; }  } means to apply the h1 CSS rule only if viewed on screen media that is greater than 768 pixels. Or you can write the following in the link [...]]]></description>
				<content:encoded><![CDATA[<p>Media queries are conditional CSS rules.</p>
<p>For example, the following written in the CSS stylesheet &#8230;</p>
<pre>@media screen and (min-width:768px) {
   h1 { font-size: 2em; } 
}</pre>
<p>means to apply the h1 CSS rule only if viewed on screen media that is greater than 768 pixels.</p>
<p>Or you can write the following in the link tag in the head of the HTML document &#8230;</p>
<pre>&lt;link rel="stylesheet" href="normal.css" media="screen and (min-width:768px)" /&gt;</pre>
<p>Or can use it in an @import statement as in &#8230;</p>
<pre>@import url("normal.css") screen and (min-width: 768px);</pre>
<h2>Device features that we can test for using media queries</h2>
<p>Besides min-width, there is also max-width that we can test for.  In addition to &#8220;width&#8221;, we can also test for the following features (some of which accepts the &#8221;min-&#8221; and &#8220;max-&#8221; prefix) &#8230;</p>
<ul>
<li>width</li>
<li>height</li>
<li>device-width</li>
<li>device-height</li>
<li>orientation</li>
<li>aspect-ratio</li>
<li>device-aspect-ratio</li>
<li>color</li>
<li>resolution</li>
</ul>
<p>and others.</p>
<p>For example, we can write &#8230;</p>
<pre>@media screen and (max-device-width: 480px) and (orientation: landscape) { ... }</pre>
<h2>Notable widths for media queries</h2>
<p>When creating responsive web design, some notable widths to keep in mind when using such media queries are &#8230;</p>
<p>320px &#8211; typical width of smartphone in portrait mode</p>
<p>480px &#8211; typical width of smartphone in landscape mode</p>
<p>600 pixels &#8211; typical width of small tablets (Kindle and Nook) in portrait mode</p>
<p>768 pixels &#8211; typical width of 10 inch tablets such as the iPAD in portrait mode</p>
<p>1024 pixels &#8211; typical width of iPads in landscape mode, some laptops, netbooks, and desktops</p>
<p>1200 pixels &#8211; full widescreen displays that are typically only available on laptops and desktops.</p>
<p>This article was written in 2012, so these numbers may have changed as devices increase in resolution.</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/media-query-syntax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use of meta viewport for mobile devices</title>
		<link>http://learnwebdesignonline.com/use-of-meta-viewport-for-mobile-devices</link>
		<comments>http://learnwebdesignonline.com/use-of-meta-viewport-for-mobile-devices#comments</comments>
		<pubDate>Mon, 03 Sep 2012 06:28:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=539</guid>
		<description><![CDATA[To understand the purpose of this tag, we have to understand what mobile browsers are doing when they are rendering sites.  Let&#8217;s say that a mobile browser is trying to render a site that has a fixed width of 1000 pixels.   And say, the mobile screen is only 320 pixels wide (in portrait orientation). [...]]]></description>
				<content:encoded><![CDATA[<p>To understand the purpose of this tag, we have to understand what mobile browsers are doing when they are rendering sites.  Let&#8217;s say that a mobile browser is trying to render a site that has a fixed width of 1000 pixels.   And say, the mobile screen is only 320 pixels wide (in portrait orientation).  The mobile browser would draw the site on a 1000 pixel canvas and then apply a zoom so that it fits within 320.  The effect is that the page width fits onto the screen.</p>
<p>This is fine if the site is a fixed-width site.  Albeit, the text will be super tiny and the user will have to pinch to zoom in to read the parts they want to read.</p>
<p>However, if you are designing a responsive site that resizes and adapts to the width of the device, we should then apply the meta viewport tag.</p>
<p>A meta viewport tag such as &#8230;</p>
<p><strong>&lt;meta name=&#8221;viewport&#8221; content=&#8221;320&#8243;&gt;</strong></p>
<p>tells the mobile browser to draw on a canvas of 320 pixel rather than 1000 pixel.   We choose 320 pixels since our mobile device screen is 320 pixels.</p>
<p>The problem is that the site will not always be viewed on this device of 320 pixels wide.  Perhaps the user rotates the device to landscape mode and it become 480 pixels wide.  The site will be viewed by a whole bunch of other devices (ipad, tablets, laptops, desktops) that are capable of much more than 320 pixels.</p>
<p>So instead of a fixed number like 320, we write &#8230;</p>
<p><strong>&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width&#8221;&gt;</strong></p>
<p>Now the mobile browser will draw on a canvas with a width the same size as the width of the screen.</p>
<p>As that is the case, we can also specify that it performs no zooming by setting an initial-scale of 1.</p>
<p><strong>&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;</strong></p>
<p>Like all meta tags, it should be in the head section of the HTML.</p>
<p>It can also be written equivalently as &#8230;</p>
<p><strong>&lt;meta name=&#8221;viewport&#8221; content=&#8221;initial-scale=1.0, width=device-width&#8221;&gt;</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/use-of-meta-viewport-for-mobile-devices/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizable Images that does not break out of container</title>
		<link>http://learnwebdesignonline.com/resizable-images-that-does-not-break-out-of-container</link>
		<comments>http://learnwebdesignonline.com/resizable-images-that-does-not-break-out-of-container#comments</comments>
		<pubDate>Sun, 02 Sep 2012 06:56:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=535</guid>
		<description><![CDATA[It is great when we create pages that resizes with the browser. However, it is not so great when an user resizes the browser to be smaller than an image. Typically, the image would remain at its fixed width and break out of its container. This can be fixed by applying &#8230; img { max-width: [...]]]></description>
				<content:encoded><![CDATA[<p>It is great when we create <a href="http://learnwebdesignonline.com/page-resize-with-browser">pages that resizes with the browser</a>.  However, it is not so great when an user resizes the browser to be smaller than an image.   Typically, the image would remain at its fixed width and break out of its container.</p>
<p>This can be fixed by applying &#8230;</p>
<p>img { max-width: 100%; }</p>
<p>to the image.   This constrains the maximum width of the image to be the width of its container.  If the container resizes smaller, the image will accordingly resize smaller to fit the container.  If the container resizes larger than the image width, the image will just be as big as its native width.  </p>
<p>The image will not scale up, unless you do &#8230;</p>
<p>img { width: 100%; }</p>
<p>which in this case would cause the image to be always at the width of its container.</p>
<p>This is known as fluid image.  It not only work for images, but works for other media as well.  Often designers will use the rule &#8230;</p>
<p>img, embed, object, video { max-width: 100%; }</p>
<p>Alternatively, instead of resizing the image, one can hide any portion of the image that falls outside its container by &#8230;</p>
<p>img { overflow: hidden; }</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/resizable-images-that-does-not-break-out-of-container/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizable Faux Columns works with responsive page</title>
		<link>http://learnwebdesignonline.com/resizable-faux-columns-works-responsive-page</link>
		<comments>http://learnwebdesignonline.com/resizable-faux-columns-works-responsive-page#comments</comments>
		<pubDate>Sun, 02 Sep 2012 06:36:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://learnwebdesignonline.com/?p=527</guid>
		<description><![CDATA[In a previous tutorial from which we now continue, we made an responsive page that resizes as the browser resizes. But as you will note, the column lengths are uneven due to uneven content&#8230; This can be remedied using a the &#8220;faux column&#8221; technique that uses a background image of the form &#8230; This background [...]]]></description>
				<content:encoded><![CDATA[<p>In a <a href="http://learnwebdesignonline.com/page-resize-with-browser">previous tutorial</a> from which we now continue, we made an responsive page that resizes as the browser resizes.  But as you will note, the column lengths are uneven due to uneven content&#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/09/page-resize1.jpg"><img src="http://learnwebdesignonline.com/wp-content/uploads/2012/09/page-resize1.jpg" alt="" title="page-resize1" width="472" height="327" class="alignnone size-full wp-image-520" /></a></p>
<p>This can be remedied using a the &#8220;<a href="http://www.alistapart.com/articles/fauxcolumns/">faux column</a>&#8221; technique that uses a background image of the form &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/09/bgimg1.jpg"><img src="http://learnwebdesignonline.com/wp-content/uploads/2012/09/bgimg1.jpg" alt="" title="bgimg1" width="671" height="14" class="alignnone size-full wp-image-528" /></a></p>
<p>This background is to be applied to the page wrapper and repeated down in the y-direction.</p>
<p>However, you have to make this image really wide (say 3000 pixels) to accomodate those people who stretch their browsers with really wide monitors.</p>
<p>And then apply this background image as follows &#8230;</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/09/resizable-column-split.jpg"><img src="http://learnwebdesignonline.com/wp-content/uploads/2012/09/resizable-column-split.jpg" alt="" title="resizable-column-split" width="440" height="337" class="alignnone size-full wp-image-530" /></a></p>
<p>The trick is use the background x-position a percentage that matches the column split percentage.</p>
<p>Here is how it looks&#8230;.</p>
<p><a href="http://learnwebdesignonline.com/wp-content/uploads/2012/09/resizable-faux-columns.jpg"><img src="http://learnwebdesignonline.com/wp-content/uploads/2012/09/resizable-faux-columns.jpg" alt="" title="resizable-faux-columns" style="max-width:100%;" class="alignnone size-full wp-image-529" /></a></p>
<p>And it will look the same even if you resize the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://learnwebdesignonline.com/resizable-faux-columns-works-responsive-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
