<?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>IT Crate Tutorial, Tips, Technology News &#187; Website Design &amp; Development</title>
	<atom:link href="http://blog.itcrate.net/category/website-desing-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.itcrate.net</link>
	<description>Website Design and Development Company</description>
	<lastBuildDate>Wed, 12 May 2010 04:53:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What is a Site Map?</title>
		<link>http://blog.itcrate.net/website-desing-development/what-is-a-site-map/</link>
		<comments>http://blog.itcrate.net/website-desing-development/what-is-a-site-map/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 11:00:38 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=483</guid>
		<description><![CDATA[A site map is one page or sometimes a set of pages, which lists all, or most of the pages on a web site.
If your web site is small, consisting of only a few pages, you can have links to all these pages from one page &#8211; the site map.
On the other hand, if your [...]]]></description>
			<content:encoded><![CDATA[<p>A site map is one page or sometimes a set of pages, which lists all, or most of the pages on a web site.</p>
<p>If your web site is small, consisting of only a few pages, you can have links to all these pages from one page &#8211; the site map.<br />
On the other hand, if your site consists of hundreds of pages segregated into directories (hopefully!), the site map of your web site might run into 2 or more pages.<br />
As the term suggests a site map is a map of the web site and can be a list of links or a more complex representation. However, my advice is to keep the site map as simple as possible.</p>
<p>Here is a basic site map of webdevelopersnotes.com<br />
(I have only displayed the important links)</p>
<ul>
<li>Home page</li>
<li>Tutorials</li>
<li>Web design Templates</li>
<li>Web Graphics Design</li>
<li>Web Development Tips and Tricks</li>
<li>Web Page Design</li>
<li>Web Development Resources</li>
<li>Web Development Services</li>
<li>Feedback</li>
<li>Link to WebDevelopersNotes.com</li>
<li>The Webmaster</li>
<li>Privacy Policy</li>
<li>WebDevelopersNotes.com Charity Drive</li>
<li>WebDevelopersNotes.com Disclaimer</li>
</ul>
<h1>Creating a Site Map for your web site</h1>
<p>The simplest way to create a site map is to use the HTML Unordered Lists tag &lt;UL&gt;. The tag can be employed to create simple one-level lists and also display the hierarchical structure of your web site by nesting lists if your site s more complex.</p>
<p>The Unordered Lists tag &lt;UL&gt; supports a neat attribute called <strong>Type</strong> with which you can specify the type of bullet you want for the list &#8211; <strong>disc</strong>, <strong>circle</strong> or <strong>square</strong>.</p>
<p>Let us look at an example:</p>
<ul type="disc">
<li>Electronics
<ul type="square">
<li>DVD Players</li>
<li>V.C.R.s</li>
<li>Computers
<ul type="circle">
<li>Desktops</li>
<li>Laptops</li>
<li>Palmtops</li>
</ul>
</li>
<li>Portable MP3 players</li>
<li>T.V.s</li>
</ul>
</li>
<li>Automobiles
<ul type="square">
<li>Cars</li>
<li>Buses</li>
<li>Motorcycles</li>
<li>Scooters</li>
</ul>
</li>
<li>Furniture
<ul type="square">
<li>Beds</li>
<li>Tables</li>
<li>Chairs</li>
</ul>
</li>
</ul>
<p>The HTML code for the above is:</p>
<pre>&lt;ul type="disc"&gt;
&lt;li&gt;Electronics
	&lt;ul type="square"&gt;
	&lt;li&gt;DVD Players&lt;/li&gt;
	&lt;li&gt;V.C.R.s&lt;/li&gt;
	&lt;li&gt;Computers
		&lt;ul type="circle"&gt;
		&lt;li&gt;Desktops&lt;/li&gt;
		&lt;li&gt;Laptops&lt;/li&gt;
		&lt;li&gt;Palmtops&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Portable MP3 players&lt;/li&gt;
	&lt;li&gt;T.V.s&lt;/li&gt;
	&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Automobiles
	&lt;ul type="square"&gt;
	&lt;li&gt;Cars&lt;/li&gt;
	&lt;li&gt;Buses&lt;/li&gt;
	&lt;li&gt;Motorcycles&lt;/li&gt;
	&lt;li&gt;Scooters&lt;/li&gt;
	&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Furniture
	&lt;ul type="square"&gt;
	&lt;li&gt;Beds&lt;/li&gt;
	&lt;li&gt;Tables&lt;/li&gt;
	&lt;li&gt;Chairs&lt;/li&gt;
	&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>Note how the hierarchical structure is displayed using nested Unordered Lists &lt;UL&gt; tag. We have also used the <strong>TYPE</strong> attribute and specified the kind of bullet we want for each list.</p>
<h1>Why is a Site Map important for a web site?</h1>
<p>An important point to remember ALWAYS is that people come to your site looking for information.<br />
Net surfers are a ruthless lot. If they find information quickly, they stick around; else, they click the &#8220;Back&#8221; button on the browser, close the browser window or simply go to another web page.</p>
<p>So the most important reason a site map is indispensable is because it helps the visitors to understand the site structure and layout and thus, quickly gain access to what your site has to offer.<br />
A site map is a page wherein the structure of a web site is clearly shown to a visitor. They can then choose the page to which they want to go with just one click.</p>
<p>In addition to the advantages a site map offers to &#8220;human&#8221; visitors, it is also important for &#8220;robotic&#8221; visitors from search engines. As a web developer your aim should be to get all public pages on your web site in the search engine database. Since a site map carries links to all pages from one page, it is an ideal candidate to submit to a search engines. Submission of the site map to a search engine might help in getting all web pages indexed quickly by the search engine. I may be incorrect since I have no data to support this point but it just seems logical. However, on a similar note, there are search engines that limit the depth of searching on a web site from the homepage. For example, if you have a page buried deep inside the directory structure on your web site, it might not be picked up by such search engines. In such cases, the importance of a site map is that it pushes the search engine to go directly to the page instead of hunting for links.</p>
<p>There have been clients of mine who got back saying that their site map ranks higher for a particular key word that the actual page which has been optimized for that key word. Some of them like this while others mention that they would prefer of visitors go directly to the actual page.<br />
So if you don&#8217;t like the site map on your web site to rank high, you can always use the NOINDEX attribute of the META tag.</p>
<p>Two important links:<br />
1. How does your web site appear in text web browsers (and, thus, to robots) &#8211; go to the Lynx viewer -&gt; http://www.delorie.com/web/lynxview.html. This is such a good tool. It lets you see your site how a search engine would.<br />
2. To know how may pages Google has indexed on your web site type &#8220;site:mywebsite.com&#8221; in the Google search field.</p>
<p>Large web sites might have hundreds of pages. For such sites, the developer might create dynamic and interactive navigations JavaScript drop down menus making it easy for the human visitors to go quickly to a desired web page. However, a robotic visitor would not understand such menus at all and thus, it is very important of such web sites to have site maps.</p>
<p>If you use a JavaScript navigational drop down menu on your site make sure you include a link to the sitemap page inside the &lt;NOSCRIPT&gt; tag. So if a visitor is using a browser which does not support JavaScript or has JavaScript turned off, he or she will at least know the site structure.</p>
<p>A site map helps you in planning your site before you even start creating it. Once you decide which pages you want, your job is actually made a lot simpler when you start designing the web pages. At the beginning of each web site project, I ask my clients for the site structure. This is simply the site map. A site structure helps me in understanding the number of pages on the site and how they would be laid out. For example, if there are only 6 main pages, I would put links to these pages in a horizontal navigation menu. However, if there are more than 12 main pages, I would prefer to go for the standard left hand side navigation menu system as it would be difficult to put 12 links horizontally in one row.<br />
Thus, another important point is that a site map should actually be the first step in planning for a web site.</p>
<p>A final point to push my argument of the importance of a site map &#8211; Google in its Webmaster Guidelines recommends that sites should have a site map.</p>
<h1>Important points for a good site map</h1>
<p>Here are some hallmarks of a good site map, which helps visitors at finding information quickly on your web site</p>
<ul>
<li>The site map should be the simplest page on your web site.</li>
<li>Do not give a fancy name to the site map link such as &#8220;Web Site Tree&#8221; &#8211; keep it as &#8220;Site map&#8221;, this way your visitors understand immediately what you mean.</li>
<li>You should always avoid &#8220;dynamic&#8221; site maps. Those in which the visitors have to &#8220;work&#8221; their way to get hold of information. Remember, the reason visitors comes to a site map page is because they are lost. To make them work again for something that you can display as a simple static link will just kill the purpose of having a site map.</li>
<li>If the site map is list of text links, be sure to use the TITLE attribute of the anchor tag and include keywords inside it.</li>
<li>It is a good idea to put a sentence describing the page contents below the link for that page on a site map.</li>
<li>A site map should not be the primary navigation on your web site it should complement it.</li>
<li>A link to the site map page is very important and all pages should carry this link. The site map link can be included with other links in the main menu on your web site or placed at a section on the web page from which is it clearly visible.</li>
<li>Other important aspects on a web site should complement site maps. For example, the link color for visited links should be different from that of non-visited links so that visitors understand which pages they have already seen and thus, save time.</li>
</ul>
<h1>Site maps and other nice ways to help visitors quickly locate information on your site</h1>
<p>In addition to including a site map on your web site, you should also to display at the top of each web page, the hierarchical position of that web page. You can find this on this page too &#8211; just above the title &#8220;Site maps and other nice ways to help visitors quickly locate information on your site&#8221; you can find the hierarchical position on this web page on www.webdevelopersnotes.com.</p>
<p>If your hosting service allows you to create your own error pages, you can develop each of the error page (esp. the 404 Page Not Found) as a site map. I usually do this for errors, 400, 403, 404 and 500. Click for details on server error codes.</p>
<p><strong>A question: if the web site is small and all pages link to each other&#8230; is there a need for a site map?</strong><br />
Well, you should always have several paths to go to a page to assist both human as well as robotic visitors and there is no harm in actually creating links to pages&#8230; is there?</p>
<p>Finally, it&#8217;s always a good idea to use a &#8220;Search&#8221; on your web site. There are several ways you can go about this &#8211; write a search program (script) for your web site is a server-side language, download a free, shareware or a paid one and install it on your web site, use one of the several services available on the web, including Google search!</p>
<p>Now you might ask why we need a site map once we have a web site &#8220;search&#8221; feature? Remember, a site map is created for both &#8220;human&#8221; and &#8220;robotic&#8221; visitors. A human would know what to search for but you need to help the webbot to locate pages.</p>
<h1>Scripts to create Site maps for your web site</h1>
<p>I have describe before how you can create a site map using the HTML Unordered list tag. However, if you prefer to automate the creation of the site map on your web site you can find several scripts and programs online.</p>
<p>The site map creation programs and scripts differ in features but all result in a good looking site map for your site.</p>
<p><strong>Likno&#8217;s AllWebMenus</strong><br />
AllWebMenus allows you to create site maps in HTML format, making your web sites search engine friendly!<br />
You can choose among ready-made templates for the look of your site map and of course you can edit the produced HTML file with your favorite authoring tool to give it your own look and feel.<br />
The best news is that this feature is FREE and no purchase of AllWebMenus is required!</p>
<p><strong>SearchBliss Site Map Generator</strong><br />
Create a site map instantly and make your site surfer friendly and easier to navigate. You may also purchase your own with NO links back to SearchBliss and increase your website &#8220;stickiness&#8221; by offering this free resource to your own visitors!</p>
<p><strong>FreeFind</strong><br />
FreeFind&#8217;s site map creator is integrated with their site search technology and can be used together with their search engine, or separately without the use of their search engine.</p>
<p><strong>SiteMapper</strong></p>
<p><strong>sitemap</strong><br />
sitemap indexes all pages under the current directory and writes an HTML map page to standard output. The code looks for description information for each page in a meta `description&#8217; header; if it doesn&#8217;t find one, the page is omitted from the index.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/what-is-a-site-map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HomepageArrowWeb development tips and tricksArrowHTML and JavaScript tips and tricks Sponsored Links Removing underlining from links</title>
		<link>http://blog.itcrate.net/website-desing-development/homepagearrowweb-development-tips-and-tricksarrowhtml-and-javascript-tips-and-tricks-sponsored-links-removing-underlining-from-links/</link>
		<comments>http://blog.itcrate.net/website-desing-development/homepagearrowweb-development-tips-and-tricksarrowhtml-and-javascript-tips-and-tricks-sponsored-links-removing-underlining-from-links/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:23:24 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=450</guid>
		<description><![CDATA[Links on web pages are underlined by default. However, if underlined links do not suit the design you have prepared for the web page, we can easily remove them by employing style sheets.
&#60;style&#62;
&#60;!--

a   {text-decoration:none}

--&#62;
&#60;/style&#62;
The entire code has to be placed inside the &#60;head&#62; of the HTML document or can reside in an external [...]]]></description>
			<content:encoded><![CDATA[<p>Links on web pages are underlined by default. However, if underlined links do not suit the design you have prepared for the web page, we can easily remove them by employing style sheets.</p>
<pre>&lt;style&gt;
&lt;!--

<strong>a   {text-decoration:none}</strong>

--&gt;
&lt;/style&gt;</pre>
<p>The entire code has to be placed inside the <span>&lt;head&gt;</span> of the HTML document or can reside in an external style sheet (<strong>.css</strong>) file.</p>
<p>There are a few more features that can change the look of links on a web page. Experiment with them. Here is a code that makes all links appear in bold Verdana font, size 10 in orange color.</p>
<pre>&lt;style&gt;
&lt;!--

<strong>a   {text-decoration:none;
        font-family:Verdana;
        font-weight:bold;
        font-size:10;
        color:#FF9900}</strong>

--&gt;
&lt;/style&gt;</pre>
<p><strong>Important</strong><br />
Links on the Internet are identified by underlined text. You can read about the pros and cons of removing underlines from links.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/homepagearrowweb-development-tips-and-tricksarrowhtml-and-javascript-tips-and-tricks-sponsored-links-removing-underlining-from-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the properties of links on a web page</title>
		<link>http://blog.itcrate.net/website-desing-development/changing-the-properties-of-links-on-a-web-page/</link>
		<comments>http://blog.itcrate.net/website-desing-development/changing-the-properties-of-links-on-a-web-page/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:22:23 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=448</guid>
		<description><![CDATA[The color of link on a web page is set using the link attribute of the &#60;body&#62; tag. The default color is blue (#0000FF). That is, if you don&#8217;t supply a color value (or color name) to the link attribute, the browser makes all the links on the web page blue in color. Specifying another [...]]]></description>
			<content:encoded><![CDATA[<p>The color of link on a web page is set using the <span>link</span> attribute of the <span>&lt;body&gt;</span> tag. The default color is blue (#0000FF). That is, if you don&#8217;t supply a color value (or color name) to the <span>link</span> attribute, the browser makes all the links on the web page blue in color. Specifying another value, say green, to the <span>link</span> attribute will turn all links in the document into green color.</p>
<h2>Two different colors for links</h2>
<p>Only one color can be set through the <span>link</span> attribute. With Style Sheets, you can have links of different colors and styles in the same document.<br />
Styles sheets can be applied to documents in three different ways. In this article, I&#8217;ll cover two ways to embed style information on a web page.</p>
<h2>Inline Styles</h2>
<pre>&lt;a href="someplace.html" <strong>style="color:#FF00FF"</strong>&gt;Someplace&lt;/a&gt;</pre>
<p>With inline styles, the style information is placed inside the <span>&lt;a&gt;</span> tag. The style consists of a <strong>property:value</strong> pair. In this case, the <strong>color property</strong> makes the link pink (hexadecimal code for pink is #FF00FF).</p>
<p>Here is a link to <a style="color: #ff00ff;" href="http://www.webdevelopersnotes.com/tips/html/someplace.html" target="_blank">Someplace</a></p>
<p>In addition to color, style sheets also allow you to set other values for the link such as font size, font face and text decorations.</p>
<pre>&lt;a href="someplace.html"
<strong>style="color:#CC0000;text-decoration:none;font-size:14pt;
font-face:Arial, Verdana, Sans-serif"</strong>&gt;
Someplace&lt;/a&gt;</pre>
<p>There are four <strong>property:value</strong> pairs each is separated from the other by a semi-colon. <strong>font-size</strong> sets the size to 14 points, <strong>text-decoration</strong> removes the underlines from the link and <strong>font-family</strong> specifies the font to be used.</p>
<p>Here is another link to <a style="color: #cc0000; text-decoration: none; font-size: 14pt;" href="http://www.webdevelopersnotes.com/tips/html/someplace.html" target="_blank">Someplace</a></p>
<h2>Embedded Styles</h2>
<p>Inline styles are similar to the <span>&lt;font&gt;</span> tag. Populating a page with these is considered bad programming practice. It&#8217;s better to include all the style information inside the document HEAD section. The Styles placed in the head are enclosed in the <span>&lt;style&gt;-&lt;/style&gt;</span> tags.</p>
<pre>&lt;style type="text/css"&gt;

a.implink        {color:#FF9900;
                  font-size:12pt;
                  text-decoration:underline;
                  font-family:Verdana, Arial, Sans-serif}
&lt;/style&gt;</pre>
<ul>
<li>The style has four property:value pairs separated by semicolons.</li>
<li>All the property:value pairs are placed inside curly braces.</li>
<li>The style information applies to <strong>A</strong>, which is known as the <strong>selector</strong>. Furthermore, the selector is given a name, <strong>implink</strong>, through which it will be called from the <span>class</span> attribute.</li>
</ul>
<pre>&lt;a href="someplace.html"&gt;Someplace&lt;/a&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/changing-the-properties-of-links-on-a-web-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML anchor tag &#8211; linking files with the  tag</title>
		<link>http://blog.itcrate.net/website-desing-development/html-anchor-tag-linking-files-with-the-tag/</link>
		<comments>http://blog.itcrate.net/website-desing-development/html-anchor-tag-linking-files-with-the-tag/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:21:14 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=446</guid>
		<description><![CDATA[Links on web pages are created using the anchor &#60;a&#62; tags. These links can point to a different document on the Internet or to some anchor on the same page. Documents linked in this manner need not be HTML (or PHP/ASP) files. You can place a link to any kind of file.
So if you have [...]]]></description>
			<content:encoded><![CDATA[<p>Links on web pages are created using the anchor &lt;a&gt; tags. These links can point to a different document on the Internet or to some anchor on the same page. Documents linked in this manner need not be HTML (or PHP/ASP) files. You can place a link to any kind of file.</p>
<p>So if you have a program in .exe format or a .zip file you can attach it to a link like:</p>
<pre>&lt;a href="brahms.zip"&gt;Download Brahms Waltz #3 (zip file)&lt;/a&gt;</pre>
<p>When you click on such links, and your browser is not able to display the file on its own, it pops up a window asking you to &#8220;open&#8221; or &#8220;save&#8221; the file. If you choose to open the file, the browser will launch the application to which such files are attached or else display a window asking you to pick the software, if it cannot open the software that uses such file formats. You can also specify a target location on your systems&#8217; hard drive to save the file to a desired location.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/html-anchor-tag-linking-files-with-the-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making 1 pixel thin vertical separator lines &#8211; HTML tricks</title>
		<link>http://blog.itcrate.net/website-desing-development/making-1-pixel-thin-vertical-separator-lines-html-tricks/</link>
		<comments>http://blog.itcrate.net/website-desing-development/making-1-pixel-thin-vertical-separator-lines-html-tricks/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:19:26 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=445</guid>
		<description><![CDATA[



Do you want a newspaper kind of layout for your web pages? This tip will show you how to do that using a thin (1 pixel width) vertical separator.



It involves designing pages with fixed sizes and a good working knowledge of the &#60;TABLE&#62; tag. If you want to know more about HTML tables, go to [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="5" cellpadding="0" width="301">
<tbody>
<tr>
<td width="150" valign="top">
<p align="justify">Do you want a newspaper kind of layout for your web pages? This tip will show you how to do that using a thin (1 pixel width) vertical separator.</p>
</td>
<td width="1" valign="top" bgcolor="#000000"><img src="http://www.webdevelopersnotes.com/images/blank.gif" alt="Vertical separator" width="1" height="1" /></td>
<td width="150" valign="top">
<p align="justify">It involves designing pages with fixed sizes and a good working knowledge of the &lt;TABLE&gt; tag. If you want to know more about HTML tables, go to the advanced HTML tutorial.</p>
</td>
</tr>
</tbody>
</table>
<p>The layout above consists of a table 301 pixels wide. This table has only one row with three cells. The first and the last cells are 150 pixels wide while the middle one is 1 pixel wide. It&#8217;s the center cell that makes the vertical separator.</p>
<p>The code is:</p>
<pre>&lt;table width="301" cellpadding="0" cellspacing="5" border="0"&gt;
&lt;tr&gt;
&lt;td&gt;So you want a newspaper kind of...&lt;/td&gt;
&lt;td width="1" bgcolor="#000000"&gt;&lt;img src="1-1.gif" width="1"
height="1" border="0" alt="" /&gt;&lt;/td&gt;
&lt;td&gt;It involves designing pages with...&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</pre>
<h2>Important points</h2>
<ul>
<li><strong>Width</strong> of the table is specified in pixel values. This yields a fixed table size. You can use % values in the width attribute but then would have to test the code in both Internet Explorer and Netscape Navigator.</li>
<li>The <strong>cellpadding</strong> attribute is set to zero. Any other value will result in thickening of vertical separator.</li>
<li><strong>Cellspacing</strong> will add some space around the text in columns, which indents in from the separator. You can choose any value for this attribute to suit your needs.</li>
<li>The <strong>width</strong> of the middle cell determines the thickness of the vertical separator. In this case, its set to 1 because that&#8217;s what we want.</li>
<li>The <strong>bgcolor</strong> of the middle cell is black (#000000). This results in a black colored separator. You can thus change the color of the separator by changing the background color of the table cell.</li>
<li>The content of the center cell is a 1 X 1 transparent pixel image &#8211; 1-1.gif in the code above. Some web developers might use the Netscape Communicator specific &lt;SPACER&gt; tag, but I suppose that this will be dropped in the next version of the browser and is best avoided. The 1 X 1 pixel image is only 49 bytes! You can download its zip file from here. (Note: You cannot leave the center cell empty. You can&#8217;t use &amp;nbsp; since this will thicken the separator. The best bet is to use a 1 X 1 pixel transparent gif.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/making-1-pixel-thin-vertical-separator-lines-html-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating rounded corners with HTML tables &#8211; 1</title>
		<link>http://blog.itcrate.net/website-desing-development/creating-rounded-corners-with-html-tables-1/</link>
		<comments>http://blog.itcrate.net/website-desing-development/creating-rounded-corners-with-html-tables-1/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:17:37 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=443</guid>
		<description><![CDATA[Creating rounded corners involves a working knowledge of HTML tables and for that you can refer to the in-depth HTML table tutorial. If you are already familiar with the various tags associated with HTML tables and their attributes, you can go ahead and dig right into this tip else, I would recommend that you first [...]]]></description>
			<content:encoded><![CDATA[<p>Creating rounded corners involves a working knowledge of HTML tables and for that you can refer to the in-depth HTML table tutorial. If you are already familiar with the various tags associated with HTML tables and their attributes, you can go ahead and dig right into this tip else, I would recommend that you first read the HTML table tutorial in the Advanced HTML Tutorial.</p>
<p>That said, creating rounded corners in no rocket science. We simply employ HTML tables to <em>create the layout</em> accomplish our task &#8211; which is to produce something like the table with rounded corners below.</p>
<p><a name="rounded_table"></a></p>
<table style="background-color: #9c084a;" border="0" cellspacing="0" cellpadding="0" width="200">
<tbody>
<tr>
<td width="14"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner1.gif" border="0" alt="Rounded Corner: Top-left" width="14" height="14" /></td>
<td width="172"></td>
<td width="14"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner2.gif" border="0" alt="Rounded Corner: Top-right" width="14" height="14" /></td>
</tr>
<tr>
<td></td>
<td align="center">
<p style="color: #ffffff; font-weight: bold; font-size: 18px;">This is a Rounded table</p>
<p style="color: #ffffff;">You would typically place your content here.</p>
</td>
<td></td>
</tr>
<tr>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner3.gif" border="0" alt="Rounded Corner: Bottom-left" width="14" height="14" /></td>
<td></td>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner4.gif" border="0" alt="Rounded Corner: Bottom-right" width="14" height="14" /></td>
</tr>
</tbody>
</table>
<p>Remember, <strong>all</strong> elements on a web page are rectangular and this includes images! This should come as no surprise because the screen on our monitors is rectangular and so is the browser window and the active space in the browser (the space that displays the web page). Take a look at the image below. Though it might look circular it&#8217;s actually a rectangle (a square to be precise) &#8211; read more about why images are rectangles.</p>
<p><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corners_circle.gif" border="0" alt="An image of a circle" width="100" height="100" /></p>
<p>The background color of the image above is the same as that of this web page (white &#8211; hexadecimal code #FFFFFF) and because of this it seems that the image is <em>only</em> the green colored circle. However, this is not true. The green circle us surrounded by white color which is actually our image background color. If we place the image is a table with a blue background, we can then see the area occupied by the image.</p>
<table style="background-color: #073e99;" border="0" cellspacing="0" cellpadding="20" width="140">
<tbody>
<tr>
<td align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corners_circle.gif" border="0" alt="An image of a circle" width="100" height="100" /></td>
</tr>
</tbody>
</table>
<p>Now you see the white space that surrounds the green circle &#8211; don&#8217;t you?<br />
OK! So what does all this have to do with creating tables with rounded corners? A lot, my good visitor! Now that we understand that though images are rectangles, they <em>can</em> be employed to give a <em>semblance of other shapes</em>. The shape that we would use are the four quarters of a circle. But before jumping to all that, let us create our HTML code on which we will work further.</p>
<p>The first step is to understand that a table with rounded corners is created by a table with 3 columns and 3 rows; thus, a total of 9 table cells &#8211; like the table below:</p>
<table style="background-color: #d999b6;" border="1" cellspacing="0" cellpadding="5" width="210">
<tbody>
<tr>
<td width="70" align="center">Cell 1</td>
<td width="70" align="center">Cell 2</td>
<td width="70" align="center">Cell 3</td>
</tr>
<tr>
<td width="70" align="center">Cell 4</td>
<td width="70" align="center"><strong>Cell 5</strong></td>
<td width="70" align="center">Cell 6</td>
</tr>
<tr>
<td width="70" align="center">Cell 7</td>
<td width="70" align="center">Cell 8</td>
<td width="70" align="center">Cell 9</td>
</tr>
</tbody>
</table>
<p>Cells 1, 3, 7 and 9 will contain the <strong>four quarters of a circle</strong>, cells 2, 4, 6 and 8 will form the <strong>top, left, right and bottom edges</strong> and Cell number 5 will have the actual contents. The <strong>four quarters of a circle</strong> that we plan to use are four different images. And to create these images you need the assistance of your favorite graphics editing tool. Any graphics tool will let you create a circle. Once you have done so, you need to split it into 4 squares and these will be the four quarters.</p>
<p>For example, in Paint Shop Pro or Adobe Photoshop, start by creating a new image of 28&#215;28 pixels. Draw a circle right in the middle of the image. IMPORTANT note: be sure that you have the <strong><em>anti-aliasing option</em></strong> selected before you draw the circle. Then with the selection tool extract 14&#215;14 pixels from the top left. You can repeat this for other quarters or simply flip and mirror the first quarter that you&#8217;ve created. you need to save all the four images with different file names. So starting with an image of a circle, we can get 4 quarters as below:</p>
<table border="0" cellspacing="0" cellpadding="5" width="480">
<tbody>
<tr>
<td align="center"><img src="http://www.webdevelopersnotes.com/tips/html/circle_for_rounded_corners_table.gif" border="0" alt="Circle for rounded corners table" width="28" height="28" /><br />
Our starting image</td>
<td align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner1.gif" border="0" alt="Top-left corner" width="14" height="14" /><br />
Top-left corner</td>
<td align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner2.gif" border="0" alt="Top-right corner" width="14" height="14" /><br />
Top-right corner</td>
<td align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner3.gif" border="0" alt="Bottom-left corner" width="14" height="14" /><br />
Bottom-left corner</td>
<td align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner4.gif" border="0" alt="Bottom-right corner" width="14" height="14" /><br />
Bottom-right corner</td>
</tr>
</tbody>
</table>
<p>We will now place the four images in 3&#215;3 table inside the corresponding cells as detailed above, remove the borders, padding to give us our rounded rectangle.</p>
<pre>&lt;table width="200" <span style="color: #0000ff;">cellpadding="0" cellspacing="0" border="0"
style="background-color: #9C084A"</span>&gt;
&lt;tr&gt;
&lt;td width="14"&gt;&lt;img src="rounded_corner1.gif" width="14"
height="14" border="0" alt="..." /&gt;&lt;/td&gt;

<span style="color: #0000ff;">&lt;td width="172"&gt;&lt;/td&gt;</span>

&lt;td width="14"&gt;&lt;img src="rounded_corner2.gif" width="14"
height="14" border="0" alt="..." /&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;

<span style="color: #0000ff;">&lt;td&gt;&lt;/td&gt;</span>

&lt;td align="center"&gt;<strong>ACTUAL CONTENT</strong>&lt;/td&gt;

<span style="color: #0000ff;">&lt;td&gt;&lt;/td&gt;</span>

&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;&lt;img src="rounded_corner3.gif" width="14" height="14"
border="0" alt="..." /&gt;&lt;/td&gt;

<span style="color: #0000ff;">&lt;td&gt;&lt;/td&gt;</span>

&lt;td&gt;&lt;img src="rounded_corner4.gif" width="14" height="14"
border="0" alt="..." /&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;/table&gt;</pre>
<p>Pay close attention to the code marked in blue.<br />
The width of the HTML table can be anything number that you want, <em>BUT</em> be sure to that the <strong>cellpadding</strong>, <strong>cellspacing</strong> and <strong>border</strong> attributes are set to a value of <strong>zero (0)</strong>. You would also need to give a background color to the table which should be the <em>same color</em> as that of our circle (now split into quarters). I would recommend that you use styles to specify the background color as I have done with <strong><em>style=&#8221;background-color: #9C084A;&#8221;</em></strong> instead of using the <strong><em>BGCOLOR</em></strong> attribute as its been deprecated.<br />
You will notice that some table cells are empty&#8230; you can put a transparent 1&#215;1 pixel gif resized to the correct width and height it you want.<br />
Lastly, <em>DO NOT</em> forget the ALT attribute for the images as this is now a required attribute and your HTML page will not validate correctly if you skip it.<br />
The above code will render a table similar to the one I displayed at the beginning of this article &#8211; View the table with rounded corners.</p>
<h2>Changing the height and width of the table with rounded corners</h2>
<p>As I mentioned above, the width of the table with rounded corners can be anything you want. However, the beauty of this table code is that you dont have to do anything about its height. The height of this table is controlled by the <em>actual contents</em>&#8230; the contents placed in cell #5. So depending on the amount of content we place in this cell, the height of the table will increase on its own. Take a look below:</p>
<table style="background-color: #9c084a;" border="0" cellspacing="0" cellpadding="0" width="400">
<tbody>
<tr>
<td width="14"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner1.gif" border="0" alt="Rounded Corner: Top-left" width="14" height="14" /></td>
<td width="372"></td>
<td width="14"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner2.gif" border="0" alt="Rounded Corner: Top-right" width="14" height="14" /></td>
</tr>
<tr>
<td></td>
<td>
<p style="color: #ffffff; font-weight: bold; font-size: 18px;">Scarborough Fair</p>
<p style="color: #ffffff;">Are you going to scarborough fair?<br />
Parsley, sage, rosemary and thyme.<br />
Remember me to one who lives there.<br />
She once was a true love of mine.</p>
<p>Tell her to make me a cambric shirt,<br />
(a hill in the deep forest green)<br />
Parsley, sage, rosemary and thyme;<br />
(tracing of sparrow on snow-crested brown)<br />
Without no seams nor needle work,<br />
(blankets and bedclothes the child of the mountain)<br />
Then she&#8217;ll be a true love of mine.<br />
(sleeps unaware of the clarion call)</p>
<p>Tell her to find me an acre of land,<br />
(on the side of a hill a sprinkling of leaves)<br />
Parsley, sage, rosemary and thyme;<br />
(washes the grave with silvery tears)<br />
Between the salt water and the sea strand,<br />
(a soldier cleans and polishes a gun)<br />
Then she&#8217;ll be a true love of mine.</p>
<p>Tell her to reap it with a sickle of leather,<br />
(war bellows blazing in scarlet battalions)<br />
Parsley, sage, rosemary and thyme;<br />
(generals order their soldiers to kill)<br />
And gather it all in a bunch of heather,<br />
(and to fight for a cause they&#8217;ve long ago forgotten)<br />
Then she&#8217;ll be a true love of mine.</td>
<td></td>
</tr>
<tr>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner3.gif" border="0" alt="Rounded Corner: Bottom-left" width="14" height="14" /></td>
<td></td>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner4.gif" border="0" alt="Rounded Corner: Bottom-right" width="14" height="14" /></td>
</tr>
</tbody>
</table>
<p>This was the first part of the creating a table with rounded corners. Now let us see how we can create more advanced and complex corners of such tables. This is discussed in the next part &#8211; Complex and more advanced rounded corners for HTML tables.</p>
<p>Before we delve on how to create complex rounded corners, let me point out that the <em>roundedness</em> of the table depends on the curves of the image and thus the size of the circle that you started with. So if your circle image was large, it will result in a table with smoother and larger curves and if the circle was small, the rounded curves would be tighter. Take a look at the examples below.</p>
<div>
<table border="0" cellspacing="0" cellpadding="5" width="450">
<tbody>
<tr>
<td width="225" valign="top">
<table style="background-color: #9c084a;" border="0" cellspacing="0" cellpadding="0" width="200">
<tbody>
<tr>
<td width="50"><img src="http://www.webdevelopersnotes.com/tips/html/rc1_1.gif" border="0" alt="Rounded corner: top-left" width="50" height="50" /></td>
<td width="100"></td>
<td width="50"><img src="http://www.webdevelopersnotes.com/tips/html/rc1_2.gif" border="0" alt="Rounded corner: top-right" width="50" height="50" /></td>
</tr>
<tr>
<td></td>
<td align="center">
<p style="color: #ffffff; font-weight: bold; font-size: 18px;">This is a Rounded table</p>
<p style="color: #ffffff;">You would typically place your content here.</p>
</td>
<td></td>
</tr>
<tr>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rc1_3.gif" border="0" alt="Rounded corner: bottom-left" width="50" height="50" /></td>
<td></td>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rc1_4.gif" border="0" alt="Rounded corner: bottom-right" width="50" height="50" /></td>
</tr>
</tbody>
</table>
<p><strong>Each corner image is 50&#215;50 pixels</strong></td>
<td width="225" valign="top">
<table style="background-color: #9c084a;" border="0" cellspacing="0" cellpadding="0" width="200">
<tbody>
<tr>
<td width="8"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner1_1.gif" border="0" alt="Rounded corner: top-left" width="8" height="8" /></td>
<td width="184"></td>
<td width="8"><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner1_2.gif" border="0" alt="Rounded corner: top-right" width="8" height="8" /></td>
</tr>
<tr>
<td></td>
<td align="center">
<p style="color: #ffffff; font-weight: bold; font-size: 18px;">This is a Rounded table</p>
<p style="color: #ffffff;">You would typically place your content here.</p>
</td>
<td></td>
</tr>
<tr>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner1_3.gif" border="0" alt="Rounded corner: bottom-left" width="8" height="8" /></td>
<td></td>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded_corner1_4.gif" border="0" alt="Rounded corner: bottom-right" width="8" height="8" /></td>
</tr>
</tbody>
</table>
<p><strong>Each corner image is 8&#215;8 pixels</strong></td>
</tr>
</tbody>
</table>
</div>
<p>By now, I guess you would have realized that the secret (if there was any) lies in the images that we have used for the rounded corners. So let us start on creating complex rounded tables.<br />
Here is the simplest of the complex rounded tables that we are going to create.</p>
<table style="background-color: #ffffff;" border="0" cellspacing="0" cellpadding="0" width="200">
<tbody>
<tr>
<td width="16"><img src="http://www.webdevelopersnotes.com/tips/html/rounded1.gif" border="0" alt="Rounded corner: top-left" width="16" height="16" /></td>
<td style="background-image: url(back1.gif);" width="168"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="1" height="16" /></td>
<td width="16"><img src="http://www.webdevelopersnotes.com/tips/html/rounded2.gif" border="0" alt="Rounded corner: top-right" width="16" height="16" /></td>
</tr>
<tr>
<td style="background-image: url(back4.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="16" height="1" /></td>
<td align="center">
<p style="color: #000066; font-weight: bold; font-size: 18px;">This is a Rounded table</p>
<p style="color: #000066;">You would typically place your content here.</p>
</td>
<td style="background-image: url(back2.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="16" height="1" /></td>
</tr>
<tr>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded3.gif" border="0" alt="Rounded corner: bottom-left" width="16" height="16" /></td>
<td style="background-image: url(back3.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="1" height="16" /></td>
<td><img src="http://www.webdevelopersnotes.com/tips/html/rounded4.gif" border="0" alt="Rounded corner: bottom-right" width="16" height="16" /></td>
</tr>
</tbody>
</table>
<p>This rounded table is made using 8 images &#8211; 4 for the rounded corners and the rest are employed for the borders of the four sides. Here are the four images used for the corners:</p>
<table border="0" cellspacing="0" cellpadding="5" width="400">
<tbody>
<tr>
<td style="border-left: 1px solid #999999; border-right: 1px solid #999999;" align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded1.gif" border="0" alt="Rounded corner: top-left" width="16" height="16" /><br />
16&#215;16 pixels<br />
Corner for top-left</td>
<td style="border-right: 1px solid #999999;" align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded2.gif" border="0" alt="Rounded corner: top-right" width="16" height="16" /><br />
16&#215;16 pixels<br />
Corner for top-right</td>
<td style="border-right: 1px solid #999999;" align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded3.gif" border="0" alt="Rounded corner: bottom-left" width="16" height="16" /><br />
16&#215;16 pixels<br />
Corner for bottom-left</td>
<td style="border-right: 1px solid #999999;" align="center"><img src="http://www.webdevelopersnotes.com/tips/html/rounded4.gif" border="0" alt="Rounded corner: bottom-right" width="16" height="16" /><br />
16&#215;16 pixels<br />
Corner for bottom-right</td>
</tr>
</tbody>
</table>
<p>The four sides are made by very thin images &#8211; The <strong>top and bottom edges</strong> are created using images that are 1 pixel in width and the <strong>left and right edges</strong> are of images that are 1 pixel in height. Since each of our corner image is 16 pixels in both width and height, the images for the top and bottom edges are 16 pixels in height (to match the corners) and the ones for the left and right sides are 16 pixels in width. Thus, the images for top and bottom edges are 1 pixel in width and 16 pixels in height and images for left and right edges are 16 pixels in width and 1 pixel in height. Because these images are too small (or thin, if you like) to be displayed at their present dimensions, I have magnified the top-left corner of our table to show you two of the four images &#8211; the image used for the top edge and the left edge.</p>
<p><img src="http://www.webdevelopersnotes.com/tips/html/3images.gif" border="0" alt="Three images that make the rounded rectangle" width="150" height="150" /></p>
<p>The above depicts 3 of the images used in the rounded rectangle &#8211; the image for the top-left corner, the image used for the top edge and the image that makes the left border.<br />
<strong>Now an important point:</strong> The four borders are made up of very thin images and hence these images are employed as <strong><em>backgrounds</em></strong> for their respective table cells. Here is the code:</p>
<pre>&lt;table width="200" cellpadding="0" cellspacing="0" border="0"&gt;
&lt;tr&gt;
&lt;td width="16"&gt;&lt;img src="rounded1.gif" width="16" height="16"
border="0" alt="..."&gt;&lt;/td&gt;
&lt;td width="168" <span style="color: #0000ff;">style="background-image: url('back1.gif');"</span>&gt;
&lt;img src="<span style="color: #0000ff;">blank.gif</span>" width="1" height="16" border="0" alt="..." /&gt;
&lt;/td&gt;
&lt;td width="16"&gt;&lt;img src="rounded2.gif" width="16" height="16"
border="0" alt="..."&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td <span style="color: #0000ff;">style="background-image: url('back4.gif');"</span>&gt;
&lt;img src="blank.gif" width="16" height="1" border="0" alt="..." /&gt;
&lt;/td&gt;
&lt;td&gt;<strong>ACTUAL CONTENTS</strong>&lt;/td&gt;
&lt;td <span style="color: #0000ff;">style="background-image: url('back2.gif');"</span>&gt;
&lt;img src="blank.gif" width="16" height="1" border="0" alt="..." /&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;img src="rounded3.gif" width="16" height="16" border="0" alt="..."&gt;
&lt;/td&gt;
&lt;td <span style="color: #0000ff;">style="background-image: url('back3.gif');"</span>&gt;
&lt;img src="blank.gif" width="1" height="16" border="0" alt="..." /&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;img src="rounded4.gif" width="16" height="16" border="0" alt="..."&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</pre>
<p>The code in blue is the one I would like you to pay attention to. Here I have employed the <strong><em>background-image</em></strong> style property and have specified the four images as backgrounds of their respective table cells which will then make the top, bottom left and right borders. <strong>Note</strong> the use of <em>blank.gif</em> image which is a 1&#215;1 pixel transparent gif. This blank image will help you in adjusting the width of table cell without spending time and messing things up.</p>
<p>Before I end this article, here are some nice looking tables with complex rounded corners &#8211; remember, <em>it&#8217;s all in the images</em>!</p>
<table style="background-color: #ffffff;" border="0" cellspacing="0" cellpadding="0" width="200">
<tbody>
<tr>
<td width="16"><img src="http://www.webdevelopersnotes.com/tips/html/cr1.gif" border="0" alt="Rounded corner: top-left" width="16" height="16" /></td>
<td style="background-image: url(crb1.gif);" width="168"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="1" height="16" /></td>
<td width="16"><img src="http://www.webdevelopersnotes.com/tips/html/cr2.gif" border="0" alt="Rounded corner: top-right" width="16" height="16" /></td>
</tr>
<tr>
<td style="background-image: url(crb4.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="16" height="1" /></td>
<td align="center">
<p style="color: #000066; font-weight: bold; font-size: 18px;">This is a Rounded table</p>
<p style="color: #000066;">You would typically place your content here.</p>
</td>
<td style="background-image: url(crb2.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="16" height="1" /></td>
</tr>
<tr>
<td><img src="http://www.webdevelopersnotes.com/tips/html/cr3.gif" border="0" alt="Rounded corner: bottom-left" width="16" height="16" /></td>
<td style="background-image: url(crb3.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="1" height="16" /></td>
<td><img src="http://www.webdevelopersnotes.com/tips/html/cr4.gif" border="0" alt="Rounded corner: bottom-right" width="16" height="16" /></td>
</tr>
</tbody>
</table>
<table style="background-color: #ffffff;" border="0" cellspacing="0" cellpadding="0" width="200">
<tbody>
<tr>
<td width="13"><img src="http://www.webdevelopersnotes.com/tips/html/crb1_1.gif" border="0" alt="Rounded corner: top-left" width="13" height="13" /></td>
<td style="background-image: url(crb2_1.gif);" width="174"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="1" height="13" /></td>
<td width="13"><img src="http://www.webdevelopersnotes.com/tips/html/crb1_2.gif" border="0" alt="Rounded corner: top-right" width="13" height="13" /></td>
</tr>
<tr>
<td style="background-image: url(crb2_4.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="13" height="1" /></td>
<td align="center">
<p style="color: #000066; font-weight: bold; font-size: 18px;">This is a Rounded table</p>
<p style="color: #000066;">You would typically place your content here.</p>
</td>
<td style="background-image: url(crb2_2.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="13" height="1" /></td>
</tr>
<tr>
<td><img src="http://www.webdevelopersnotes.com/tips/html/crb1_3.gif" border="0" alt="Rounded corner: bottom-left" width="13" height="13" /></td>
<td style="background-image: url(crb2_3.gif);"><img src="http://www.webdevelopersnotes.com/images/blank.gif" border="0" alt="Background" width="1" height="13" /></td>
<td><img src="http://www.webdevelopersnotes.com/tips/html/crb1_4.gif" border="0" alt="Rounded corner: bottom-right" width="13" height="13" /></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/creating-rounded-corners-with-html-tables-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing space and padding from FORM tag</title>
		<link>http://blog.itcrate.net/website-desing-development/removing-space-and-padding-from-form-tag/</link>
		<comments>http://blog.itcrate.net/website-desing-development/removing-space-and-padding-from-form-tag/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:15:30 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=441</guid>
		<description><![CDATA[This tip concerns removing the extra padding or space before and after the &#60;FORM&#62; tag. Let us suppose that you have to constrain two text fields and a submit button/image in a limited vertical space. In order to layout the form fields and the button/image, you would place them in table cells (as we do [...]]]></description>
			<content:encoded><![CDATA[<p>This tip concerns removing the extra padding or space before and after the <span>&lt;FORM&gt;</span> tag. Let us suppose that you have to constrain two text fields and a submit button/image in a limited vertical space. In order to layout the form fields and the button/image, you would place them in table cells (as we do with most other HTML elements). However, you will notice that there is extra space (vertical space) or padding before <span>&lt;FORM&gt;</span> occurs and after the end of the tag.</p>
<p>Now for an example. Below is issue which we are taking about.</p>
<table style="margin: 0px; padding: 0px; background: #878787 none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="0" cellspacing="0" cellpadding="1" width="200">
<tbody>
<tr>
<td>
<table style="margin: 0px; padding: 0px; background: #eeeeee none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="0" cellspacing="0" cellpadding="3" width="198">
<tbody>
<tr>
<td><strong>Member login</strong></td>
</tr>
<tr>
<td>
<form>
<table border="0" cellspacing="0" cellpadding="2" width="192">
<tbody>
<tr>
<td align="right">Username:</td>
<td><span><br />
<input maxlength="20" name="texte1" size="10" type="text" /></span></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><span><br />
<input maxlength="20" name="texte2" size="10" type="password" /></span></td>
</tr>
<tr>
<td></td>
<td><span><br />
<input type="button" value="Login" /></span></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>Do you notice the extra space <em><strong>after</strong></em> the login button? Good. Now, let us see how we can remove this space. First check the <em>incorrect</em> code. The code for the above form is:</p>
<pre>&lt;TABLE WIDTH="200" CELLPADDING="1" CELLSPACING="0" BORDER="0"
BGCOLOR="#878787"&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;TABLE WIDTH="198" CELLPADDING="3" CELLSPACING="0" BORDER="0"
BGCOLOR="#EEEEEE"&gt;
   &lt;TR&gt;
   &lt;TD BACKGROUND="greygrad.gif"&gt;&lt;B&gt;Member login&lt;/B&gt;&lt;/TD&gt;
   &lt;/TR&gt;
   &lt;TR&gt;
   &lt;TD&gt;
   <span style="color: #ff0000;">&lt;FORM NAME="spaceform"&gt;</span>
   &lt;TABLE WIDTH="192" CELLPADDING="2" CELLSPACING="0" BORDER="0"&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Username:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="TEXT" NAME="texte1" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Password:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="PASSWORD" NAME="texte2" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD&gt; &lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="SUBMIT" VALUE="Login" ...&gt;/TD&gt;
      &lt;/TR&gt;
   &lt;/TABLE&gt;
   <span style="color: #ff0000;">&lt;/FORM&gt;</span>
   &lt;/TD&gt;
   &lt;/TR&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;</pre>
<p>Notice the <span>&lt;FORM&gt;</span> tag surrounds the table in which the form fields occur.<br />
In order to remove the extra space/padding, we take the help of <em><strong>Style Sheets</strong></em>. Now CSS (<strong>Cascading Style Sheets</strong>), allow us to set the <strong>margins</strong> and <strong>padding</strong> properties around HTML elements and we employ these two properties to remove the extra space and padding around the <span>&lt;FORM&gt;</span> element. Our code thus becomes:</p>
<pre>&lt;TABLE WIDTH="200" CELLPADDING="1" CELLSPACING="0" BORDER="0"
BGCOLOR="#878787"&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;TABLE WIDTH="198" CELLPADDING="3" CELLSPACING="0" BORDER="0"
BGCOLOR="#EEEEEE"&gt;
   &lt;TR&gt;
   &lt;TD BACKGROUND="greygrad.gif"&gt;&lt;B&gt;Member login&lt;/B&gt;&lt;/TD&gt;
   &lt;/TR&gt;
   &lt;TR&gt;
   &lt;TD&gt;
   <span style="color: #0000ff;">&lt;FORM NAME="spaceform" STYLE="margin: 0px; padding: 0px;&gt;</span>
   &lt;TABLE WIDTH="192" CELLPADDING="2" CELLSPACING="0" BORDER="0"&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Username:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="TEXT" NAME="texte1" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Password:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="PASSWORD" NAME="texte2" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD&gt; &lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="SUBMIT" VALUE="Login" ...&gt;/TD&gt;
      &lt;/TR&gt;
   &lt;/TABLE&gt;
   <span style="color: #0000ff;">&lt;/FORM&gt;</span>
   &lt;/TD&gt;
   &lt;/TR&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;</pre>
<p>With CSS we specify the <strong>margin</strong> and <strong>padding</strong> style sheet properties to have a value of <strong>zero (0) pixels (px)</strong>. This results in the removal of any extra space around the HTML form. The result is below:</p>
<table style="margin: 0px; padding: 0px; background: #878787 none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="0" cellspacing="0" cellpadding="1" width="200">
<tbody>
<tr>
<td>
<table style="margin: 0px; padding: 0px; background: #eeeeee none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="0" cellspacing="0" cellpadding="3" width="198">
<tbody>
<tr>
<td background="greygrad.gif"><strong>Member login</strong></td>
</tr>
<tr>
<td>
<form style="margin: 0px; padding: 0px;">
<table style="margin: 0px; padding: 0px;" border="0" cellspacing="0" cellpadding="2" width="192">
<tbody>
<tr>
<td align="right">Username:</td>
<td><span><br />
<input maxlength="20" name="texte1" size="10" type="text" /></span></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><span><br />
<input maxlength="20" name="texte2" size="10" type="password" /></span></td>
</tr>
<tr>
<td></td>
<td><span><br />
<input type="button" value="Login" /></span></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>Don&#8217;t go away yet &#8211; there is more.<br />
The purpose of the first TABLE (the one that encloses the FORM and the second table) is ONLY to create a thin grey colored border. Most web developers and designers used this technique because it was cross-browser compatible. However, with the important browsers (Internet Explorer, Mozilla, Netscape, Opera&#8230;) now supporting style sheets and <em><strong>(imp)</strong> with the same results</em>, we can again employ style sheets to create a 1 pixel thin border and do away with our outermost TABLE. Check the code below:</p>
<pre>&lt;TABLE WIDTH="198" CELLPADDING="3" CELLSPACING="0" BORDER="0"
<span style="color: #0000ff;">STYLE="background-color: #EEEEEE; border: 1px solid #878787"</span>&gt;
   &lt;TR&gt;
   &lt;TD <span style="color: #0000ff;">STYLE="background-image: url('greygrad.gif');"</span>&gt;&lt;B&gt;
   Member login&lt;/B&gt;&lt;/TD&gt;
   &lt;/TR&gt;
   &lt;TR&gt;
   &lt;TD&gt;
   &lt;FORM NAME="spaceform" STYLE="margin: 0px; padding: 0px;&gt;
   &lt;TABLE WIDTH="192" CELLPADDING="2" CELLSPACING="0" BORDER="0"&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Username:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="TEXT" NAME="texte1" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Password:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="PASSWORD" NAME="texte2" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD&gt; &lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="SUBMIT" VALUE="Login" ...&gt;/TD&gt;
      &lt;/TR&gt;
   &lt;/TABLE&gt;
   &lt;/FORM&gt;
   &lt;/TD&gt;
   &lt;/TR&gt;
&lt;/TABLE&gt;</pre>
<p>The code in blue reflects three <strong>cascading style sheets properties</strong> that I have introduced. These Style Sheet properties are placed inside the <strong><em>STYLE</em></strong> attribute of an HTML element (the <span>&lt;TABLE&gt;</span> and <span>&lt;TD&gt;</span> elements in our case). You will notice that each of the three properties (<strong>background-color</strong>, <strong>border</strong> and <strong>background-image</strong>) is given certain values. Before I detail each of the style sheets properties and their values, let us first check up how our form looks with this new code:</p>
<table style="border: 1px solid #878787; margin: 0px; padding: 0px; background-color: #eeeeee;" border="0" cellspacing="0" cellpadding="3" width="198">
<tbody>
<tr>
<td style="background-image: url(greygrad.gif);"><strong>Member login</strong></td>
</tr>
<tr>
<td>
<form style="margin: 0px; padding: 0px;">
<table style="margin: 0px; padding: 0px;" border="0" cellspacing="0" cellpadding="2" width="192">
<tbody>
<tr>
<td align="right">Username:</td>
<td><span><br />
<input maxlength="20" name="texte1" size="10" type="text" /></span></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><span><br />
<input maxlength="20" name="texte2" size="10" type="password" /></span></td>
</tr>
<tr>
<td></td>
<td><span><br />
<input type="button" value="Login" /></span></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
<p>Style sheets can be included in an HTML document in three ways &#8211; <strong>External Styles</strong>, <strong>Embedded Styles</strong> and <strong>Inline Styles</strong>. We don&#8217;t have to go into those &#8220;gory&#8221; details for now, but just for your information, we are including styles sheets in our document as <em>Inline Styles</em> &#8211; Styles placed <em>inline</em> with the HTML code.</p>
<h3>The Style sheets <em>background-color</em> property</h3>
<p>The property simply specifies the background color of the HTML element. I am a fan of Hexadecimal color codes, so I have used the hexadecimal code for light grey &#8211; <em>#EEEEEE</em>. Note, the value of the style sheet property is separated from its name with a <strong>color &#8211; :</strong></p>
<h3>The Style sheets <em>background-image</em> property</h3>
<p>This property specifies the background image to be used for that HTML element. The image is refered by its URL which can be a absolute or a relative URL. I have used a relative URL here.</p>
<h3>The Style sheets <em>border</em> property</h3>
<p>The way I have used this style sheet property is more complex that the above two. Here I have specified 3 values to it &#8211; <strong>1px</strong>, <strong>solid</strong> and <strong>#878787</strong>. Note, there are no commas separating the three values. So what I have essentially done is to direct the element to have a <em>1px</em> (one pixel) thin <em>#878787</em> colored <em>solid</em> border. Taking a step further in our understanding, let us create the same table with a 2 pixel thick, orange (#FF9900) colored border with dashes.</p>
<pre>&lt;TABLE WIDTH="198" CELLPADDING="3" CELLSPACING="0" BORDER="0"
<span style="color: #0000ff;">STYLE="background-color: #EEEEEE; border: 2px dashed #FF9900"</span>&gt;
   &lt;TR&gt;
   &lt;TD <span style="color: #0000ff;">STYLE="background-image: url('greygrad.gif');"</span>&gt;&lt;B&gt;
   Member login&lt;/B&gt;&lt;/TD&gt;
   &lt;/TR&gt;
   &lt;TR&gt;
   &lt;TD&gt;
   &lt;FORM NAME="spaceform" STYLE="margin: 0px; padding: 0px;&gt;
   &lt;TABLE WIDTH="192" CELLPADDING="2" CELLSPACING="0" BORDER="0"&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Username:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="TEXT" NAME="texte1" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD ALIGN="RIGHT"&gt;Password:&lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="PASSWORD" NAME="texte2" ...&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR&gt;
      &lt;TD&gt; &lt;/TD&gt;
      &lt;TD&gt;&lt;INPUT TYPE="SUBMIT" VALUE="Login" ...&gt;/TD&gt;
      &lt;/TR&gt;
   &lt;/TABLE&gt;
   &lt;/FORM&gt;
   &lt;/TD&gt;
   &lt;/TR&gt;
&lt;/TABLE&gt;</pre>
<table style="border: 2px dashed #ff9900; margin: 0px; padding: 0px; background-color: #eeeeee;" border="0" cellspacing="0" cellpadding="3" width="198">
<tbody>
<tr>
<td style="background-image: url(greygrad.gif);"><strong>Member login</strong></td>
</tr>
<tr>
<td>
<form style="margin: 0px; padding: 0px;">
<table style="margin: 0px; padding: 0px;" border="0" cellspacing="0" cellpadding="2" width="192">
<tbody>
<tr>
<td align="right">Username:</td>
<td><span><br />
<input maxlength="20" name="texte1" size="10" type="text" /></span></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><span><br />
<input maxlength="20" name="texte2" size="10" type="password" /></span></td>
</tr>
<tr>
<td></td>
<td><span><br />
<input type="button" value="Login" /></span></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
<p>That was a glimpse of what style sheets can do to your HTML document. Not only can they help you in creating those visuals which we either not possible with HTML or just too painful and complicated to implement, but they also help in segregating design and content which is what all web developers should strive for. Style sheets are the future so eventhough you might feel that their implementation is not the same across different browsers, it is a good idea to get a grasp their essence quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/removing-space-and-padding-from-form-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML ordered lists &#8211; cool HTMl tips</title>
		<link>http://blog.itcrate.net/website-desing-development/html-ordered-lists-cool-html-tips-2/</link>
		<comments>http://blog.itcrate.net/website-desing-development/html-ordered-lists-cool-html-tips-2/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:14:33 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=439</guid>
		<description><![CDATA[Here is a cool HTML tip for ordered lists created using &#60;ol&#62; HTML tag.
The type attribute of &#60;ol&#62; list determines which kind of bullet will be used for listing elements.
We can use three types of bullets for the &#60;ol&#62; lists &#8211; Alphabet, Roman numerals and numbers/digits.
Take a look at the code below:
&#60;ol type="1"&#62;
&#60;li&#62;Item 1&#60;/li&#62;
&#60;li&#62;Item 2&#60;/li&#62;
&#60;li&#62;Item [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a cool HTML tip for ordered lists created using <span>&lt;ol&gt;</span> HTML tag.</p>
<p>The <span><strong>type</strong></span> attribute of <span>&lt;ol&gt;</span> list determines which kind of bullet will be used for listing elements.</p>
<p>We can use three types of bullets for the <span>&lt;ol&gt;</span> lists &#8211; Alphabet, Roman numerals and numbers/digits.<br />
Take a look at the code below:</p>
<pre>&lt;ol type="1"&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;/ol&gt;</pre>
<p>The <span><strong>type</strong></span> attribute has been set to <strong>1</strong>, Arabic numerals (digits). This is the default and you don&#8217;t need to specify it.<br />
The above code is rendered in a browser as:</p>
<ol type="1">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<p>To change the bullets to roman numerals, the <span>TYPE</span> attribute needs to be set to <strong>i</strong> (lowercase alphabet i) or <strong>I</strong> (uppercase alphabet I). Let us check these out.</p>
<table border="0" cellspacing="0" cellpadding="3" width="400">
<tbody>
<tr>
<td valign="top">
<pre>&lt;ol type="i"&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;li&gt;Item 5&lt;/li&gt;
&lt;li&gt;Item 6&lt;/li&gt;
&lt;li&gt;Item 7&lt;/li&gt;
&lt;li&gt;Item 8&lt;/li&gt;
&lt;li&gt;Item 9&lt;/li&gt;
&lt;li&gt;Item 10&lt;/li&gt;
&lt;li&gt;Item 11&lt;/li&gt;
&lt;/ol&gt;</pre>
</td>
<td valign="top">
<pre>&lt;ol type="I"&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;li&gt;Item 5&lt;/li&gt;
&lt;li&gt;Item 6&lt;/li&gt;
&lt;li&gt;Item 7&lt;/li&gt;
&lt;li&gt;Item 8&lt;/li&gt;
&lt;li&gt;Item 9&lt;/li&gt;
&lt;li&gt;Item 10&lt;/li&gt;
&lt;li&gt;Item 11&lt;/li&gt;
&lt;/ol&gt;</pre>
</td>
</tr>
<tr>
<td valign="top">Is rendered as:</p>
<ol type="i">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
<li>Item 7</li>
<li>Item 8</li>
<li>Item 9</li>
<li>Item 10</li>
<li>Item 11</li>
</ol>
</td>
<td valign="top">Is rendered as:</p>
<ol type="I">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
<li>Item 7</li>
<li>Item 8</li>
<li>Item 9</li>
<li>Item 10</li>
<li>Item 11</li>
</ol>
</td>
</tr>
</tbody>
</table>
<p>Another attribute, though you may not encounter it often, is <span><strong>START</strong></span>. It takes a number as value and this specifies the number (or alphabet) with which the list would start.</p>
<pre>&lt;ol type="1" start="4"&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;/ol&gt;</pre>
<p>is rendered as:</p>
<ol type="1">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<pre>&lt;ol type="A" start="10"&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;/ol&gt;</pre>
<p>is displayed as:</p>
<ol type="A">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/html-ordered-lists-cool-html-tips-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML ordered lists &#8211; cool HTMl tips</title>
		<link>http://blog.itcrate.net/website-desing-development/html-ordered-lists-cool-html-tips/</link>
		<comments>http://blog.itcrate.net/website-desing-development/html-ordered-lists-cool-html-tips/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:13:21 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=437</guid>
		<description><![CDATA[Here is a cool HTML tip for ordered lists created using &#60;ol&#62; HTML tag.
The type attribute of &#60;ol&#62; list determines which kind of bullet will be used for listing elements.
We can use three types of bullets for the &#60;ol&#62; lists &#8211; Alphabet, Roman numerals and numbers/digits.
Take a look at the code below:
&#60;ol type="1"&#62;
&#60;li&#62;Item 1&#60;/li&#62;
&#60;li&#62;Item 2&#60;/li&#62;
&#60;li&#62;Item [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a cool HTML tip for ordered lists created using <span>&lt;ol&gt;</span> HTML tag.</p>
<p>The <span><strong>type</strong></span> attribute of <span>&lt;ol&gt;</span> list determines which kind of bullet will be used for listing elements.</p>
<p>We can use three types of bullets for the <span>&lt;ol&gt;</span> lists &#8211; Alphabet, Roman numerals and numbers/digits.<br />
Take a look at the code below:</p>
<pre>&lt;ol type="1"&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;/ol&gt;</pre>
<p>The <span><strong>type</strong></span> attribute has been set to <strong>1</strong>, Arabic numerals (digits). This is the default and you don&#8217;t need to specify it.<br />
The above code is rendered in a browser as:</p>
<ol type="1">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<p>To change the bullets to roman numerals, the <span>TYPE</span> attribute needs to be set to <strong>i</strong> (lowercase alphabet i) or <strong>I</strong> (uppercase alphabet I). Let us check these out.</p>
<table border="0" cellspacing="0" cellpadding="3" width="400">
<tbody>
<tr>
<td valign="top">
<pre>&lt;ol type="i"&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;li&gt;Item 5&lt;/li&gt;
&lt;li&gt;Item 6&lt;/li&gt;
&lt;li&gt;Item 7&lt;/li&gt;
&lt;li&gt;Item 8&lt;/li&gt;
&lt;li&gt;Item 9&lt;/li&gt;
&lt;li&gt;Item 10&lt;/li&gt;
&lt;li&gt;Item 11&lt;/li&gt;
&lt;/ol&gt;</pre>
</td>
<td valign="top">
<pre>&lt;ol type="I"&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;li&gt;Item 5&lt;/li&gt;
&lt;li&gt;Item 6&lt;/li&gt;
&lt;li&gt;Item 7&lt;/li&gt;
&lt;li&gt;Item 8&lt;/li&gt;
&lt;li&gt;Item 9&lt;/li&gt;
&lt;li&gt;Item 10&lt;/li&gt;
&lt;li&gt;Item 11&lt;/li&gt;
&lt;/ol&gt;</pre>
</td>
</tr>
<tr>
<td valign="top">Is rendered as:</p>
<ol type="i">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
<li>Item 7</li>
<li>Item 8</li>
<li>Item 9</li>
<li>Item 10</li>
<li>Item 11</li>
</ol>
</td>
<td valign="top">Is rendered as:</p>
<ol type="I">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
<li>Item 7</li>
<li>Item 8</li>
<li>Item 9</li>
<li>Item 10</li>
<li>Item 11</li>
</ol>
</td>
</tr>
</tbody>
</table>
<p>Another attribute, though you may not encounter it often, is <span><strong>START</strong></span>. It takes a number as value and this specifies the number (or alphabet) with which the list would start.</p>
<pre>&lt;ol type="1" start="4"&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;/ol&gt;</pre>
<p>is rendered as:</p>
<ol type="1">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<pre>&lt;ol type="A" start="10"&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;/ol&gt;</pre>
<p>is displayed as:</p>
<ol type="A">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/html-ordered-lists-cool-html-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aligning text and objects around images</title>
		<link>http://blog.itcrate.net/website-desing-development/aligning-text-and-objects-around-images/</link>
		<comments>http://blog.itcrate.net/website-desing-development/aligning-text-and-objects-around-images/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:10:09 +0000</pubDate>
		<dc:creator>touhid</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Website Design & Development]]></category>

		<guid isPermaLink="false">http://blog.itcrate.net/?p=431</guid>
		<description><![CDATA[The align attribute of &#60;img&#62; tag helps in aligning other elements like text with respect to the image. It can take any of the following values:

top: Aligns      the image to the top of adjoining object.
middle:      Aligns the text baseline to the middle of the image.
bottom: [...]]]></description>
			<content:encoded><![CDATA[<p>The align attribute of &lt;img&gt; tag helps in aligning other elements like text with respect to the image. It can take any of the following values:</p>
<ul>
<li><strong>top</strong>: Aligns      the image to the top of adjoining object.</li>
<li><strong>middle</strong>:      Aligns the text baseline to the middle of the image.</li>
<li><strong>bottom</strong>: Text      baseline is aligned to the bottom of the image. This is the default value.</li>
<li><strong>left &amp; right</strong>:      Image is aligned right of left with text wrapping around it.</li>
<li><strong>absmiddle, absbottom      and baseline</strong>: Aligns the image with respect to the middle, bottom      or baseline of the text.</li>
<li><strong>texttop</strong>:      Aligns the image top with respect to the ascenders of the text. This      attribute value is Netscape specific.</li>
<li><strong>center</strong>:      works same as align=&#8221;middle&#8221;.</li>
</ul>
<p>However, a situation might arise when you would like to place only some text, say, a small description, on the left or right side of the image with the rest to flow after the image.</p>
<p>In our example, we want to align &#8220;What a fine idea!&#8221; to the left of the image with other sentences to be placed after the image.</p>
<p>If you use the following code, you shall not get the desired results.</p>
<pre>&lt;img src="bulb.gif" width="128" height="220" alt="Fine idea" <img class="alignright size-full wp-image-433" title="bulb" src="http://blog.itcrate.net/http://www.itcrate.net/blog/wp-content/uploads/2009/10/bulb1.gif" alt="bulb" width="128" height="220" /></pre>
<pre>align="right"&gt;</pre>
<pre>What a fine idea!&lt;br&gt;The bulb in this ...</pre>
<p>What a fine idea!<br />
The bulb in this image represents an idea that I have cherished over the months but did not get time to implement.</p>
<p>You&#8217;ll notice that the next line &#8211; &#8220;The Bulb in this &#8230;&#8221; &#8211; also lies to the left of the image, while we wanted to place it <em>below</em> the image.</p>
<p>To force the next line to place below the image, we use <strong>clear</strong> attribute of &lt;br&gt; tag with <strong>&#8220;all&#8221;</strong> as value. Thus, placing <strong>&lt;br clear=&#8221;all&#8221;&gt;</strong> right after the phrase will force the next line to start at a new line.</p>
<pre>&lt;img src="bulb.gif" width="128" height="220" alt="Fine idea"</pre>
<pre>align="right"&gt;&lt;</pre>
<pre>What a fine idea!&lt;br <strong>clear="all"</strong>&gt;The bulb in this ...</pre>
<p>What a fine idea!</p>
<pre><img class="alignright size-full wp-image-432" title="bulb" src="http://blog.itcrate.net/http://www.itcrate.net/blog/wp-content/uploads/2009/10/bulb.gif" alt="bulb" width="128" height="220" /></pre>
<p>The bulb in this image represents an idea that I have cherished over the months but did not get time to implement.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.itcrate.net/website-desing-development/aligning-text-and-objects-around-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
