<?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>Lost Resort BIZ - The Blog &#187; Web Design</title>
	<atom:link href="http://www.lostresort.biz/blog/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lostresort.biz/blog</link>
	<description>Talking about us and about web site development</description>
	<lastBuildDate>Tue, 22 Nov 2011 08:15:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>CSS properties for HTML elements &#8211; tips and tricks</title>
		<link>http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/</link>
		<comments>http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 08:54:18 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS tips and tricks]]></category>
		<category><![CDATA[styling HTML elements]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=800</guid>
		<description><![CDATA[Today, web browsers tend to adhere more accurately to the Web Standards, especially when it comes about CSS properties. CSS3 properties are supported by all web browser engines and with every version released more new properties can be used to style the HTML elements. In this article I&#8217;ll try to emphasize some useful approaches which can be used<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>Today, web browsers tend to adhere more accurately to the Web Standards, especially when it comes about CSS properties. CSS3 properties are supported by all web browser engines and with every version released more new properties can be used to style the HTML elements. In this article I&#8217;ll try to emphasize some useful approaches which can be used to make your work easier.</p>
<h3>Which statement is served first?</h3>
<p>A <code>style.css</code> file is nothing more than a text file with (a lot of) statements which define properties for HTML elements. Note, this is the default style sheet file, and the statements are read from top to bottom and from left to right. So, a good approach is to have on top statements for <code>html</code> and <code>body</code> elements, and general properties for other HTML elements (like <code>text-decoration:none</code> for anchor link, or <code>list-style-type:none</code> for unordered or ordered list elements etc.). Keeping things in good order, will save you time from not wasting it.</p>
<h3>Which property should come first?</h3>
<p>When declaring properties for styling HTML elements I think is better to start with properties that have to do with the position of the element inside the HTML page. So, start with declarations for <code>display</code>, <code>margin</code>, <code>padding</code> and <code>position</code>, and finish with the <code>font</code> characteristics. Also, give a width to the elements like <code>img</code> or the ones who <code>float</code>. With this approach, you&#8217;ll avoid loading pages with elements that &#8220;struggle&#8221; to find their places inside the content.</p>
<h3>Which value for measurement unit to use?</h3>
<p>When it comes about <a href="http://www.lostresort.biz/blog/2009/07/21/using-absolute-or-relative-values-for-measurement-units/" title="Using absolute or relative values for measurement units">values for measurement units</a>, is better to use <code>px</code>, <strong>a relative unit to the viewing device</strong> for style properties like <code>margin</code>, <code>padding</code>, <code>position</code> and <code>width</code>. At least, a pixel has the same dimension in all web browsers&#8217; engine, and the cross-browser differences are not noticeable. For <code>font</code> you can use <code>em</code> to have the height flexible.</p>
<h3>Dealing with images and objects</h3>
<p>Give a <code>width</code> and a <code>height</code> to the images or the objects you want to be loaded inside the page. With this, you wont see &#8220;running&#8221; pieces of text finding their places inside the page. Note that, this elements will overflow if their width will exceed the width of their parent element (a <code>div</code>). For avoiding this, is better to set a maximum limit for the element&#8217;s width:</p>
<blockquote><p>
img {max-width:100%;height:auto}
</p></blockquote>
<p>With this, the image width will be limited to it&#8217;s parent width, and <code>height:auto</code> will set the height to the correct value, preserving the aspect ratio. An <code>object</code> is often the media stream of a movie or a video clip. Setting the same maximum limit as the images have, wont have the same result in all major browser. A solution might be to set the max-width to 100% and the max-height to a maximum value in pixels based on the aspect ratio of the video AND taking into consideration the width of the parent in pixels. More precisely, if you have a container with the width set to 600px, set the max-height of the object to 450px (aspect ratio 4:3).</p>
<h3>Classes or IDs?</h3>
<p>When you want to style some HTML elements or to manipulate them using JavaScript giving and ID and/or classes to him will help things out. An ID is an <b>unique</b> identifier so, it can be used once per page. A footer, a navigation menu or a main content container should be emphasized by an ID. Classes must be used when more than one element needs to be styled or manipulated. Semantically, is incorrect to use only classes inside a HTML page. But, this approach can be used, because no errors will occur.</p>
<h3>Tables or DIVs?</h3>
<p>In our days, the trend is to use DIV as a container and to keep separated the style properties for the HTML elements, and make the page layout &#8220;tableless&#8221;. Anyway, tables are good also, at least when it comes about forms. The elements are aligned better inside a form, when <code>label</code> and <code>input</code> are coming together, if they are placed inside a <code>td</code> element.</p>
<h3>Conclusions</h3>
<p>A good start, when you develop a website site, with solid knowledge as a foundation for HTML and CSS coding, will keep things clear and easy to understand for further improvements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data exploration and sharing</title>
		<link>http://www.lostresort.biz/blog/2011/07/20/data-exploration-and-sharing/</link>
		<comments>http://www.lostresort.biz/blog/2011/07/20/data-exploration-and-sharing/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 12:50:07 +0000</pubDate>
		<dc:creator>Dorina</dc:creator>
				<category><![CDATA[Inspire ideas]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[data exploration]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=774</guid>
		<description><![CDATA[I found this article (http://www.fipp.com/Research.aspx?PageIndex=2527&#38;ItemId=15992) very inspiring and therefore I share it with you, the readers of the Lost Resort Blog. I hope you will find the time, strength or team to create similar applications as the one described here, be they for developing your own skills in that field or for the benefit of the community to<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2011/07/20/data-exploration-and-sharing/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>I found this <a href="http://www.fipp.com/Research.aspx?PageIndex=2527&amp;ItemId=15992">article </a>(<a href="http://www.fipp.com/Research.aspx?PageIndex=2527&amp;ItemId=15992">http://www.fipp.com/Research.aspx?PageIndex=2527&amp;ItemId=15992</a>) very inspiring and therefore I share it with you, the readers of the Lost Resort Blog. I hope you will find the time, strength or team to create similar applications as the one described here, be they for developing your own skills in that field or for the benefit of the community to which you belong or address.</p>
<p>The idea presented in the article and in this post is to create data-based apps that enable users to extract the relevant information for them by using easy-to-use interactive features, and also to share via social network services like Facebook or Twitter the stories that they find through the online data exploration.</p>
<p>In the <a href="http://projects.propublica.org/schools/">Ed-data app</a> developed by ProPublica (<a href="http://projects.propublica.org/schools/">http://projects.propublica.org/schools/</a>), the analysis allows generating stories about the educational opportunities provided by high schools in the U.S. The educational opportunities are classified into five groups: Advanced Placement course, gifted-and-talented programs, and advanced math, chemistry and physics classes. The data comprises 85,000 schools representing 75% of all public high schoolers in the U.S. The user can get reports for specific schools, districts or states in a visual &amp; interactive presentation of facts such as how many students are enrolled, the percentage of inexperienced teachers (i.e., two-year experience or less), the percentage or students that receive free or reduced-price school lunch (as an indicator of poverty), and the percentage of students attending AP and advanced math courses. Moreover, the user can compare these facts across neighboring schools, or compare to lower and higher poverty-ranked schools, or to specific schools.</p>
<p>In addition to providing easy access to meaningful content, the app also facilitates sharing this content via Facebook. The developers say about the interface of the app that “we were focusing a lot more on what behaviors we wanted to encourage” and that sharing was one of these behaviors.  This social aspect of the app was not however designed for its own sake, but to create an impact on both “a personal and a policy level”. Because data analysis is a time-consuming process (that starts with acquiring the data, cleaning it, and then making sense of it), it is important that the obtained information reaches those people that need that information and insight.</p>
<p>Thus, I think this app is a good model to follow for packaging and sharing information that is generated from large amounts of data, and which can be viewed from different perspectives and at different levels of detail based on the user interest.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2011/07/20/data-exploration-and-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pencil Draw – WordPress Template</title>
		<link>http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/</link>
		<comments>http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 05:35:28 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress Templates]]></category>
		<category><![CDATA[blue white green colors wordpress template]]></category>
		<category><![CDATA[free wordpress template]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=693</guid>
		<description><![CDATA[About the template The template was created using blue, green and white colors. It has a header area, a main content floating to the right, a sidebar floating to the left and a footer area. The design was built based on what I call a &#8220;pencil draw&#8221; simulation, used to create the corners of the containers and as<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<h3>About the template</h3>
<p>The template was created using blue, green and white colors. It has a header area, a main content floating to the right, a sidebar floating to the left and a footer area. The design was built based on what I call a &#8220;pencil draw&#8221; simulation, used to create the corners of the containers and as background for various inpage elements. The header area has a search form, so the one in the sidebar is not necessary anymore.</p>

<a href='http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/pd-footer/' title='pd-footer'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/10/pd-footer-150x150.png" class="attachment-thumbnail" alt="pd-footer" title="pd-footer" /></a>
<a href='http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/pd-middle/' title='pd-middle'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/10/pd-middle-150x150.png" class="attachment-thumbnail" alt="pd-middle" title="pd-middle" /></a>
<a href='http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/pd-top/' title='pd-top'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/10/pd-top-150x150.png" class="attachment-thumbnail" alt="pd-top" title="pd-top" /></a>

<h3>The design</h3>
<p>The design is not very complicated and/or graphic emphasized. The containers were built using 3 (three) <code><</code>div<code>></code> elements which overlap one over another to create the box effect. The DTD used for the HTML code is XHTML 1.0 Transitional. The fonts used for the template are <b>Trebuchet MS</b> and <b>Georgia</b>.</p>
<h4>The header area</h4>
<p>The header area contains a heading formatted as a link for the name of the blog, and the description of the blog goes under it. Those two elements are placed on the left side. On the right side I placed a search form.<br />
The last element is the menu container. The template supports custom menus as it is emphasized in <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">WordPress codex about wp_nav_menu()</a>. As the documentation says, if no custom menu is defined the function will fallback to <b>wp_page_menu</b>, else if <b>name</b> argument has no value defined or the value defined doesn't match the name of any custom menu defined, the function's name argument will take the name of the first custom menu defined (with the lowest ID). To use any other custom menu you have to manually add the menu name in the <b>functions.php</b> file in the navigation menu section. The menu supports two levels deep navigation (the parent will have children, and the children will have children), which means that the style sheet formats the menu list elements to be displayed. If you want more you have to add the proper formatting for the third level and so on (i.e.: <b> div#menu ul ul ul ...</b>). You have to pay attention to the order the CSS properties are declared, as long as they are served to the HTML page from top to bottom of the <b>style.css</b>.</p>
<h3>The main content container</h3>
<p>This container floats to the right. The main page file, <b>index.php</b> takes the while loop for the exiting posts and displays the entire content of the posts, not the excerpt. Based on the way the container is created, it was simple to add a conditional statement for the sticky post and with the help of the CSS properties to emphasized it on page. The pages supports <b>wp_link_pages()</b> function which will add links to the next pages of one post, if it is split in more than one parts. Another function used is <b>wp_list_pages()</b> to add a link inside the page to the child pages of the current page. The <b>page.php</b> and <b>single.php</b> pages has the comment form built using the <b>comments_template()</b> function. Also I added a filter to change the messages of the input elements' labels. The template supports nested comments, three levels deep. If you want more, you have to add the proper style properties to achieve the desired effect. The comments made by the administrator and by the author of the post are styled to be displayed different from the other comments. But, you have to modify in the style.css file the statements for the <b>comment-author-administrator</b> class, <b>if your nickname, as it appears in the dashboard of your user admin (or editor) page, is different from <i>administrator</i>, and change it to the nickname you have</b>. Otherwise, no change to the comment style. The comment <b>li</b> elements are not styled differently for <b>even</b> and <b>odd</b> classes. In the next version this will be added.</p>
<p>The template also has a <b>404.php</b>, a <b>search.php</b> and an <b>archive.php</b> page. If you want to use the <b>archive.php</b> page <a href="http://codex.wordpress.org/Creating_an_Archive_Index#for_WP_1.5.2B">read how to create an archive page</a>.</p>
<h3>The sidebar</h3>
<p>The sidebar floats to the left and it supports widgets. By default it has 4 (four) custom widgets defined: <b>Category, Blogroll, Archives (monthly) and Meta</b>. Also in <b>functions.php</b> file has 3 (three) custom widgets declared: <b>Custom Calendar, Custom Search Form and Custom Tag Cloud</b>.</p>
<h3>The footer</h3>
<p>The footer has 2 functions which will generate a list of 3 (three) links for random posts and 3 (three) links for random pages. These two containers will float to the left, and on the right side are posted credentials for the template's author.</p>
<h3>Credits</h3>
<p>The template is released under <a href="http://www.gnu.org/licenses/gpl.html">GPL v3 license</a>. You can use it as it is, modify it, for commercial or non-commercial use. </p>
<p>You can <a href="http://wordpress.org/extend/themes/pencil-draw">DOWNLOAD</a> the template from WordPress site. A <a href="http://wpmu.lostresort.biz/pencil-draw/">LIVE PREVIEW</a> of the template is available also.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Red Shadow WordPress Template</title>
		<link>http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/</link>
		<comments>http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 06:41:17 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress Templates]]></category>
		<category><![CDATA[free wordpress template]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=649</guid>
		<description><![CDATA[About the template Basically it has the backbone of the actual previous template of this blog. But, being developed based on an old WordPress template, requires a lot of code updates to meet the latest major version requirements. Anyway, after a week of reading, writing and designing and after a few more to wait for its approval, now<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<h3>About the template</h3>
<p>Basically it has the backbone of the <del datetime="2010-10-04T12:02:08+00:00">actual</del> previous template of this blog. But, being developed based on an old <strong>WordPress template</strong>, requires a lot of code updates to meet the latest major version requirements. Anyway, after a week of reading, writing and designing and after a few more to wait for its approval, now it is ready to be distributed.</p>

<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/top-red-shadow/' title='top-red-shadow'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/top-red-shadow-150x150.png" class="attachment-thumbnail" alt="top-red-shadow" title="top-red-shadow" /></a>
<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/middle-2/' title='middle-2'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/middle-2-150x150.png" class="attachment-thumbnail" alt="middle-2" title="middle-2" /></a>
<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/middle-1/' title='middle-1'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/middle-1-150x150.png" class="attachment-thumbnail" alt="middle-1" title="middle-1" /></a>
<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/footer/' title='footer'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/footer-150x150.png" class="attachment-thumbnail" alt="footer" title="footer" /></a>

<h3>The design</h3>
<p>The design is not very complicated and/or graphic emphasized. It has four main areas: the header, the main content container, the left sidebar and the footer. The containers were built using 8 (eight) <code><</code>div<code>></code> elements which overlap one over another to create the box effect. The style sheet formats almost all HTML elements (the drop-down list and the radio buttons are not, and a few more). Anyway, if you want to make some modifications, go ahead and do it. The DTD used for the HTML code is XHTML 1.0 Transitional. The font used for the <b>main headings</b> is <a href="http://code.google.com/webfonts/family?family=Josefin+Sans+Std+Light">Josefin Sans Std Light</a>. The method used by Google seems to not be supported by old IE versions.</p>
<h3>The header area</h3>
<p>The header area contains a heading formatted as a link for the name of the blog, and the description of the blog goes under it. Those two elements are placed on the left side. On the right side there are 2 (two) images formatted as links which will give the possibility to your readers to subscribe to your articles using <b>RSS 2 feeds</b> and the <a href="http://feedburner.google.com/">Google Feedburner</a>. For the last one you have to edit the <b>header.php</b> file and add the necessary link provided by Google. Maybe, in the near future I'll create a function to make this happened using the Dashboard.</p>
<p>The last element is the menu container. The template supports custom menus as it is emphasized in <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">WordPress codex about wp_nav_menu()</a>. As the documentation says, if no custom menu is defined the function will fallback to <b>wp_page_menu</b>, else if <b>name</b> argument has no value defined or the value defined doesn't match the name of any custom menu defined, the function's name argument will take the name of the first custom menu defined (with the lowest ID). To use any other custom menu you have to manually add the menu name in the <b>functions.php</b> file in the navigation menu section. The menu supports two levels deep navigation (the parent will have children, and the children will have children), which means that the style sheet formats the menu list elements to be displayed. If you want more you have to add the proper formatting for the third level and so on (i.e.: <b> div#menu ul ul ul ...</b>). You have to pay attention to the order the CSS properties are declared, as long as they are served to the HTML page from top to bottom of the <b>style.css</b>.<br />
A snippet of the code is presented bellow.</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/menu-example.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/menu-example.png" alt="" title="menu-example" width="650" height="146" class="alignnone size-full wp-image-660" /></a></p>
<p><b>Important!</b><br />
In this area you have two icons on the right side. One points to the rss feed link and the other should pointed to you feedburner link. <a href="http://feedburner.google.com/">Read more here how to obtain your link</a>. After this you have to edit <b>header.php</b> and add the link in the proper place.</p>
<h3>The main content container</h3>
<p>This container floats to the left. The main page file, <b>index.php</b> takes the while loop for the exiting posts and displays the entire content of the posts, not the excerpt. Based on the way the container is created, it was simple to add a conditional statement for the sticky post and with the help of the CSS properties to emphasized it on page. Another feature added, if I can say so, was to shrink the message "Enter your password to view comments." which is generated by <b>comments_popup_link()</b> function declared in <a href="http://core.trac.wordpress.org/browser/tags/3.0.1/wp-includes/comment-template.php">comment-template.php file</a> on line 973. The problem was if a password protected post exists and the password was not typed and used, instead of displaying "No comments" or "1 Comment" message, the page serve the "Enter your ..." message. This instance is <del datetime="2010-10-04T17:16:08+00:00">only</del> present in <del datetime="2010-10-04T17:16:08+00:00">a <b>WPMU environment</b></del> all WP environment, based on what I experienced. So, shrinking the message assures that it will fit the container's width, otherwise will go under the place should be. The pages supports <b>wp_link_pages()</b> function which will add links to the next pages of one post, if it is split in more than one parts. Another function used is <b>wp_list_pages()</b> to add a link inside the page to the child pages of the current page. The <b>page.php</b> and <b>single.php</b> pages has the comment form built using the <b>comments_template()</b> function. Also I added a filter to change the messages of the input elements' labels. The template supports nested comments, three levels deep. If you want more, you have to add the proper style properties to achieve the desired effect. The comments made by the administrator (or by the main editor) are styled to be displayed different from the other comments. But, you have to modify in the style.css file the statements for the <b>comment-author-administrator</b> class, <b>if your nickname, as it appears in the dashboard of your user admin (or editor) page, is different from <i>administrator</i>, and change it to the nickname you have</b>. Otherwise, no change to the comment style. The comment <b>li</b> elements has different background for <b>even</b> and <b>odd</b> classes.</p>
<p>The template also has a <b>404.php</b>, a <b>search.php</b> and an <b>archive.php</b> page. If you want to use the <b>archive.php</b> page <a href="http://codex.wordpress.org/Creating_an_Archive_Index#for_WP_1.5.2B">read how to create an archive page</a>.</p>
<h3>The sidebar</h3>
<p>The sidebar floats to the right and it supports widgets. By default it has 4 (four) custom widgets defined: <b>Category, Blogroll, Archives (monthly) and Meta</b>. Also in <b>functions.php</b> file has 3(three) custom widgets declared: <b>Custom Calendar, Custom Search Widget and Custom Tag Cloud</b>. Please use the Custom Calendar widget as it is formatted with a different background box.</p>
<h3>The footer</h3>
<p>The footer has 2 links for RSS feeds and a link for the author of this template. Also it has a simple custom function which will display a <b>Welcome back, <code>user first name user last name</code></b> message if the user is logged in, or a <b>Login</b> link if the user is not logged in. Anyway, it will be a little change, the message will be formatted as a link to the admin page, in the next version of this template.</p>
<h3>Credits</h3>
<p>The template is released under <a href="http://www.gnu.org/licenses/gpl.html">GPL v3 license</a>. You can use it as it is, modify it, for commercial or non-commercial use. A thank you message is all that I need, if you get some satisfaction using this template.</p>
<p>You can <a href="http://wordpress.org/extend/themes/red-shadow">DOWNLOAD</a> the template from WordPress site. A <a href="http://wpmu.lostresort.biz/red-shadow/">LIVE PREVIEW</a> of the template is available also.</p>
<p>I hope you'll enjoy it <img src='http://www.lostresort.biz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to create navigational menus using only images</title>
		<link>http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/</link>
		<comments>http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 11:41:59 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[horizontal menus with images]]></category>
		<category><![CDATA[menus]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=517</guid>
		<description><![CDATA[Pre-Requisites: We want to create a navigational menu using a fancy font-type which looks great on our website. But, we want to achieve this effect not using any JavaScript library or any flash object and we want this menu to be similar in functionality with any other menu that uses text in anchor links. Creating the menu The<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p><b>Pre-Requisites</b>: We want to create a navigational menu using a fancy font-type which looks great on our website. But, we want to achieve this effect not using any JavaScript library or any flash object and we want this menu to be similar in functionality with any other menu that uses text in anchor links.</p>
<h3>Creating the menu</h3>
<p>The solution I will present I find it simple and easy to implement. We will create a navigational menu using an unordered list of anchor links displayed on one line, and we use different background images for each element to create the desired effect. The HTML code will be as following:</p>
<pre class="crayon-plain-tag"><code>&lt;ul id=&quot;buttons&quot;&gt;
	  &lt;li id=&quot;home&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;services&quot;&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;about_us&quot;&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;partners&quot;&gt;&lt;a href=&quot;#&quot;&gt;Partners&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;policy&quot;&gt;&lt;a href=&quot;#&quot;&gt;Policy&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;contact&quot;&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;</code></pre>
<p>Nothing complicated so far.</p>
<p>The CSS style properties that we will use are:</p>
<pre class="crayon-plain-tag"><code>ul#button li{float:left;padding:0;margin:0.1em 0.1em 0 0.1em;width:110px;height:40px;text-align:center}
ul#button li a{text-decoration:none;color:#ffffff;display:block;height:40px;font-size:0px;line-height:0px}
#home{background:url(images/buttons_sprite.png) no-repeat 0 0}
li#home a:hover{background:url(images/buttons_sprite.png) no-repeat 0 -41px}
#services{background:url(images/buttons_sprite.png) no-repeat -110px 0}
li#services a:hover{background:url(images/buttons_sprite.png) no-repeat -110px -41px}
#about_us{background:url(images/buttons_sprite.png) no-repeat -220px 0}
li#about_us a:hover{background:url(images/buttons_sprite.png) no-repeat -220px -41px}
#partners{background:url(images/buttons_sprite.png) no-repeat -330px 0}
li#partners a:hover{background:url(images/buttons_sprite.png) no-repeat -330px -41px}
#policy{background:url(images/buttons_sprite.png) no-repeat -440px 0} 
li#policy a:hover{background:url(images/buttons_sprite.png) no-repeat -440px -41px}
#contact{background:url(images/buttons_sprite.png) no-repeat -550px 0}
li#contact a:hover{background:url(images/buttons_sprite.png) no-repeat -550px -41px}</code></pre><p>
<p>As you can see, we will use one image which will incorporate all the necessary images we need, 6 for each active item and another 6 for roll-over effect. In this circumstances it will be one server request (instead of having 12 for all elements) for background images. Using the <code>background-position</code> CSS style property and setting a <code>width</code> and a <code>weight</code> for each list item we can control the appearance of the list elements. Setting the <code>font-size</code><br />
to <code>0px</code> the text should not be displayed. But in Safari and Chrome if you set it to <code>0px</code> or <code>0em</code> somewhat the text is displayed, even its dimension is reduced. Adding <code>line-height</code> property and set it to <code>0px</code> will make the text disappear forever.</p>
<h3>Conclusions</h3>
<p>With this method you can have the appearance you want for your menu using only images with the help of <code>CSS</code> style properties, with the font type you want, and with the good format of the HTML page code in accordance with the <code>SEO</code> requirements.</p>
<p>Follow this link and see few examples on <a href="http://www.lostresort.biz/examples/rollover/create-menus-using-only-images.html">how to create menus using only images</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using absolute or relative values for measurement units</title>
		<link>http://www.lostresort.biz/blog/2009/07/21/using-absolute-or-relative-values-for-measurement-units/</link>
		<comments>http://www.lostresort.biz/blog/2009/07/21/using-absolute-or-relative-values-for-measurement-units/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 12:37:32 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[absolute values for measurement units]]></category>
		<category><![CDATA[measurement units for margin padding width height]]></category>
		<category><![CDATA[pixel or em]]></category>
		<category><![CDATA[relative values for measurement units]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=476</guid>
		<description><![CDATA[To display elements in the way we desire we have to follow some rules, which means that, if we want to position an element inside a web page or to set the font size of the text, we can use some CSS style properties (such as margin, padding, font-size etc.) and eventually we can acquire the same result<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2009/07/21/using-absolute-or-relative-values-for-measurement-units/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>To display elements in the way we desire we have to follow some rules, which means that, if we want to position an element inside a web page or to set the font size of the text, we can use some <code>CSS</code> style properties (such as <code>margin</code>, <code>padding</code>, <code>font-size</code> etc.) and eventually we can acquire the same result on most web user agents. The goal is to have the same result in all major web browsers. At this time we are talking about Mozilla Firefox, Internet Explorer, Opera, Safari and Chrome.</p>
<h3>CSS units for measurements</h3>
<p>According to W3 Consortium <a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length">lengths refer to horizontal or vertical measurements</a> and there are two types of length units: <em>relative</em> and <em>absolute</em>. Using relative units means that the scale from one medium to another will be more easily.</p>
<p>Relative units are:</p>
<ul>
<li><b>em</b>: the &#8216;font-size&#8217; of the relevant font</li>
<li><b>ex</b>: the &#8216;x-height&#8217; of the relevant font</li>
<li><b>px</b>: pixels, relative to the viewing device</li>
</ul>
<p>The absolute units are:</p>
<ul>
<li><b>in</b>: inches — 1 inch is equal to 2.54 centimeters.</li>
<li><b>cm</b>: centimeters</li>
<li><b>mm</b>: millimeters</li>
<li><b>pt</b>: points — the points used by CSS 2.1 are equal to 1/72nd of an inch.</li>
<li><b>pc</b>: picas — 1 pica is equal to 12 points.</li>
</ul>
<p><cite title="http://www.w3.org/TR/CSS21/syndata.html#value-def-length">Absolute length units are only useful when the physical properties of the output medium are known</cite> and with this, the discussion about these measurement units is closed. </p>
<p>The most known and used units within <code>CSS</code> style sheets are <em>em</em> and <em>px</em>. One is relative to the relevant font and the other is relevant to the viewing device. </p>
<h3>Using <em>em</em> as measurement unit</h3>
<p>If we check the properties for our default (or many) web browser we will see that the default font size is set to <b>16px</b>. A good approach is to define the <code>font-size</code> style attribute for the elements displayed in a web page to <b>62.5%</b> which means that <b>1em</b> measurement unit will be equal to <b>10px</b> (simple calculation <b>62.5%*16px = 10px</b>), or to directly declare <code>font-size:10px</code>. This is good because if we define a <b>1.1 em</b> unit it is translated to <b>11px</b> and so on. On the other hand if we are using values with more than one digit to represent non-integer values, problems may occur because, using values like <code>1.2345em</code> cannot split a pixel to the desired value (<b>1.2345*10px = 12.345px</b>) and the measurement unit will take the rounded value. The problem comes when the subvalue is half of the value, because there is a different behavior among the top wide-spread web browser on rounding these values. Some of them will round the subvalues up (IE 6 and IE 7) and some of them will round the subvalues down (Opera and Safari) and Firefox tends to round both up and down. With this approach the result will not be the same on different web browsers.</p>
<p>So, a good behavior is to use as much as possible multiplying values that in the end will compute integer values (measured as <em>pixels</em>). <a href="http://pxtoem.com/" title="Useful tool to transform px to em units">Take a look at this application which transforms <code>px</code> to <code>em</code> values and viceversa.</a></p>
<h3>Using <em>px</em> as measurement unit</h3>
<p>Because the content of the web pages is mostly served as graphic representation through an user agent to the audience a good reflex might be to set all measurement units using <code>px</code> values. This approach tends to be necessary and most desirable when the <code>width</code> and <code>height</code> style properties are declared, and even the measurement unit is relative to the viewing device, in absolute values the space occupied is the same. </p>
<h3>Using a mix of <em>em</em> and <em>px</em> as measurement units</h3>
<p>Another option is to use <em>px</em> as a measurement unit to declare some style properties, such as <code>width</code>, <code>height</code>, <code>background-position</code> or <code>letter-spacing</code>, and <em>em</em> measurement unit to declare another style properties like <code>margin</code>, <code>padding</code>, <code>line-height</code>, <code>font-size</code> or <code>text-indent</code>. In the last case, the properties will follow the size of the text font.</p>
<h3>Conclusions for what measurement units to use</h3>
<p>Based on whatever option we chose and use for measurement units it&#8217;s good to follow some practices.</p>
<p>A good start is to declare explicitly the <code>font-size</code> for the <code>body</code> element to a fixed value of <b>10px</b>. In this case the control of the sizes isn&#8217;t influenced by the default font size value on users&#8217; web browser. If we set the value as a percent (<b>62,5%</b>) relative to the default web browser&#8217;s font size value, and if this value is different from <b>16px</b>, problems may occur. </p>
<p>Use <em>px</em> as a measurement unit for <code>width</code> and <code>height</code> of the elements. You may find that in IE7 <code>11em</code> is not equal with <code>110px</code> when you set the <code>width</code> of an element (assuming that <b>1em = 10px</b>).</p>
<p>When we use <em>em</em> as measurement unit is better to define subvalues of it with one digit. Using more than one could lead to some unexpected displaying behavior on some web browsers which can make the web site pages look messy.</p>
<p>Also, some attention should be given on inheritance on <code>DOM</code> tree. Changing the <code>font-size</code> value, after the initial declaration of <b>10px</b>, should be made using the <em>em</em> measurement unit. Using <em>px</em> to declare the font size of an element will also modify the value of <em>em</em> measurement unit.</p>
<p>Today web browsers developers tend to adhere to <code>HTML</code> and <code>CSS</code> standards more accurately than a few years ago, and for a web site developer this represents less time consumed for fixing bugs for old versions of user agents. I hope that one day in the near future, the old versions browser will be gone for ever, and the <code>HTML</code> and <code>CSS</code> standards will be implemented in the same way in all major browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2009/07/21/using-absolute-or-relative-values-for-measurement-units/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Building horizontal navigation menus</title>
		<link>http://www.lostresort.biz/blog/2009/04/23/building-horizontal-navigational-menus/</link>
		<comments>http://www.lostresort.biz/blog/2009/04/23/building-horizontal-navigational-menus/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 11:04:43 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[floating elements for navigational menu]]></category>
		<category><![CDATA[horizontal navigation menu]]></category>
		<category><![CDATA[inline elements for navigational menu]]></category>
		<category><![CDATA[navigation menus]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=376</guid>
		<description><![CDATA[Almost every website on the Internet has a navigational menu constructed horizontally or vertically. Simple or more complex with drop-down sub-items, it&#8217;s presence is necessary to lead the visitor(s) to the desired information inside the website. There are quite enough methods to build navigational menus, and I&#8217;ll give my opinion on few of them. Use of table for<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2009/04/23/building-horizontal-navigational-menus/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>Almost every website on the Internet has a navigational menu constructed horizontally or vertically. Simple or more complex with drop-down sub-items, it&#8217;s presence is necessary to lead the visitor(s) to the desired information inside the website. There are quite enough methods to build navigational menus, and I&#8217;ll give my opinion on few of them.</p>
<h3>Use of table for building the menu</h3>
<p>HTML element <code><</code>table<code>></code> has the advantage of being well implemented in all major browsers, so no displaying issues when it's content is deployed. The idea is simple, to create only one table row, with one data cell for each item menu. Using the CSS style attributes the menu will get the appearance it needs.</p>
<p>The HTML code is a follows:</p>
<pre class="crayon-plain-tag"><code>&lt;table&gt;
	&lt;tr&gt;
		&lt;td&gt;&lt;a href=&quot;#&quot;&gt;Item 1&lt;/a&gt;&lt;/td&gt;
		&lt;td&gt;&lt;a href=&quot;#&quot;&gt;Second Item&lt;/a&gt;&lt;/td&gt;
		&lt;td&gt;&lt;a href=&quot;#&quot;&gt;Third One&lt;/a&gt;&lt;/td&gt;
		&lt;td&gt;&lt;a href=&quot;#&quot;&gt;Item 4&lt;/a&gt;&lt;/td&gt;
		&lt;td&gt;&lt;a href=&quot;#&quot;&gt;Fifth in the row&lt;/a&gt;&lt;/td&gt;
		&lt;td&gt;&lt;a href=&quot;#&quot;&gt;Last Item&lt;/a&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;</code></pre>
<p>We can add some style to the table appearance and be sure you set the <code>border-collapse</code> property to <code>collapse</code> so no spaces are between data cells and borders are collapsed into a single border when possible. A detailed presentation of this style property can be found at <a href="http://www.w3schools.com/Css/pr_tab_border-collapse.asp" title="W3 Schools CSS border-collapse property">W3 Schools CSS border-collapse property</a> page.</p>
<h3>Using unordered list items to create navigational menu</h3>
<p>Using the items of an unordered list to create the navigational menu is, maybe, the most used technique.<br />
Comparing with the previous method it requires almost the same number of lines for CSS styles, and the effect is similar. To display items horizontally you can use the <code>display:inline</code> style property, so the elements of the unordered list are displayed in the same line, like a row of elements. Setting the item elements to be displayed as inline elements, make them "unmovable" on y axis, which means that using padding or margin property to arrange the way they are displayed has no effect. But giving some values to <code>height</code> or/and <code>line-height</code> properties this issue can be easily handled.</p>
<p>Another way to display the elements on the same row is to float the list-items of the unordered list to left. This method tends to be more desired then the previous and the result is much similar with the menu created using table elements.</p>
<p>Following the next link you can see <a href="http://www.lostresort.biz/examples/build-navigational-menu/build-horizontal-menu.html" title="Building horizontal navigational menu">a few examples of horizontal navigational menus</a> using the methods described above. I left the style properties unaltered so you can see on different web browser how the menus are displayed.</p>
<h3>Adding some graphic style to the menu</h3>
<p>Using background images for the elements of the menu creates a nice and more desired visual effect. Even if you use a repeated background image or you create a little more sophisticated rounded corner button for your menu you definitely add a bit of color to the (maybe) flat HTML page. In the next line I'll give some hints on how to create these rounded corner buttons.</p>
<h3>Creating rounded corner buttons for the navigational menu</h3>
<p>The simplest approach may be to create a button with a given width and height and use it as a background image for each item of the menu. This will work fine in situations when the text of the menu items has the same length or the differences are insignificant.</p>
<h4>Split image for the background</h4>
<p>Another method is to split the images in two parts and build the menu items using besides the <code>anchor</code> element an additional <code>span</code> element. The code for the menu will look like:</p>
<pre class="crayon-plain-tag"><code>&lt;ul id=&quot;split&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;Item 1&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;Second Item&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;Third One&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;Item 4&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;Fifth in the row&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;Last Item&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</code></pre><p><p>The idea is to set the <code>display:block</code> property for <code>anchor</code> and <code>span</code> elements, and using the <code>padding</code> values the items are displayed correctly with the desired effect, which means that the width of each item will follow the length of the text. Note that the image on the right side in this case should have a width which is greater than the length of the text with the values for the left and right padding added; otherwise the background image will be broken.</p>
<h4>Using two <code>span</code> elements for the right and left margins</h4>
<p>In this case the image is split in three parts, one for the right margin, second for the left margin and the third one for the middle. This last one image may have a width as small as possible, because it can be repeated on x axis. The HTML code of the menu will be as follows:</p>
<pre class="crayon-plain-tag"><code>&lt;ul id=&quot;split3&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;&lt;span&gt;Item 1&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;&lt;span&gt;Second Item&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;&lt;span&gt;Third One&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;&lt;span&gt;Item 4&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;&lt;span&gt;Fifth in the row&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;&lt;span&gt;Last Item&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</code></pre><p><p>
<p>The good part for this method is that the padding values can be set just for the last <code>span</code> element, and this is enough to reach the desired effect. Even we have more CSS and HTML code for this last method I think is more simple than the previous one, because you don't have to tweak <code>padding</code> values to have all elements aligned.</p>
<p>Please follow this link to see (and download files) examples of <a href="http://www.lostresort.biz/examples/build-navigational-menu/build-horizontal-menu.html" title="Building horizontal navigational menu">building navigational menus</a> using the method I've described.</p>
<p><strong>The resulted page was tested on Firefox v3.0.9., Internet Explorer v6.0, v7.0 and v8.1, Opera v9.63, Safari v3.2.1 and Google Chrome.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2009/04/23/building-horizontal-navigational-menus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between italic and emphasis HTML elements</title>
		<link>http://www.lostresort.biz/blog/2009/01/19/difference-between-italic-and-emphasis-html-elements/</link>
		<comments>http://www.lostresort.biz/blog/2009/01/19/difference-between-italic-and-emphasis-html-elements/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 11:30:21 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[difference between i and em HTML elements]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=244</guid>
		<description><![CDATA[Nowadays, when you are visiting websites on the Internet, you are almost familiar with the way some words or even phrases render differently from a regular (normal) font type. The Italic refers to &#8220;cursive typefaces based on a stylized form of calligraphic handwriting&#8221;, and the font style originated in Italy. The influence from calligraphy can be seen in<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2009/01/19/difference-between-italic-and-emphasis-html-elements/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>Nowadays, when you are visiting websites on the Internet, you are almost familiar with the way some words or even phrases render differently from a regular (normal) font type.</p>
<p>The <em>Italic</em> refers to <cite title="According to Wiki">&#8220;cursive typefaces based on a stylized form of calligraphic handwriting&#8221;, and the font style originated in Italy</cite>. The influence from calligraphy can be seen in their usual slight slanting to the right, and is definitely different from what does mean oblique writing.<br />
<strong>When you may use <code><</code>i<code>></code> HTML element?</strong> It is recommended to use the &lt;<code>i</code>&gt; HTML element when you want to define terms (i.e. "the <i>prime</i> number is a natural number which has exactly two distinct natural number divisors: 1 and itself"), to emphasis foreign words (i.e. "<i>Au revoir</i> - she said, touching his hand with a tender gesture.", names of ships (i.e. "<i>Titanic</i> sunk at it's first and only journey.") etc.<br />
In typography, <cite title="According to Wiki"><strong>emphasis</strong> is the exaggeration of words in a text with a font in a different style from the rest of the text—to emphasis them</cite>. So, in this situation, <em>emphasis</em> could mean an italic or an oblique or a bold face font type, or even small caps or adding space between letters.<br />
A web browser displays the words between the <code><</code>em<code>></code> HTML starting and ending tag most often as an </strong>italic</strong> writing, but some browsers can show the text in a different way.<br />
On the other hand if you think from a search engine optimization for your content, it seems that using <code><</code>em<code>></code> rather than <code><</code>i<code>></code> HTML element will give to your words more importance.</p>
<p>As a conclusion, the text effect using the <code><</code>i<code>></code> HTML element can be achieved using Cascading Style Sheets rules, and the use of this element could be deprecated to some point. Using <code><</code>em<code>></code> instead will add more importance to your words or sentences and in most cases the visual effect will be the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2009/01/19/difference-between-italic-and-emphasis-html-elements/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Z-order positioning using z-index style property</title>
		<link>http://www.lostresort.biz/blog/2008/08/31/z-order-positioning-using-z-index-style-property/</link>
		<comments>http://www.lostresort.biz/blog/2008/08/31/z-order-positioning-using-z-index-style-property/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 18:21:15 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[positioned elements]]></category>
		<category><![CDATA[z-index property]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=61</guid>
		<description><![CDATA[According to the W3C CSS 2.1 specifications using z-index property for a positioned box element a stack level can be set and the element can be placed &#8220;behind&#8221; (far from user who faces the screen) or &#8220;in front of&#8221; (closer to the user) another element. In CSS 2.1, each box has a position in three dimensions, vertical, horizontal<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2008/08/31/z-order-positioning-using-z-index-style-property/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>According to the <a href="http://www.w3.org/TR/CSS21/visuren.html#z-index">W3C CSS 2.1 specifications</a> using z-index property for a positioned box element a stack level can be set and the element can be placed &#8220;behind&#8221; <em>(far from user who faces the screen)</em> or &#8220;in front of&#8221; <em>(closer to the user</em>) another element. In CSS 2.1, each box has a position in three dimensions, vertical, horizontal and a &#8220;z-axis&#8221; and are formatted <strong>one on top of the other</strong>. Z-axis positions are particularly relevant when <strong>boxes overlap visually</strong>. As a Web Designer you may face situations when elements create strange behavior on a particular web browser. Known situations can be an <strong>inaccessible anchor</strong> <strong>(link)</strong> (pointing the mouse cursor over it doesn&#8217;t produce any effect such as mouse pointer change and an action on user&#8217;s click), a <strong>background image which does not appear correctly</strong> and maybe the most common example a <strong>JavaScript drop down menu</strong> which produce a relevant effect on what <em>&#8220;one element on top of the other&#8221;</em> means. The z-index style property can be set on any integer value, positive or negative, and note that the greatest value draws the element in front of the other elements with smaller z-index value.</p>
<h3>An example with three positioned division elements one on top of the other</h3>
<p>Follow this link and you will see how <a href="http://www.lostresort.biz/examples/z-index.html">z-indes style property places overlapped boxes</a>. It presents three <strong>&lt;<code>div</code>&gt;</strong> elements, all positioned relatively inside the body container, and inside the first division element are three anchors also positioned relatively. These three containers overlap visually and they are one on top of the other. If the web browser you are using is standard complying according to <a href="http://www.w3.org/TR/CSS21/visuren.html">W3C CSS 2.1 specifications</a> the anchor <em>Link2</em> and <em>Link3</em> are not accessible because of the other two containers which are positioned on the top of first container and they cover those two anchors. Setting a value for the z-index style property, following the specifications, for the <em>Link 2</em> and <em>Link 3</em> anchors make them accessible and these links can be followed. The good browsers are Firefox v2 (and above) and Safari v3.1. The bad user agents are Internet Explorer v6 and v7 and unfortunately Opera v9.52. These last browsers don&#8217;t make any deference between the two situations, and wrongly display the positioned anchor elements.</p>
<p><strong style="color:red"><em>Given Situation: HTML page was constructed using a division container which encapsulates three positioned division elements which are siblings on DOM tree, first one encapsulating three positioned anchor elements.</em></strong></p>
<h3>An overview for a dropdown JavaScript menu</h3>
<p>Searching some information on the Internet, I landed on <a href="http://sitecore.net">Sitecore Website</a>. The layout is clean, the colors are well positioned and the information is presented in a professional way. First screenshot presents the landing main page.</p>
<p><img title="Sitecore website screenshot - main page" src="http://www.lostresort.biz/blog/wp-content/uploads/2008/08/sitecore5.png" alt="Sitecore Website Screenshot" style="width:600px" /></p>
<p>Quite nice I might say. But, since the beginning they have a style issue in the presentation page. The white area over the dark grey background definitely has some text for visitors but, unfortunately the text and the background has the same color, white. Anyway, this does not have an important impact on users interaction as the menu has.<br />
The menu, as you can see in the screenshot, it&#8217;s an unordered list with left floating elements on the top area of the page. Starting from this point, at user&#8217;s action mouse over, a sub menu is displayed, showing relevant links in site. Unfortunately it is not constructed well for all user agents and operating systems, and because the stack level for the sub menu is lower than the stack level for some heading (and other) elements, and when they are sharing the same screen area, the elements of the list in the sub menu are covered by the area of the heading element, and they are not displayed properly. The next screenshots show the undesirable behavior for the sub menu.</p>
<p><img title="Sitecore website screenshot - hidden menu" src="http://www.lostresort.biz/blog/wp-content/uploads/2008/08/sitecore3.png" alt="Sitecore Website Screenshot" style="width:600px" /></p>
<p>and another one &#8230;</p>
<p><img title="Sitecore website screenshot - hidden menu" src="http://www.lostresort.biz/blog/wp-content/uploads/2008/08/sitecore1.png" alt="Sitecore Website Screenshot" style="width:600px" /></p>
<p>and another one &#8230;</p>
<p><img title="Sitecore website screenshot - hidden menu" src="http://www.lostresort.biz/blog/wp-content/uploads/2008/08/sitecore2.png" alt="Sitecore Website Screenshot" style="width:600px" /></p>
<p>and the last one &#8230;</p>
<p><img title="Sitecore website screenshot - hidden menu" src="http://www.lostresort.biz/blog/wp-content/uploads/2008/08/sitecore4.png" alt="Sitecore Website Screenshot" style="width:600px" /></p>
<p>All screenshots present the sub menu which is not <strong>&#8220;in front of other elements&#8221;</strong> like the heading on top. The purpose for any menu is to create access to the website pages. If is interrupted in some way, many visitors will think negative about the intentions of the creator of the website.<br />
Setting a value for the z-index style property for the container which holds the anchors of the sub menu will make it visible in front of any other page element.</p>
<p><strong style="color:red"><em>Given situation: All screenshots were taken using Firefox v3.0.1 user agent on Ubuntu (Hardy Heron) operating system. The behavior described above is a particular situation for the given operating system and the user agent.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2008/08/31/z-order-positioning-using-z-index-style-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create containers with rounded corners</title>
		<link>http://www.lostresort.biz/blog/2008/07/24/how-to-create-container-with-rounded-corners/</link>
		<comments>http://www.lostresort.biz/blog/2008/07/24/how-to-create-container-with-rounded-corners/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 16:53:30 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[rounded corners using images; rounded corners without images; rounded corners container using CSS]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=13</guid>
		<description><![CDATA[In this days a element or a container with rounded corners creates a nice visual effect when navigating a website page. The effect can be done using some small size images, or with only pure and simple HTML code, without any images. If you wonder how can this be achieved I'll present a few techniques which may help<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2008/07/24/how-to-create-container-with-rounded-corners/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>In this days a <<code>div</code>> element or a container with rounded corners creates a nice visual effect when navigating a website page. The effect can be done using some small size images, or with only pure and simple HTML code, without any images. If you wonder how can this be achieved I'll present a few techniques which may help you to create a box or a container with rounded corners, with some of my comments on each one.</p>
<h3>Nifty corners</h3>
<p>First one it's a simple and in some way useful choice of creating rounded corners using Nifty corners. The techniques involves no images just a few lines of HTML code. The idea belongs to Alessandro Fulciniti (we were borne in the same year <img src='http://www.lostresort.biz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) and the main article can be found <a href="http://www.html.it/articoli/nifty/index.html">here</a>. He presents very well how to make a container with rounded corners. It works like this: you have a container when you want to place some text; on top and on the bottom of the <<code>div</code>> element a few <<code>b</code>> elements appear and using some <i>margin</i> attributes for the <<code>b</code>> elements the effect is created. Very simple and efficient.</p>
<p>The result can be seen <a href="http://www.html.it/articoli/nifty/nifty1.html">here</a>.</p>
<p>The HTML code for this container is presented bellow.</p>
<pre class="crayon-plain-tag"><code>&lt;div id=&quot;container&quot;&gt;
   &lt;b class=&quot;rtop&quot;&gt;
      &lt;b class=&quot;r1&quot;&gt;&lt;/b&gt;
      &lt;b class=&quot;r2&quot;&gt;&lt;/b&gt;
      &lt;b class=&quot;r3&quot;&gt;&lt;/b&gt;
      &lt;b class=&quot;r4&quot;&gt;&lt;/b&gt;
   &lt;/b&gt;
!--content goes here --&lt;/code&gt;&gt;
   &lt;b class=&quot;rbottom&quot;&gt;
      &lt;b class=&quot;r4&quot;&gt;&lt;/b&gt;
      &lt;b class=&quot;r3&quot;&gt;&lt;/b&gt;
      &lt;b class=&quot;r2&quot;&gt;&lt;/b&gt;
      &lt;b class=&quot;r1&quot;&gt;&lt;/b&gt;
   &lt;/b&gt;
&lt;/div&gt;</code></pre>
<p>and the CSS attributes for the elements are on the next lines:</p>
<pre class="crayon-plain-tag"><code>.rtop, .rbottom{display:block}
.rtop *, .rbottom *{display: block; height: 1px; overflow: hidden}
.r1{margin: 0 5px}
.r2{margin: 0 3px}
.r3{margin: 0 2px}
.r4{margin: 0 1px; height: 2px}</code></pre>
<p>It's good to note that, because <<code>b</code>> is an <em>inline element</em>, and to be able to change the margin attribute we have to make it a <em>block element</em>, and this is accomplished using the CSS attribute <strong>{display:block}</strong>.</p>
<p>Quite impressionable I can say <img src='http://www.lostresort.biz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<h3>Rounded corners using images for top and bottom area</h3>
<p>This second method is, I think, the most widespread technique for creating containers with rounded corners. The idea is to generate an image for the container's background, and split it in three pieces, one for the top area, another for the bottom area and the third one for the middle section. The height size of the last one can be as small as possible</p>
<p>The HTML code consists in only few lines:</p>
<pre class="crayon-plain-tag"><code>&lt;div id=&quot;container&quot;&gt;
	&lt;p class=&quot;top&quot;&gt;some text here&lt;/p&gt;
	&lt;p&gt;some content here&lt;/p&gt;
	&lt;p&gt;some content here&lt;/p&gt;
	&lt;p class=&quot;bottom&quot;&gt;some text here&lt;/p&gt;
&lt;/div&gt;</code></pre><p><p>
<p>and the styles look like:</p>
<pre class="crayon-plain-tag"><code>#container{margin:20px;background:url(middle.png) center repeat-y;width:420px}
.top{background:url(top.png) no-repeat}
.bottom{background:url(bottom.png) bottom no-repeat}
p{padding:8px 10px 5px 20px}</code></pre>
<p>Following this link you can see <a href="http://www.lostresort.biz/examples/rounded/rcexample.html">an example of rounded corners container</a>.</p>
<p>It's simple and more efficient than previous one, because in this case a border can be used, and it creates a nice visual effect. Note that, all images have less than 1Kb in size. Also the top <<code>p</code>> element can be replaced with a heading tag, like <<code>h3</code>>, so the container looks more interesting.</p>
<h3>Rounded corners using an image for each corner</h3>
<p>This method uses for each corner a small image representing the corner itself. It is very well presented <a href="http://www.webcredible.co.uk/user-friendly-resources/css/css-round-corners-borders.shtml">here</a> with a lot of comments how to create it.</p>
<p>Let's take a look at the HTML code:</p>
<pre class="crayon-plain-tag"><code>&lt;div class=&quot;t&quot;&gt;
   &lt;div class=&quot;b&quot;&gt;
      &lt;div class=&quot;l&quot;&gt;
         &lt;div class=&quot;r&quot;&gt;
            &lt;div class=&quot;bl&quot;&gt;
               &lt;div class=&quot;br&quot;&gt;
                  &lt;div class=&quot;tl&quot;&gt;
                     &lt;div class=&quot;tr&quot;&gt;
                        &lt;!--content goes here--&gt;
                     &lt;/div&gt;
                  &lt;/div&gt;
               &lt;/div&gt;
            &lt;/div&gt;
         &lt;/div&gt;
      &lt;/div&gt;
   &lt;/div&gt;
&lt;/div&gt;</code></pre><p><p><p><p>
<p>As you can see to achieve this effect this method needs <strong>eight</strong> <<code>div</code>> elements, which is quite consistent. This piece of code has exactly 174 chars (excluding the "content ..." text) which means that 174 bytes are "eating" the bandwidth every time the page is loaded.<br />
The styles also are written with consistency:</p>
<pre class="crayon-plain-tag"><code>.t {background: url(dot.gif) 0 0 repeat-x; width: 20em}
.b {background: url(dot.gif) 0 100% repeat-x}
.l {background: url(dot.gif) 0 0 repeat-y}
.r {background: url(dot.gif) 100% 0 repeat-y}
.bl {background: url(bl.gif) 0 100% no-repeat}
.br {background: url(br.gif) 100% 100% no-repeat}
.tl {background: url(tl.gif) 0 0 no-repeat}
.tr {background: url(tr.gif) 100% 0 no-repeat; padding:10px}</code></pre>
<p>As a comparison with the previous method, this one uses <strong>five</strong> images for creating the effect. The good thing is that they are very small in size.</p>
<p>Until the <strong>'border-radius'</strong> CSS3 attribute will be implemented in web browsers' engine (you can read the specifications <a href="http://www.w3.org/TR/css3-background/">here</a> at paragraph 19), one of those methods presented above is good for creating containers with rounded corners.</p>
<p>Another method to get rounded corners is using JavaScript (ECMAScript), but this is another story <img src='http://www.lostresort.biz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2008/07/24/how-to-create-container-with-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

