<?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>WebDea &#187; code</title>
	<atom:link href="http://www.webdea.com/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webdea.com</link>
	<description>Converting PSD 2 HTML, xHTML, CSS, Wordpress, Joomla, Drupal</description>
	<lastBuildDate>Tue, 07 Dec 2010 12:48:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Inline-Block vs Float</title>
		<link>http://www.webdea.com/inline-block-vs-float.html</link>
		<comments>http://www.webdea.com/inline-block-vs-float.html#comments</comments>
		<pubDate>Tue, 07 Dec 2010 12:48:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[inline-block]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=472</guid>
		<description><![CDATA[<a href="http://www.webdea.com/inline-block-vs-float.html"><img src="http://farm2.static.flickr.com/1225/5135829284_db359720a2_m.jpg" alt="Inline-Block vs Float to know" align="left"></a>Inline-block and float seems to be alike at first sight. What is more, both these statements can be used to accomplish the same visual effect. You can use them both to create a whole range of other commonly used web patterns. Let’s try to find the differences that help you to make the right choice. ]]></description>
			<content:encoded><![CDATA[<p> Inline-block and float seems to be alike at first sight. What is more, both these statements can be used to accomplish the same visual effect. You can use them both to create a horizontal flow instead of standard vertical flow as well as to create navigation, product lists, image lists and a whole range of other commonly used web patterns. So, what is the best choice for you? </p>
<p>Let’s try to find the differences that help you to make the right choice. </p>
<h3>Horizontal Positioning </h3>
<p><img src="http://farm5.static.flickr.com/4017/5135230689_cae3bc8fd4_m.jpg" alt="Inline-Block vs Float to remember" align="right"></p>
<p>This can be called one of the most important differences. You can position inline block children with parents using the text-align property. In other words, a clock-property container can be centered even without knowing its horizontal dimensions. For example, we can take pagination that needs to be centered. Quantity of pages doesn’t matter. You just can align all children in normal source order to the right of the container. </p>
<p>Floats can’t be centered. While left-floated elements are quite similar to normal inline-block elements, right-floated elements will change order. Thus, you will get the first element at the far right, the second elements will be on the left of the first element, etc. Some may object that this is quite useful behaviour. However, it is not always wanted. The advantage of floats is that you can float children in separate directions avoiding direct influence on its peers. For example, you can float the “previous” link to the far left, the “next” link – to the far right, while the number navigation remains to be centered. That can’t be done with inline-block elements. </p>
<h3>Flow</h3>
<p>Inline-block elements aren’t taken out of the flow. In other words, you don’t need clearfix class, abuse of overflow:hidden or some other trick to make the parent aware of its children. Quite useful. </p>
<p>On the other hand, floats are taken out of the document flow. It can cause a lot of trouble, but still you can float text around an image. Thus, you can clear floats forcing elements to the next visual line. It can’t be done with inline-block elements. You can use the ::after pseudo-element in combination with a line feed to force the following elements down, but it won’t work. </p>
<p>ul li:nth-child(3n)::after {content:&#8221;&#8211;fake enter&#8211;&#8221;;} </p>
<h3>The Baseline</h3>
<p><img src="http://farm5.static.flickr.com/4027/5135830454_b6650f920b_m.jpg" alt="Inline-Block vs Float for all" align="right"></p>
<p>Inline-block elements are positioned against the baseline of the text. Thus, you have more vertical control. In case an element breaks to the next line, you can be sure that it will never appear behind some of the previous elements. It will always start at the left-most side of its parent. </p>
<p>Floats align at the top and can also be used to hang behind a previous float. With a list of floats reaching the right side of the parent, the next element will be hitting the left-most side or the right side of a previous float. It can be quite useful in some situations. </p>
<h3>White-space</h3>
<p>The most important disadvantage of inline-block elements is that they, as other inline elements, take into account HTML white-space. Floats don’t have such a problem and it can influence your choice greatly. </p>
<p>As you can see there are some differences that help you to decide which method to use. It also depends on the situation. For example, if you need control over alignment, then inline-block is the best choice. In case you need more control over individual elements, you should use floats. </p>
<p><em>Reference: www.onderhond.com/blog/work/inline-block-vs-float</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/inline-block-vs-float.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE Meta Freeze Issues</title>
		<link>http://www.webdea.com/ie-meta-freeze.html</link>
		<comments>http://www.webdea.com/ie-meta-freeze.html#comments</comments>
		<pubDate>Tue, 30 Nov 2010 12:38:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[ie meta freeze]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[meta tag]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=464</guid>
		<description><![CDATA[<a href="http://www.webdea.com/ie-meta-freeze.html"><img src="http://farm5.static.flickr.com/4106/5135226381_02c6efe297_m.jpg" alt="IE Meta Freeze Issues to know" align="left"></a>The IE team provides some standartistas that should make our life easier as well s to avoid such problems in next IE releases. A new meta tag with the browser version the site was built for was introduced. It is a perfect solution for the IE team to make sure that if we render our documents in a specific version, these documents won’t break ever again.]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm2.static.flickr.com/1066/5135226907_90a6484714_m.jpg" alt="IE Meta Freeze Issues to remember" align="right" /> Being accused of complicating too many things in sites creating, the IE team provides some standartistas that should make our life easier as well as to help avoid such problems in next IE releases. A new meta tag with the browser version the site was built for was introduced.</p>
<p>Thus, newer browser versions will render documents according to the specs set with the referenced browser version in the meta tag. In other words, we just freeze web documents into a specific rendering mode of a browser version.</p>
<p>Here is quite simple syntax of this trigger:</p>
<p>&lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=8&#8243; /&gt;</p>
<h3>Advantages</h3>
<ul>
<li>It is a perfect solution for the IE team to make sure that if we render our documents in a specific version, these documents won’t break ever again. Thus, there are no worries about newer browser versions that can break your older documents. To upgrade documents for newer version you just need to change meta tag.</li>
<li>The era of conditional comments referring to five different versions of a single browser is ended. You have one file to fix the bugs that makes things easier.</li>
<li>All documents with no meta tag specified will get a default rendering. You also can render any version of the browser using special “edge” keyword. Thus, you can check rendering in all previous browser versions.</li>
</ul>
<h3>Drawbacks</h3>
<ul>
<li>In case you don’t have the meta tag set, the default rendering will revert to IE7 rendering. Thus, the additions to newer browser versions won&#8217;t work unless the meta tag is specified.</li>
<p><img src="http://farm2.static.flickr.com/1078/5135227473_a34d0391d2_m.jpg" alt="IE Meta Freeze Issues for all" align="right" /></p>
<li>Anyway, the newer versions of IE still should contain the correct rendering of earlier versions. That may lead to some to unacceptable proportions. Of course, you can work with a separate set of rendering rules, but they cay be buggy too making things rather confusing.</li>
<li>There is no good for people who have some other browser version than stated in the meta tag. Moreover, with updating their browsers often it can be a real problem.</li>
<li>In case other browser vendors don’t accept this, it can be just another IE specific hack.</li>
</ul>
<p>Some people can say that we should forget about unsavvy web developers and accept meta tag as something really great to live with. However, it is rather idealistic. Internet is not about web developers who build mean and slick websites. There is another big goal to achieve – web standards. Thus, IE can release its newer versions without breaking the web. Of course, meta tag is not a perfect solution, but perhaps, it is a good thing.</p>
<p><em>Reference: www.onderhond.com/blog/work/IE-meta-switch</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/ie-meta-freeze.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Headache</title>
		<link>http://www.webdea.com/css3-headache.html</link>
		<comments>http://www.webdea.com/css3-headache.html#comments</comments>
		<pubDate>Tue, 23 Nov 2010 13:21:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[cross browsers]]></category>
		<category><![CDATA[css3 headache]]></category>
		<category><![CDATA[fade]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[galleries]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[problems]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=459</guid>
		<description><![CDATA[<a href="http://www.webdea.com/css3-headache.html"><img src="http://farm2.static.flickr.com/1410/5102252150_a874520b2c_m.jpg" alt="CSS3 tips to know" align="left"></a>Nothing is perfect in this world and CSS3 with its background color gradient proves this rule one more time. It is not for shortening CSS code, but only for making it more variable. We all suppose that with CSS the necessary colours can simply defined while the browsers do all the drawing. Sounds great, but don’t work in practice… at least as you expected.]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm2.static.flickr.com/1408/5102252734_57ac5d6c72_m.jpg" alt="CSS3 tips to remember" align="right">With the appearance of CSS3 we suppose that now all our dreams come true and easy coding with more free time left is guaranteed. However, these were rather naive thoughts. </p>
<p>Nothing is perfect in this world and CSS3 with its background color gradient proves this rule one more time. It is not for shortening CSS code, but only for making it more variable. For example, lately you can adjust a background color gradient using a background image only. In other words, you have to recut the image again and again in case the gradient needed tweaking. We all suppose that with CSS the necessary colours can be simply defined while the browsers do all the drawing. Sounds great, but don’t work in practice… at least as you expected.</p>
<p>To use CSS3 trying to solve the issues concerning the gradient property is quite time consuming because it doesn’t work across a range of browsers. Here is a sample of code to look through for the following explanation: </p>
<p>/* how it used to be */<br />
background:url(&#8220;&#8230;&#8221;) left top repeat-y;<br />
 /* using automated gradients */<br />
background:#FEF3D1;<br />
 background:-moz-linear-gradient(top, #FFF1CC, #FDF5D5);<br />
 background:-webkit-gradient(linear,0 0,100% 0,from(#FFF1CC),to(#FDF5D5));<br />
 -ms-filter: &#8220;progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#FFF1CC, endColorstr=#FDF5D5)&#8221;;<br />
 filter: progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#FFF1CC, endColorstr=#FDF5D5); </p>
<p>This makes the fade available in FF 3.6+, Safari/Chrome and IE5.5+. Opera users and IE users without filter support can see the fall-back color. In contrast, using an image makes it available in every single browser version out there without any issues.</p>
<p>As you can see CSS3 syntax is a bit longer and it looks like a block of CSS which could style half a site. And that only for one fade. </p>
<h3>Quality vs Availability </h3>
<p><img src="http://farm2.static.flickr.com/1347/5101659981_3d9c63b2a8_m.jpg" alt="CSS3 for all" align="right"></p>
<p>Image is just an image. It should attract attention and display colors you want. If not consider some details, it displays the way it was made across all browsers. However, it doesn’t work with CSS3 effects. At least not always. For example, Firefox gradients are of lower quality if compare with other browsers. We all know that light fades over large areas creating unnecessary stripes. All this is just gaps in quality you don’t want to accept working with images. </p>
<p>Animation is the other thing to consider starting to work with CSS3. It is neat, but doesn’t run smoothly. Acceptable, but not perfect. To replace Flash animation with other open standards is allowed in case the same level of quality is provided. </p>
<p>Most things that are cool in theory appear to be disappointing in practice. CSS3 is not an exception to this rule. Hope that all the problems will be fixed soon to let us admire all the best provided. </p>
<p><em>Reference: www.onderhond.com/blog/work/why-css3-is-worse-than-ie6-debugging</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/css3-headache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Basics</title>
		<link>http://www.webdea.com/html5-basics.html</link>
		<comments>http://www.webdea.com/html5-basics.html#comments</comments>
		<pubDate>Tue, 16 Nov 2010 13:13:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html5 basics]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=453</guid>
		<description><![CDATA[<a href="http://www.webdea.com/html5-basics.html"><img src="http://farm2.static.flickr.com/1408/5101654483_8558303c17_m.jpg" alt="HTML5 tips to know" align="left"></a>HTML5 offers another update that should help you to nest every element inside a link tag. On other words, block level links should solve the problem of linking bigger areas constructed from divs, headings and/or other block level elements. However, it is just theory. So, let’s check it in practice. ]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm2.static.flickr.com/1421/5101655035_c7fb35d75c_m.jpg" alt="HTML5 basics to remember" align="right" />HTML5 offers another update that should help you to nest every element inside a link tag. In other words, block level links should solve the problem of linking bigger areas constructed from divs, headings and/or other block level elements. However, it is just theory. So, let’s check it in practice.</p>
<p>First of all, it should be noted that block level link works perfectly in simple cases, but can spoil things dealing with complex issues.</p>
<h3>Vomit Bug for Your Design</h3>
<p>The <a href="http://remysharp.com/2009/08/10/defining-the-vomit-bug/">definition</a> of vomit bug is quite simple:</p>
<p>When the browser&#8217;s parser rearranges the DOM completely differently to the markup, resulting in content being placed outside its original container.</p>
<p>The problem can occur when you are nesting links inside other links. Because of vomit bug, DOM can be scattered in different directions, except the one you laid out initially.</p>
<p>Here is the sample of html code that was used to generate dom structures:</p>
<p>&lt;div&gt;<br />
&lt;a href=&#8221;#block&#8221;&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;2010&lt;/div&gt;<br />
&lt;div&gt;5.0*/5.0*&lt;/div&gt;<br />
&lt;div&gt;&lt;a href=&#8221;#test&#8221;&gt;test&lt;/a&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/a&gt;<br />
&lt;/div&gt;</p>
<p>It is quite simple setup providing a block level link with several other block element and one nested link. In case you remove nested link there will be no problem. In case you leave it, you will get the following samples of doms taken from Opera 10.5 (1), IE8 (2), Safari 4 (3) and Firefox 3.6 (4):</p>
<p><img src="http://farm2.static.flickr.com/1239/5102247160_594d80bea3_z.jpg" alt="nesting links" /></p>
<p>Only Opera 10.5 shows dom correctly. However, in case you give a background color to the block level link, Opera stop working. The best browser rendering the block level link quite perfectly is IE6. But still the click area is not corresponding. In other words, block level links with other links nested inside don’t work. At least now.<img src="http://farm2.static.flickr.com/1163/5102249008_1e3818064f_m.jpg" alt="HTML5 basics to learn" align="right" /></p>
<p>As usual HTML and CSS techniques are great… but are not working perfectly. Just remember that in case you nest another link inside links block, it will break down completely. Till all these things are fixed you should use the links on the title and “read more” text. You also can remove all links inside a block level link to make things better.</p>
<p><em>Reference: www.onderhond.com/blog/work/nesting-links-how-to-make-your-browser-v</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/html5-basics.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 CSS Fixer – inline-block</title>
		<link>http://www.webdea.com/inline-block.html</link>
		<comments>http://www.webdea.com/inline-block.html#comments</comments>
		<pubDate>Tue, 09 Nov 2010 10:53:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[Fixer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[inline-block]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=441</guid>
		<description><![CDATA[<a href="http://www.webdea.com/inline-block.html"><img src="http://farm5.static.flickr.com/4084/5035403723_050dd459bb_m.jpg" alt="IE6 CSS Fixer tips to know" align="left"></a>Suppose it is unnecessary to explain in details the specifics of the inline-block display value. The main problem with it is that it has no support in older browser versions. IE6 and IE7 have partial support only while FF2 has –moz specific support. Let’s try to use the following to fix the problem...]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm5.static.flickr.com/4153/5035404043_0656b913b9_m.jpg" alt="IE6 CSS Fixer to remember" align="right">Suppose it is unnecessary to explain in details the specifics of the inline-block display value. The main problem with it is that it has no support in older browser versions. IE6 and IE7 have partial support only. In other words, working on native element you can’t use it on divs or lis and have to render it to something useless. It also has –moz specific support in FF2. </p>
<p>Let’s try to use the following:</p>
<blockquote><p>ul li {display:inline; zoom:1;}</p></blockquote>
<p>Seems to be quite simple, isn’t it? Just use display:inline and add a zoom:1 for block properties support. This fix provides you with basic inline-block support in IE6 and IE7 as well. What is more, you can decrease the use of unnecessary floats, eliminating the need for fixing certain overflow:hidden declarations and floats in general. </p>
<p>You also make &#8220;add zoom to backgrounds&#8221; option less harmful because it behaves flawlessly inside inline-block elements (while in floats it pushes the element to 100% width). </p>
<p>Note that version 0.8 has some additional fixes and better png detection. The 0.7 version was not good in using different syntaxes for background image declarations. Thus, you can get all pngs fixed easier. </p>
<p><em>Reference: www.onderhond.com/blog/work/ie6-css-fixer-0.8</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/inline-block.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Structure vs Semantics in HTML</title>
		<link>http://www.webdea.com/structure-semantics-html.html</link>
		<comments>http://www.webdea.com/structure-semantics-html.html#comments</comments>
		<pubDate>Tue, 02 Nov 2010 10:46:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=438</guid>
		<description><![CDATA[<a href="http://www.webdea.com/structure-semantics-html.html"><img src="http://farm5.static.flickr.com/4147/5036020364_5ff38ba486_m.jpg" alt="Structure in HTML tips to know" align="left"></a>Many web developers still use HTML as the best way for constructing to add CSS, javascript and some other enhancements to their web documents. However, more and more people start talking about semantic value of HTML. Sometimes, we take the advice too literary and this may lead to various unnecessary problems with HTML.]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm5.static.flickr.com/4092/5035401433_6aa126ed15_m.jpg" alt="Structure and Semantics in HTML to remember" align="right">Many web developers still use HTML as the best way for constructing to add CSS, javascript and some other enhancements to their web documents. However, more and more people start talking about semantic value of HTML. </p>
<p>Sometimes, we take the advice too literary and this may lead to various unnecessary problems with HTML. For example, when the developers had to switch from table-based layouts to div-based layouts, they turned everything into divs forgetting about the semantic purpose of the elements. It caused demonization of the div element. So, we should try to avoid such things and find the balance between structural and semantic elements. </p>
<p>In case you ignore structural elements such as divs and spans, you just forget about the original function of these elements and make HTML poorer language than it could be. Don’t forget that HTML is not only semantics. It also structures your document. The main difference between these types of elements is that semantic elements explain the purpose of an element, while structural elements explain the relation of its content to the content of other elements within a document. </p>
<p>For example, you can create two layouts. The first one made with four divs, preferred by minimalists while the second made with five divs. It is not all about structure, it is also about some sort of relationship. Thus, layout with four separate divs indicates that structurally all of them are on the same level. In case we use five divs where the main content and context area are grouped in a content div, we show that the relation between context and main content is a lot stronger or at least different than the relation to the other element. However, the content area shares a similar relation with header and footer.<img src="http://farm5.static.flickr.com/4128/5036021154_9e52cdf441_m.jpg" alt="Structure and Semantics in HTML for all" align="right"> </p>
<p>In short, layout with five divs provides us with more information concerning the relationship between the separate areas and extra div that is used to group main content and context adds useful meaning to the document. </p>
<p>It is recommended to use divs and spans to bring structure to your document. Just separate elements from others that share a different relationship. You also can use them with a meaningful class or id in case you don&#8217;t have a valid semantic element to describe your content. </p>
<p>Of course, such elements as footer, header, article, section and aside also help us to define structures in HTML documents. And the main thing to consider is that these elements also hold semantic meaning to indicate the relationship of the elements. Try to use structural elements to reveal relations between elements to write better structured code and keep the document as semantic as possible.</p>
<p><em>Reference: www.onderhond.com/blog/work/html-foundation-of-the-web</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/structure-semantics-html.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Semantics for Search</title>
		<link>http://www.webdea.com/semantics-for-search.html</link>
		<comments>http://www.webdea.com/semantics-for-search.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 13:42:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=433</guid>
		<description><![CDATA[<a href="http://www.webdea.com/semantics-for-search.html"><img src="http://farm5.static.flickr.com/4127/5029038805_70bd7cd5e7_m.jpg" alt="Semantics tips to know" align="left"></a>Talking about HTML we usually highlight its structural function. However, this time we are going to discuss semantics especially the reasons why it doesn’t provide us with all the advantages promised. The truth is that we spend so much time and effort on writing structurally and semantically valuable html not for screenreader users only. ]]></description>
			<content:encoded><![CDATA[<p>Talking about HTML we usually highlight its structural function. However, this time we are going to discuss semantics especially the reasons why it doesn’t provide us with all the advantages promised. The truth is that we spend so much time and effort on writing structurally and semantically valuable html not for screenreader users only. </p>
<h3>Google – The Best?</h3>
<p><img src="http://farm5.static.flickr.com/4109/5029654952_35f17435db_m.jpg" alt="Semantics for Search tips to remember" align="right"></p>
<p>With growing internet it is more difficult to find valuable sources. Don’t you notice that while looking for something on the Web you can wade through irrelevant and outdate sites for a long while till find the things you are looking for. Google is the leader in search engine market. However, it lacks some important things to make our browsing easier. First of all, we should mention date factor. With enough time to build strong link base, older articles have more chances to rank higher than more relevant, but recent articles. Thus, we can get outdated information. </p>
<p>Lack of recognition of content types is another drawback of search engines we should pay attention to. Looking for some film reviews people want to get the list of reviews but not pages with this word. Thus, semantics can be quite useful.  </p>
<p>As we know some attempts were made to extend the semantic power of html code. Today there are two methodologies used: Microformats and html5 microdata. There is also RDF, but we will discus it later. </p>
<p>Microformats extend html semantics using standardized (not necessarily semantic) class names. The most popular Microformat is the hCard which holds the data of a person or company (name, address, contact data,etc.) There are also some formats defined, but as a rule, they are ignored by the web. </p>
<p>The other thing to use is <a href="http://dev.w3.org/html5/md/">html5 microdata</a>. Using four properties (itemscope, itemtype, itemid, itemprop) you can add extra semantics to your html. However, there are some problems and all of them make things much complex that they should be. For example, most values for the itemprop seem to correspond with the class names you&#8217;d normally put on there, which you still need for styling.<img src="http://farm5.static.flickr.com/4124/5029040033_09d49b966b_m.jpg" alt="Semantics for Search basics for all" align="right"></p>
<p>Perhaps, we just overreaching here. We are trying to automatically and fully process content types on the web and it is great, but still all the users need is to find their search queries. </p>
<p>Trying to provide a full standardized description of a content type, we make Microformats and microdata too complicated. The other thing to consider is that most people appreciate raw data itself. Deciding to buy another TV we need to be transferred for valid product pages. That’s all. But we try to process everything at once. Maybe basic recognition will be enough instead of complete definitions of content types. </p>
<p>What we are trying to say is that instead of defining a complex model for content types we can start to define standardized and semantic base identifier. Let them be simple enough. For example, use “product” for products, “holiday” for holiday, “review” for reviews. You can prefix them but that’s all. Let it work and process the data within. Microformat ideology works, but sometimes it is too complicated and makes search results irrelevant that also leads to disappointment of some users. </p>
<p><em>Reference: www.onderhond.com/blog/work/extended-semantics-simple-is-better</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/semantics-for-search.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create Triangle in CSS</title>
		<link>http://www.webdea.com/triangle-css.html</link>
		<comments>http://www.webdea.com/triangle-css.html#comments</comments>
		<pubDate>Tue, 19 Oct 2010 13:30:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[triangle]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=424</guid>
		<description><![CDATA[<a href="http://www.webdea.com/triangle-css.html"><img src="http://farm5.static.flickr.com/4124/5029034327_9d57ed69b1_m.jpg" alt="Create Triangle in CSS tips to know" align="left"></a>Some web developers use extra wrapper with a background image over empty elements every time they are trying to create triangle. There are several techniques to create triangles in CSS and here are some of them to try. Using the following tips you will take advantage of a browser drawing the borders at angles.]]></description>
			<content:encoded><![CDATA[<p>Some web developers use extra wrapper with a background image over empty elements every time they are trying to create triangle. There are several techniques to create triangles in CSS and here are some of them to try. </p>
<p>Using the following tips you will take advantage of a browser drawing the borders at angles. One side of the border is coloured while others are transparent.<img src="http://farm5.static.flickr.com/4132/5029650550_52bde60097_m.jpg" alt="How to Create Triangle in CSS tips for you" align="right"> </p>
<blockquote><div class="css-arrow-multicolor"></div>
</blockquote>
<blockquote><p>.css-arrow-multicolor {<br />
  border-color: red green blue orange;<br />
  border-style:solid;<br />
  border-width:20px;<br />
  width:0;<br />
  height:0;<br />
}</p></blockquote>
<p>That was right triangles in the square. And now you can change border size and get acute triangles as well: </p>
<blockquote><p>.css-arrow-acute {<br />
  border-color: red green blue orange;<br />
  border-style:solid;<br />
  border-width:25px 10px 15px 30px;<br />
  width:0;<br />
  height:0;<br />
}</p></blockquote>
<p>Be creative and create a lot of shapes to try. For example, </p>
<blockquote><p>border-style:dotted;</p></blockquote>
<p>or </p>
<blockquote><p>border-style:dashed;</p></blockquote>
<p>or </p>
<blockquote><p>border-style:groove;</p></blockquote>
<p>as well as </p>
<blockquote><p>border-style:double;</p></blockquote>
<p>You also can try the following to create classic chat bubble with no images used:<img src="http://farm5.static.flickr.com/4104/5029651308_c3fbca7b64_m.jpg" alt="How to Create Triangle in CSS info for all" align="right"></p>
<blockquote><div class="chat-bubble">
  Hello!</p>
<div class="chat-bubble-arrow-border"></div>
<div class="chat-bubble-arrow"></div>
</div>
</blockquote>
<blockquote><p>.chat-bubble {<br />
  background-color:#EDEDED;<br />
  border:2px solid #666666;<br />
  font-size:35px;<br />
  line-height:1.3em;<br />
  margin:10px auto;<br />
  padding:10px;<br />
  position:relative;<br />
  text-align:center;<br />
  width:300px;<br />
  -moz-border-radius:10px;<br />
  -webkit-border-radius:10px;<br />
  -moz-box-shadow:0 0 5px #888888;<br />
  -webkit-box-shadow:0 0 5px #888888;<br />
}</p></blockquote>
<blockquote><p>.chat-bubble-arrow-border {<br />
  border-color: #666666 transparent transparent transparent;<br />
  border-style: solid;<br />
  border-width: 10px;<br />
  height:0;<br />
  width:0;<br />
  position:absolute;<br />
  bottom:-22px;<br />
  left:30px;<br />
}</p></blockquote>
<blockquote><p>.chat-bubble-arrow {<br />
  border-color: #EDEDED transparent transparent transparent;<br />
  border-style: solid;<br />
  border-width: 10px;<br />
  height:0;<br />
  width:0;<br />
  position:absolute;<br />
  bottom:-19px;<br />
  left:30px;<br />
}</p></blockquote>
<p>However, it doesn’t work for IE6, because this browser doesn’t allow transparent borders. Anyway, there is some tip to fix it. All you need is to give completely different color such as green to the “transparent” sides. Then use filter: chroma in order to turn that colour transparent. </p>
<blockquote><p> /* IE6 */<br />
.chat-bubble-arrow {<br />
    _border-left-color: pink;<br />
    _border-bottom-color: pink;<br />
    _border-right-color: pink;<br />
    _filter: chroma(color=pink);<br />
}</p></blockquote>
<p><em>Reference: hwww.onderhond.com/blog/work/css-triangles-issues</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/triangle-css.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreading List Items Techniques</title>
		<link>http://www.webdea.com/spreading-list-items.html</link>
		<comments>http://www.webdea.com/spreading-list-items.html#comments</comments>
		<pubDate>Tue, 21 Sep 2010 10:30:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[list items]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=397</guid>
		<description><![CDATA[<a href="http://www.webdea.com/spreading-list-items.html"><img src="http://farm5.static.flickr.com/4150/4951064812_568d78b39a_m.jpg" alt="Spreading list items tips to know" align="left"></a>Sometimes even a simple issue can become a real problem with CSS. The main thing is to make it cross-browser. One of such examples is spreading a list evenly across the total width of the container. Let’s try to solve this step by step. Note that any improvements are welcome. ]]></description>
			<content:encoded><![CDATA[<p>Sometimes even a simple issue can become a real problem with CSS. The main thing is to make it cross-browser. One of such examples is spreading a list evenly across the total width of the container.</p>
<p>Let’s try to solve this step by step. For instance, the basic html is quite easy. Here is an unordered list with 4 items:</p>
<p>&lt;ul&gt; &lt;li&gt;item 1&lt;/li&gt; &lt;li&gt;item 2&lt;/li&gt; &lt;li&gt;item 3&lt;/li&gt; &lt;li&gt;item 4&lt;/li&gt; &lt;/ul&gt;</p>
<p>We need to perform the following:<img src="http://farm5.static.flickr.com/4110/4951065836_b82f66b4d3_m.jpg" alt="Spreading list items techniques to remember" align="right" /></p>
<ul>
<li>To spread the list items evenly across the whole width of the container.</li>
<li>There should be no gaps between the list items.</li>
<li>It is necessary that the list keeps its behaviour in an elastic layout.</li>
<li>Note that typical reset CSS statements and browser fixes are not included in the code previews.</li>
</ul>
<h3>If 4 times 25% isn&#8217;t 100%</h3>
<blockquote><p>ul li {width:25%; float:left;}</p></blockquote>
<p>The most simple solution is to float all list items with a width of 25%. However, Opera and Safari result in width below 100%, while IE has a resulting width exceeding 100%.</p>
<p>There is also a problem concerning how Opera handles % sizing. This browser can’t handle fractions (it reverts 44.44% to 44%) that also makes the behaviour across other browsers unpredictable. You also can tinker with the percentages (34% &#8211; 35% &#8211; 34%), but still it doesn’t meet our requirements listed above.</p>
<h3>More Practice with Floats, Margins and Paddings</h3>
<p><img src="http://farm5.static.flickr.com/4081/4951067310_1936f40ca1_m.jpg" alt="Spreading lins items techniques to learn" align="right" /></p>
<blockquote><p>ul {padding-right:75%;} ul li {float:left; width:100%;} ul li+li {margin-right:-100%; float:right;} ul li+li+li {margin-right:-200%;} ul li+li+li+li {margin-right:-300%;}</p></blockquote>
<p>The next idea is to give ul element a right-padding of 75%. You can make all list items 100% just making them 25% wide compared to the whole container. Thus, the first item will be floated to the left while the following once will be floated to the right. All items except the first one will be repositioned to with a negative margin.</p>
<p>It works for Opera, Safari and Firefox. But it fails as soon as a border is applied to the ul element. It just doesn’t work with 75% padding calculation. However, we can just wrap the list and apply the border to the wrapper to fix it.</p>
<p>However, IE doesn’t support such a decision and set negative margins going above 100% to a default 100%. The other thing to consider is that IE6 can&#8217;t handle the + operator in CSS. In other words, each list item has to receive a separate class. Too complicated and unnecessary in case you are going to expand list with new items.</p>
<h3>Column Layouts</h3>
<blockquote><p>ul li {width:25%; float:left;} ul li.last {margin-left:75%; float:none; width:auto;}</p></blockquote>
<p>We also can give all elements a width of 25% and float them to the left while the last li element should be reset to normal behaviour with margin-left of 75%.</p>
<p>The good thing is that IE7 handles this correctly. Firefox, Opera and Safari show a little gap between the third and last item. To fix it you can apply a left margin that is slightly smaller, for example, 74.5%. However, Firefox doesn’t accept it and applies to left margin from the third list element, throwing the last element out of the container. So, any improvements to this are required.</p>
<p><em>Reference: www.onderhond.com/blog/work/spreading-list-items</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/spreading-list-items.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Basics</title>
		<link>http://www.webdea.com/html-basics.html</link>
		<comments>http://www.webdea.com/html-basics.html#comments</comments>
		<pubDate>Tue, 14 Sep 2010 11:43:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web developing]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=388</guid>
		<description><![CDATA[<a href="http://www.webdea.com/html-basics.html"><img src="http://farm5.static.flickr.com/4137/4944436023_0fc7ca7fb8_m.jpg" alt="HTML tips to know" align="left"></a>HTML is all about structure and meaning. It allows you to publish content on the web, describe and structure that content. While CSS and Javascript are additions for certain clients, HTML adds meaning and context to the elements of a web document. We try to define the content with html tags so that it will be readable for machines as well as for humans. ]]></description>
			<content:encoded><![CDATA[<p>Of course, there are quite a lot of posts concerning HTML, but still it is necessary to start with the very basics to refresh your memory about some simple things to consider.<img src="http://farm5.static.flickr.com/4093/4944437179_4cd65e133b_m.jpg" alt="HTML Basics to remember" align="right" /></p>
<p>HTML is all about structure and meaning. It allows you to publish content on the web, describe and structure that content. While CSS and Javascript are additions for certain clients, HTML adds meaning and context to the elements of a web document.</p>
<p>We try to define the content with html tags so that it will be readable for machines as well as for humans. It is not so easy for people with good vision, because our vision creates a context for content while machines and visually impaired users need a certain semantic value given to elements within a document. In other words, it is necessary to indicate what a certain element represents.</p>
<p>Today there are more semantic elements added to specification that allows machines as well as visually impaired users to understand published content better. The other good thing is that there are new elements defining its relationship to other elements.<img src="http://farm5.static.flickr.com/4135/4945021770_cae734b97f_m.jpg" alt="HTML Basics to learn" align="right" /></p>
<p>A &lt;header&gt; tag is an element that represents a certain relation to the primary content. It precedes this content, giving us important information and context to better interpret the given content. The same can be said about &lt;aside&gt; tag. It tells that the contained content is related to the primary content, but not part of it. Thus, we can define which part of an element is the main content, what content is related to it and how it is related to it.</p>
<p>So, all you need is to think about the way you can better structure a document to make its content the best if talk about readability for humans as well as for machines. Always think about improvements and try to use new additions as well.</p>
<p><em>Reference: www.onderhond.com/blog/work/hardcore-html</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/html-basics.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

