<?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"
	>

<channel>
	<title>Tech Pedia &#187; Web Design</title>
	<atom:link href="http://technopedia.info/tech/category/web-design/feed" rel="self" type="application/rss+xml" />
	<link>http://technopedia.info/tech</link>
	<description>The Matrix of Technology</description>
	<pubDate>Thu, 20 Nov 2008 16:22:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>A Little about Cascading Style Sheets</title>
		<link>http://technopedia.info/tech/2008/04/13/a-little-about-cascading-style-sheets.html</link>
		<comments>http://technopedia.info/tech/2008/04/13/a-little-about-cascading-style-sheets.html#comments</comments>
		<pubDate>Sun, 13 Apr 2008 18:24:19 +0000</pubDate>
		<dc:creator>Abhinav Kaiser</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2008/04/13/a-little-about-cascading-style-sheets.html</guid>
		<description><![CDATA[Style sheets, as discussed earlier, is the third important component needed for creating the processing of a dynamic Colorado web designed pages. Styles sheets are a standard approved and recommended by the world wide consortium. They were essentially introduced to give the developer more control in page layout and styling of the document. In the [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense#abs_med_rect-->Style sheets, as discussed earlier, is the third important component needed for creating the processing of a dynamic Colorado web designed pages. Styles sheets are a standard approved and recommended by the world wide consortium. They were essentially introduced to give the developer more control in page layout and styling of the document. In the following pages we will cover some basic features about style sheets. There are many ways of adding style to a web page. Style can be either declared in the head section of the page or directly within the HTML tag.<br />
<span id="more-358"></span></p>
<p><strong>DEFINING STYLE WITHIN HTML TAGS</strong></p>
<p>Style within an HTML tag is assigned using the style tag followed by an attribute.</p>
<p>In the above the style tag is written within the HTML tag. The style sheet tag used three properties color font-style-weight and font-family. Their respective values are blue color code, italic, bold and the Helvetica font. Notice there is a colon in between color and blue color code and a semicolon after each property. Isnâ€™t it simple all you have to do is refer to a list of style sheet property and their values and use them according to you Denver web page design.</p>
<p><strong>Defining style in the head section</strong></p>
<p>Defining styles within an html tag is simple but can be quite tedious, especially when you intend using it on multiple html tags .A simpler way out be to declare the style within the head section of the page. By doing so all you intend to format.A style declaration in the head section must begin with the tag and end with the tag.</p>
<p>Style sheet as you know by now are groups of styles that define how an html element may appear in a web browser.</p>
<p><strong>Cascading style sheet viewed within the Microsoft internet explorer.</strong></p>
<p><!--adsense#abs_med_rect-->Apart from the one discussed so far and this is by creating an external style file. Style sheet declaration in an external file is particular very useful in useful in cases where you want to use the style in many pages at the same time. This method is also more convenient in terms of making any last minute change as there is one central place that controls the entire site design. And in your html file all you need to do is include the style file name using the link tag.</p>
<p>The link tag attributes ask the browser to refer to the external style sheet for all formatting and other styling elements. You can use any name for the style sheet file, just be sure you have the .css extension at the end. In this, it assumes that your style sheet a name to be referred with.</p>
<p>Your file basics defines your formatting style. Therefore any formatting change in this file will be subsequently reflected in the html layout. Suppose you want to display all the tags in your html document in red color, italics and in comic sans ms, arial or Helvetica as the font preferences. The structure of your basics would be as follows and the resulting screen.</p>
<p>Source: Free Articles</p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2008/04/13/a-little-about-cascading-style-sheets.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>HTML Code for Redirection</title>
		<link>http://technopedia.info/tech/2007/05/06/html-code-for-redirection.html</link>
		<comments>http://technopedia.info/tech/2007/05/06/html-code-for-redirection.html#comments</comments>
		<pubDate>Sun, 06 May 2007 05:12:04 +0000</pubDate>
		<dc:creator>Abhinav Kaiser</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2007/05/06/html-code-for-redirection.html</guid>
		<description><![CDATA[I was working on a project last week and I wanted to redirect one website to another. Although I have designed quite a few websites, it was hard for me to recollect the syntax for redirection. So, I am just posting it on my website as an easy reference for next time and also for [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on a project last week and I wanted to redirect one website to another. Although I have designed quite a few websites, it was hard for me to recollect the syntax for redirection. So, I am just posting it on my website as an easy reference for next time and also for Tech Pedia readers. </p>
<p><em><code>&lt;meta HTTP-EQUIV="REFRESH" content="0; url=http://technopedia.info/tech"&gt;</code></em></p>
<p>This code should go between <code>&lt;head&gt;</code> and <code>&lt;/head&gt;</code>. The content which is &#8220;0&#8243; in this case is the time in seconds for redirection to happen. If the content is set to &#8220;5&#8243;, redirection takes place after 5 seconds and so on and so forth.<br />
<span id="more-348"></span><br />
Note: For this webpage, the body section is not necessary.</p>
<p>So, the HTML file looks like this:</p>
<pre><code>&lt;html&gt;

&lt;head&gt;
&lt;meta HTTP-EQUIV="REFRESH" content="0; url=http://technopedia.info/tech"&gt;
&lt;/head&gt;

&lt;/html&gt;</code></pre>
<p>It&#8217;s simple but hard to remember.</p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2007/05/06/html-code-for-redirection.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress Customized Feature Post</title>
		<link>http://technopedia.info/tech/2006/08/31/wordpress-customized-feature-post.html</link>
		<comments>http://technopedia.info/tech/2006/08/31/wordpress-customized-feature-post.html#comments</comments>
		<pubDate>Thu, 31 Aug 2006 12:14:00 +0000</pubDate>
		<dc:creator>Chris Poteet</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/08/31/wordpress-customized-feature-post.html</guid>
		<description><![CDATA[Tutorial found here.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://cpoteet.wordpress.com/2006/08/29/wordpress-customized-feature-post/">Tutorial found here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/08/31/wordpress-customized-feature-post.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Best 404 Page</title>
		<link>http://technopedia.info/tech/2006/08/13/best-404-page.html</link>
		<comments>http://technopedia.info/tech/2006/08/13/best-404-page.html#comments</comments>
		<pubDate>Sun, 13 Aug 2006 05:19:52 +0000</pubDate>
		<dc:creator>Abhinav Kaiser</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/08/13/best-404-page.html</guid>
		<description><![CDATA[
I have seen some indifferent 404 pages in my time. Some are creative while some are outright imaginative. I would stick to imagination than creativity with respect to bias. I have seen some odd ones with semi-naked bodies. There was one 404 page that I visited which had the game of hangman on the page. [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense#abs_med_rect--></p>
<p>I have seen some indifferent 404 pages in my time. Some are creative while some are outright imaginative. I would stick to imagination than creativity with respect to bias. I have seen some odd ones with <a href="http://www.oddcomments.com/lib/msc/404-quitYou.html">semi-naked bodies</a>. There was one 404 page that I visited which had the game of hangman on the page. That&#8217;s pretty impressive. I played a courtesy hangman game at <a href="http://www.ukpaganlinks.co.uk/404.htm">this</a> website. How about a <a href="http://mfdh.ca/error/404.html">lesson in philosophy</a> if you visit a wrong page? At the end of the day, I am a geek, so I want something <a href="http://www.a-ostudios.com/404_ERROR.htm">geeky</a>. But I hate to bother my co-workers with all those sounds on a 404 page, and I don&#8217;t want to be told that I am <a href="http://www.sudftw.com/custom404.html">lost in space</a>.</p>
<p><span id="more-299"></span><br />
I found <a href="http://www.psycho78tacoma.com/is_this_too_much">this</a> latest 404 page off a different website. It is very different from anything else I have seen. They are actually pseudo-advertising with their 404 page but rather on a lighter note. The page looks like an internet explorer page not found style. The sentences like <em>Make sure that the web site address displayed in the address bar of your browser does not contain any alcoholic content</em> which is a satire of <a href="http://technopedia.info/tech/2006/02/16/7-reasons-not-to-use-ie.html">Internet Explorer&#8217;s</a> search page makes this page special.</p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/08/13/best-404-page.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Chris Poteet&#8217;s 10 Greatest Web Design Taboo List</title>
		<link>http://technopedia.info/tech/2006/06/30/chris-poteets-10-greatest-web-design-taboo-list.html</link>
		<comments>http://technopedia.info/tech/2006/06/30/chris-poteets-10-greatest-web-design-taboo-list.html#comments</comments>
		<pubDate>Fri, 30 Jun 2006 17:15:55 +0000</pubDate>
		<dc:creator>Chris Poteet</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/06/30/chris-poteets-10-greatest-web-design-taboo-list.html</guid>
		<description><![CDATA[Every web designer has a top 10 list of things that piss them off in web design.  I helped teach a class on introductory web design, and I constructed the following list to hopefully keep those students from making the same mistakes I did.

1. Be cognizant of other viewers and demographic.
When we design for [...]]]></description>
			<content:encoded><![CDATA[<p>Every web designer has a top 10 list of things that piss them off in web design.  I helped teach a class on introductory web design, and I constructed the following list to hopefully keep those students from making the same mistakes I did.</p>
<dl>
<dt><strong>1. Be cognizant of other viewers and demographic.</strong></dt>
<dd>When we design for the web, we must understand that the majority of the time your website will not look the same as you see it on your screen.  Web design is a difficult field, because the designer has some many constraints in designing their sites.  Here are a few considerations when you are designing:</p>
<ol>
<p><a href="http://www.siolon.com/2006/10-greatest-web-design-taboo-list/">(read more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/06/30/chris-poteets-10-greatest-web-design-taboo-list.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Web 2.0 Repository</title>
		<link>http://technopedia.info/tech/2006/06/22/web-20-repository.html</link>
		<comments>http://technopedia.info/tech/2006/06/22/web-20-repository.html#comments</comments>
		<pubDate>Thu, 22 Jun 2006 13:50:04 +0000</pubDate>
		<dc:creator>Chris Poteet</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/06/22/web-20-repository.html</guid>
		<description><![CDATA[I found a great listing of Web 2.0 resources at Everything 2.0.
]]></description>
			<content:encoded><![CDATA[<p>I found a great listing of Web 2.0 resources at <a href="http://bobstumpel.blogspot.com/">Everything 2.0</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/06/22/web-20-repository.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Internet Explorer Developer Toolbar</title>
		<link>http://technopedia.info/tech/2006/05/22/internet-explorer-developer-toolbar.html</link>
		<comments>http://technopedia.info/tech/2006/05/22/internet-explorer-developer-toolbar.html#comments</comments>
		<pubDate>Mon, 22 May 2006 14:22:50 +0000</pubDate>
		<dc:creator>Chris Poteet</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/05/22/internet-explorer-developer-toolbar.html</guid>
		<description><![CDATA[Internet Explorer has added this utility for download. 
Features

Explore and modify the document object model (DOM) of a Web page.
Locate and select specific elements on a Web page through a variety of techniques.
Selectively disable Internet Explorer settings.
View HTML object class names, ID&#8217;s, and details such as link paths, tab index values, and access keys.
Outline tables, [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer has <a href="http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en">added this utility for download</a>. </p>
<p><strong>Features</strong></p>
<ul>
<li>Explore and modify the document object model (DOM) of a Web page.</li>
<li>Locate and select specific elements on a Web page through a variety of techniques.</li>
<li>Selectively disable Internet Explorer settings.</li>
<li>View HTML object class names, ID&#8217;s, and details such as link paths, tab index values, and access keys.</li>
<li>Outline tables, table cells, images, or selected tags.</li>
<li>Validate HTML, CSS, WAI, and RSS Web feed links.</li>
<li>Display image dimensions, file sizes, path information, and alternate (ALT) text.</li>
<li>Immediately resize the browser window to a new resolution.</li>
<li>Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain.</li>
<li>Choose direct links to W3C specification references, the Internet Explorer team weblog (blog), and other resources.</li>
<li>Display a fully featured design ruler to help accurately align and measure objects on your pages. </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/05/22/internet-explorer-developer-toolbar.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Proper Design with Web Standards</title>
		<link>http://technopedia.info/tech/2006/05/19/proper-design-with-web-standards.html</link>
		<comments>http://technopedia.info/tech/2006/05/19/proper-design-with-web-standards.html#comments</comments>
		<pubDate>Fri, 19 May 2006 14:10:22 +0000</pubDate>
		<dc:creator>Chris Poteet</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/05/19/proper-design-with-web-standards.html</guid>
		<description><![CDATA[As the web continues to grow the concern over how inefficient our web design practices and procedures are is becoming very evident.  Technologies such as WYSIWYG editors including FrontPage and Dreamweaver are not helping the cause to make more efficient, leaner websites.  So, how are we to approach making websites that decrease bandwidth, [...]]]></description>
			<content:encoded><![CDATA[<p>As the web continues to grow the concern over how inefficient our web design practices and procedures are is becoming very evident.  Technologies such as WYSIWYG editors including FrontPage and Dreamweaver are not helping the cause to make more efficient, leaner websites.  So, how are we to approach making websites that decrease bandwidth, improve scalability, and lower maintenance costs?  The answer lies in web standards.</p>
<p>The W3C has pushed a series of web standards that are a vital part of where the web is going.  The organization was started by Tim Berners-Lee the gentlemen who scaled down <a href="http://www.w3.org/MarkUp/SGML/">SGML</a> into the popular <a href="http://www.w3schools.com/html/">HTML</a> has now realized that his original invention is not being used as it was intended.  HTML was never meant to be a formatting/presentation language.  HTML has been bastardized by the use of font, bold, and other formatting tags; and now Tim is pushing his organization to move the web back to the original meaning of HTML as a structural language.  Enter <a href="http://www.w3schools.com/xml/default.asp">XML</a>.</p>
<p><span id="more-203"></span>XML then becomes the aim of all things web design.  XML is often misunderstood by those who don’t understand the aim of using this language.  This language is meant to be solely a structural language as HTML was intended to be.  Presentation is then separated into <a href="http://www.w3schools.com/xsl/">XSL</a> which defines bold, italic, and other formatting to the XML document.  But the important thing to notice is that they are separate.  The last aspect is behavior.  Behavior is how the document reacts in a client-side fashion; this includes languages like <a href="http://www.w3schools.com/js/">JavaScript</a> and <a href="http://www.w3schools.com/vbscript/">VBScript</a> (now the standard is <a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMAScript</a> and the <a href="http://www.w3schools.com/htmldom/">DOM</a>), but these languages have to been amalgamated with presentation and formatting.  So now the focus is to separate structure, presentation, and behavior.</p>
<p>But we are in a time where transition is needed.  Millions upon millions of web designers are not going to just move everything to XML, because (1) there is a lack of understanding, (2) it takes time and money to re-train and convert content, and (3) it doesn’t currently offer the presentation features many web designers desire.  Therefore, the W3C has <a href="http://www.w3schools.com/css/">CSS</a> while transitioning to XSL and <a href="http://www.w3schools.com/xhtml/">XHTML</a> while transitioning from HTML to XML (hence the “X” in front of the HTML).  XHTML is the first step in encouraging web designers to separate the presentation from content and behavior, and it also uses the syntax of XML such as closing all tags, all tags being lowercased, etc.  CSS has already become a robust presentation language used by most web designers today.  In fact, many new versions of WYSIWYG editors now do the presentation through CSS.</p>
<p>So, why should you care about web standards, and how can you convince your customers to utilize them?  The best list of reasons for web standards are from a book by Jeffrey Zeldman called <em>Designing With Web Standards</em>:</p>
<ul>
<li>Slash design, development, and quality assurance costs (or do great work in spite of constrained budgets)</li>
<li>Deliver superb design and sophisticated functionality without worrying about browser incompatibilities</li>
<li>Set up your site to work as well five years from now as it does today</li>
<li>Redesign in hours instead of days or weeks</li>
<li>Welcome new visitors and make your content more visible to search engines</li>
<li>Stay on the right side of accessibility laws and guidelines</li>
<li>Support wireless and PDA users without the hassle and expense of multiple versions</li>
<li>Improve user experience with faster load times and fewer compatibility headaches</li>
<li><strong>Separate presentation from structure and behavior, facilitating advanced publishing workflows</strong></li>
</ul>
<p>This is just an entry-level look at web standards and the goal of them.  I would suggest the following resources for understanding more of this important trend.</p>
<p><strong>Web</strong></p>
<ul>
<li><a href="http://www.w3schools.com/">W3Schools</a></li>
<li><a href="http://www.w3.org">World Wide Web Consortium (W3C)</a></li>
<li><a href="http://www.webstandards.org/">The Web Standards Project (WaSP)</a></li>
<li><a href="http://www.w3schools.com/site/site_validate.asp">Standards Validator</a></li>
</ul>
<p><strong>Print</strong></p>
<ul>
<li><a href="http://www.zeldman.com/dwws/"><em>Designing with Web Standards</em></a> by Jeffrey Zeldman</li>
<li><a href="http://www.meyerweb.com/eric/books/css-tdg/"><em>Cascading Style Sheets: The Definitive Guide</em></a> by Eric Meyer</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/05/19/proper-design-with-web-standards.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Text Tricks in CSS</title>
		<link>http://technopedia.info/tech/2006/04/10/text-tricks-in-css.html</link>
		<comments>http://technopedia.info/tech/2006/04/10/text-tricks-in-css.html#comments</comments>
		<pubDate>Mon, 10 Apr 2006 04:00:34 +0000</pubDate>
		<dc:creator>Abhinav Kaiser</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/04/10/text-tricks-in-css.html</guid>
		<description><![CDATA[These are the different tricks that you can do for text formatting. These tricks work on all browsers and these may be simple, but very effective in lighting up your webpage.

Small Capitals
One of the most interesting styles accessible in CSS is the capability to specify a font-variant that has every letter capitalized, with the letters [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense#abs_med_rect-->These are the different tricks that you can do for text formatting. These tricks work on all browsers and these may be simple, but very effective in lighting up your webpage.<br />
<span id="more-101"></span></p>
<p><strong>Small Capitals</strong><br />
One of the most interesting styles accessible in CSS is the capability to specify a font-variant that has every letter capitalized, with the letters that were already capitalized slightly larger than the lowercase letters capitalized by the variant. Here’s a typical usage:</p>
<pre><code>&lt;style type=”text/css”&gt;
.smallcap { font-variant: small-caps; }
&lt;/style&gt;
&lt;/head&gt;&lt;body&gt;
&lt;h1&gt;This is a Level One Header&lt;/h1&gt;
&lt;h1 class=”smallcap”&gt;This is also a Level One Header&lt;/h1&gt;</code></pre>
<p>The CSS specification defines a number of possible font variants, but so far Web browser developers seem to have implemented only small-caps. The other possible value, to shut off small-caps, is normal.</p>
<p><strong>Stretching or squishing letter spacing</strong><br />
Another interesting variation in font layout is the letter-spacing style, which enables you to expand or compress type by a specified per-letter value—even if it causes letters to overlap! Adjusting this space between letters is known as kerning in typographical circles. Here’s an example:</p>
<p><code>&lt;h1 style=”letter-spacing: -2px;”&gt;And Another Level One Header&lt;/h1&gt;</code></p>
<p><center><img id="image100" src="http://technopedia.info/tech/wp-images/stretchtextcss.JPG" alt="stretchtextcss.JPG" /></center></p>
<p><strong>Stretching or squishing words</strong><br />
If you don’t want to have the spacing between letters adjusted, but you still want some control over the overall width of a text passage, word-spacing might be just what you need. Consider the following example:</p>
<pre><code>.wide { word-spacing: 15px; font-weight: bold; }
.narrow { word-spacing: -3px; font-weight: bold; }
</code></pre>
<p>Be careful with these values, especially if you’re trying to compress the text! A little change can quickly produce unreadable text, and just a bit more can cause words to overlap.</p>
<p><strong>Changing line height</strong><br />
The height between the lines of text in a paragraph is known as leading. You probably remember having to write double-spaced papers in school. Double-spaced, in CSS terms, is line-height: 2. Unusual in a CSS style, line-height doesn’t need a unit (unless you want to refer to percentages, inches, pixels, points, and so on) and accepts fractional values, too. So to get a line-height half way between single-spaced and double-spaced, use line-height: 1.5, as shown:</p>
<p><code>.doublespaced { line-height: 1.5; }</code></p>
<p>Putting it all together, here’s an example of line-height and word-spacing:</p>
<pre><code>&lt;style type=”text/css”&gt;
.wide { word-spacing: 15px; font-weight: bold; }
.narrow { word-spacing: -3px; font-weight: bold; }
.doublespaced { line-height: 1.5; }
&lt;/style&gt;
&lt;/head&gt;&lt;body&gt;
&lt;div class=”doublespaced”&gt;
This is a paragraph of text that’s double-spaced. This means that the &lt;i&gt;leading&lt;/i&gt;, or interline spacing, is different from standard text layout on a Web page. Within this paragraph, I can also have &lt;span class=”wide”&gt;some words that are widely spaced due to the word-spacing value&lt;/span&gt; and, of course, &lt;span class=”narrow”&gt;some words that are narrowly  spaced,&lt;/span&gt; too.
&lt;/div&gt;
&lt;p&gt;
By comparison, this paragraph doesn’t have any special line-height specified, so it’s “single spaced.” Notice the difference in the
space between lines of text.
&lt;/p&gt;
</code></pre>
<p>The effects of both word and line spacing are shown in the figure below :</p>
<p><center><img id="image102" src="http://technopedia.info/tech/wp-images/puttingtogether1.JPG" alt="puttingtogether1.JPG" /></center></p>
<p>Not all possible settings are good, of course. A line height that’s too small results in the lines of text becoming illegible as they’re overlapped. The single addition of line-height: 1.25, however, can significantly improve the appearance of a page, and you can increase line height for the entire document by changing the style of the body tag. Adding the following code to the top <code>&lt;style&gt;</code> block changes all the text on the page:</p>
<p><code>body { line-height: 1.25 }</code></p>
<p>Cool, eh? I tweak the body container again and again as I proceed. It’s very useful!</p>
<p><strong>Text alignment</strong><br />
HTML includes some attributes for the <code>&lt;p&gt;</code> tag that let you specify if you want the text to be left, center, or right aligned, or justified, where both the left and right margins are aligned. These attributes are replaced in CSS with the text-align style, which has the following possible values:<br />
• left<br />
• right<br />
• center<br />
• justify<br />
<center><!--adsense--></center></p>
<p><strong>Vertical text alignment</strong><br />
Here’s one feature that you don’t see in HTML except in the exceptionally awkward form of <code>&lt;sup&gt; and &lt;sub&gt;</code> for superscripts and subscripts, respectively. Instead, use vertical-align and pick one of the values shown in the following table.</p>
<table width="450" border="1">
<tr>
<td width="83">Value</td>
<td width="351">Explanation</td>
</tr>
<tr>
<td>top</td>
<td>Specifies that top of element aligns with top of highest element in line</td>
</tr>
<tr>
<td>middle</td>
<td>Specifies that middle of element aligns with middle of line</td>
</tr>
<tr>
<td>bottom</td>
<td>Specifies that bottom of element aligns with bottom of lowest element<br />
      in line</td>
</tr>
<tr>
<td>text-top</td>
<td>Specifies that top of element aligns with top of highest text element<br />
      in line</td>
</tr>
<tr>
<td>text-bottom</td>
<td>Specifies that bottom of element aligns with bottom of lowest text element<br />
      in line</td>
</tr>
<tr>
<td>super</td>
<td>Indicates superscript</td>
</tr>
<tr>
<td>sub</td>
<td>Indicates subscript</td>
</tr>
</table>
<p>A nice demonstration of this capability is a technique for having trademark &#8482; character sequences displayed attractively on a page:</p>
<p><code>.tm { vertical-align: top; font-size: 33%; font-weight: bold; }</code></p>
<p>In use, this might appear as </p>
<p><code>Though just about lost to common parlance, it remains the case that Xerox &lt;span class=”tm”&gt;tm&lt;/span&gt; is a trademark of Xerox Corporation.</code><br />
<!--adsense#abs_med_rect--></p>
<p><strong>Text decorations</strong><br />
One HTML text decoration that, surprisingly, made it to CSS is underlining. Underlining text on a Web page is somewhat problematic because it can become quite difficult to differentiate links from underlined text. But the CSS text-decoration style<br />
enables more than just underlining. It provides the following four values:<br />
• underline<br />
• overline<br />
• line-through<br />
• blink(IE)</p>
<p>With the exception of overline, these all have HTML equivalents: <code>&lt;u&gt;</code> for underline, <code>&lt;strike&gt;</code> for line-through, and <code>&lt;blink&gt;</code> for blink. </p>
<p>In CSS, however, it’s much easier to apply a number of them simultaneously, like this:</p>
<p><code>h1 { text-decoration: overline underline; }</code></p>
<p>By using the underlining styles, you can rather dramatically change the appearance of headers throughout a document.</p>
<p><strong>Changing text case</strong><br />
The final style to learn in this chapter, text-transform, deals with the capitalization of text and has the values specified in the table below.</p>
<table width="450" border="1">
<tr>
<td width="65">Value</td>
<td width="369">Meaning</td>
</tr>
<tr>
<td>capitalize</td>
<td> Displays the first letter of each word as caps and all others as lowercase</td>
</tr>
<tr>
<td>uppercase</td>
<td> Displays all letters as uppercase</td>
</tr>
<tr>
<td>lowercase</td>
<td> Displays all letters as lowercase</td>
</tr>
<tr>
<td>none</td>
<td> Displays characters as specified</td>
</tr>
</table>
<p>To have a paragraph of text transformed into all uppercase, for example, use text-transform: uppercase;, and to instantly ensure that all header level ones are in proper case, use:<!--adsense#abs_med_rect--></p>
<p><code>h1 { text-transform: capitalize; }</code></p>
<p><strong>Putting it all together</strong><br />
Putting everything into one example:</p>
<pre><code>&lt;style type=”text/css”&gt;
body { font-family: Arial,Helvetica,sans-serif; font-size:90%;
line-height: 1.25; }
h1 { text-transform: capitalize; text-decoration: overline
underline; color: blue; letter-spacing: 0.05em; text-align: center; }
{ font-variant: small-caps; font-weight: bold; }
.email { color: #909; font-family: monospace; font-size: 90% }
.tm { vertical-align: top; font-size: 40%; font-weight: bold; }
&lt;/style&gt;
&lt;/head&gt;&lt;body&gt;
&lt;h1&gt;Travels with Tintin&lt;/h1&gt;
&lt;p&gt;
Of the various reporters with whom I’ve travelled around the world, including writers for &lt;i&gt;UPI&lt;/i&gt;, 
&lt;i&gt;AP&lt;/i&gt;, and &lt;i&gt;Reuters&lt;/i&gt;, the most fascinating has clearly been &lt;b&gt;Tintin&lt;/b&gt;, boy reporter from 
Belgium ( &lt;span  class=”email”&gt;tintin@technopedia.info&lt;/span&gt;).&lt;/p&gt;
&lt;div style=”text-align:right”&gt;
Probably the most enjoyable aspect of our travels was his dog &lt;b&gt;Snowy&lt;/b&gt;, though I don’t know that our 
hosts would always agree!
&lt;/div&gt;
&lt;h1&gt;The First Trip: Nepal&lt;/h1&gt;
&lt;p&gt;
After winning the Pulitzer for &lt;i&gt;Red Rackham’s Treasure&lt;/i&gt; &lt;span class=”tm”&gt;tm&lt;/span&gt;, Tintin told me 
he wanted a vacation. Remembering some of his earlier adventures, he decided to visit Nepal. Early one 
Sunday, I was sipping my tea and reading the &lt;i&gt;Times&lt;/i&gt; when he rang me up, asking whether I’d be 
able to take a break and come along...
&lt;/p&gt;</code></pre>
<p>This is the output:</p>
<p><center><img id="image103" src="http://technopedia.info/tech/wp-images/puttingtogether2.JPG" alt="puttingtogether2.JPG" /></center></p>
<p><em>Submitted by : Arthur Stanley</em></p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/04/10/text-tricks-in-css.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Very Simple CSS Tricks</title>
		<link>http://technopedia.info/tech/2006/03/27/very-simple-css-tricks.html</link>
		<comments>http://technopedia.info/tech/2006/03/27/very-simple-css-tricks.html#comments</comments>
		<pubDate>Mon, 27 Mar 2006 07:55:28 +0000</pubDate>
		<dc:creator>Abhinav Kaiser</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://technopedia.info/tech/2006/03/27/very-simple-css-tricks.html</guid>
		<description><![CDATA[
Here are some CSS tricks which might seem very simple yet it is so crucial to the outlook of a website. If you are a CSS pro, this article is probably not for you. After you read this article, if you feel that there are some things that could be done differently, please let us [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense#abs_med_rect--></p>
<p>Here are some CSS tricks which might seem very simple yet it is so crucial to the outlook of a website. If you are a CSS pro, this article is probably not for you. After you read this article, if you feel that there are some things that could be done differently, please let us know.<br />
<span id="more-75"></span></p>
<h3>Line Height</h3>
<p>This is a functionality that is used to change the space between lines. It makes the text more readable. The line height can be simply provided for a paragraph in this way.</p>
<pre><code>&lt; style type=text/css "&gt;
p {
line-height: 120%;
}
</code></pre>
<p>Each font size has its own space associated with it and we can increase that space by defining in percentages.</p>
<h3>Big First Letter</h3>
<p>In the newspapers, you might have seen the first letter being big and the rest are the normal size. This is possible with CSS as well. This is how you do it.</p>
<pre><code>f1:first type character {
float:left;
color:black;
font size:250%;
} </code></pre>
<p>This is the way you use it in your template file.</p>
<p><code> &lt; p class="f1"&gt;This is text... &lt;/p&gt;</code></p>
<h3>Text Transformation</h3>
<p>This is the property of CSS where you can transform the text entered into all caps, or all small caps or even capitalize every word.</p>
<p><strong>Upper Case</strong></p>
<pre><code>uc {
text-transform: uppercase;
}</code></pre>
<p>When you use this in a paragraph this way <code>
</code></p>
<p class="uc">word up y&#8217;all</p>
<p>, the output is going to look like &#8220;WORD UP Y&#8217;ALL&#8221;.</p>
<p><strong>Lower Case</strong></p>
<pre><code>lc {
text transform: lowercase;
}</code></pre>
<p>This does just the opposite of the uppercase.</p>
<p><strong>Capitalize</strong><br />
clize {<br />
text transform: capitalize;<br />
}</p>
<p>This function capitalizes every single word in a paragraph.<br />
<center><!--adsense--></center></p>
<h3>Focus Element</h3>
<p>This is a pseudo class in CSS and it gives a different appearance to the text that is in focus. This can be useful, if you have a form and want to highlight the current textbox in which the user enters data.</p>
<pre><code>&lt;style type="text/css "&gt; 
ipp { color:red } 
ipp:focus { color:blue } 
&lt;/style&gt;</code></pre>
<p>The normal color in this function is red, but if the element has focus on it, it turns into blue.</p>
<h3>Change Mouse Pointers</h3>
<p>Usually we are equipped with the boring white mouse pointer pointing towards left. . CSS offers the possibility the pointer of mouse to change. This is realizable over the cursor characteristic.</p>
<p>Here is how to change the mouse cursor.</p>
<p>Use this either in your CSS file or your header file.</p>
<pre><code>&lt;style type="text/css"&gt; 
body { cursor: cursor_name; } 
&lt;/style&gt;</code></pre>
<p>If you would like the cursor just when you put your mouse on links,</p>
<pre><code>&lt;style type="text/css"&gt; 
a:link,a:visited,a:active { 
cursor: cursor_name; } 
&lt;/style&gt;</code></pre>
<p>Here is a list of different cursors:</p>
<p><a style="cursor: auto" href="http://technopedia.info/tech/?page_id=73/">cursor: auto (uses what is set by user)</a></p>
<p><a style="cursor: crosshair" href="http://technopedia.info/tech/?page_id=73/">cursor: crosshair (should produce a cross)</a></p>
<p><a style="cursor: default" href="http://technopedia.info/tech/?page_id=73/">cursor: default (cursor remains as it is)</a></p>
<p><a style="cursor: e-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: e-resize (arrow pointing right)</a></p>
<p><a href="http://technopedia.info/tech/?page_id=73/">cursor: hand (the traditional pointing hand)</a></p>
<p><a style="cursor: help" href="http://technopedia.info/tech/?page_id=73/">cursor: help (a Question Mark should appear)</a></p>
<p><a style="cursor: move" href="http://technopedia.info/tech/?page_id=73/">cursor: move (a cross with arrows on the tips)</a></p>
<p><a style="cursor: n-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: n-resize (an arrow pointing north or up)</a></p>
<p><a style="cursor: ne-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: ne-resize (an arrow pointing northeast)</a></p>
<p><a style="cursor: nw-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: nw-resize (an arrow pointing northwest)</a></p>
<p><a style="cursor: pointer" href="http://technopedia.info/tech/?page_id=73/">cursor: pointer (that hand again)</a></p>
<p><a style="cursor: s-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: s-resize (an arrow pointing south or down)</a></p>
<p><a style="cursor: se-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: se-resize (an arrow pointing southeast)</a></p>
<p><a style="cursor: sw-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: sw-resize (an arrow pointing southwest)</a></p>
<p><a style="cursor: text" href="http://technopedia.info/tech/?page_id=73/">cursor: text (looks like the end of an I-beam)</a></p>
<p><a style="cursor: w-resize" href="http://technopedia.info/tech/?page_id=73/">cursor: w-resize (an arrow pointing west)</a></p>
<p><a style="cursor: wait" href="http://technopedia.info/tech/?page_id=73/">cursor: wait (an hourglass)</a><br />
<center><!--adsense--></center></p>
<h3>Images in List</h3>
<p>Suppose you want a cool looking pointer next to your bulleted points, CSS is the answer.</p>
<p>Consider a list like this.</p>
<pre><code>&lt;ul&gt;
&lt;li&gt;List 1&lt;/li&gt;
&lt;li&gt;List 2&lt;/li&gt;
&lt;li&gt;List 3&lt;/li&gt;
&lt;/ul&gt;</code></pre>
<p>Now you can insert an image this way :</p>
<p><code> ul { cunning style image:url("graphic.gif") }</code></p>
<h3>Scroll Bar Features</h3>
<p>CSS can alter the look and feel of the scroll bar which would otherwise remain the same for all websites.</p>
<p>These are the different sections of a scroll bar :<br />
    * <em>scrollbar-3dlight-color</em>  - This property describes the color of the outer top and left bevel edges (the normally lighter portion of the &#8220;highlights&#8221;) of the scrollbar arrows and scroll bar slider box portions of a scroll bar.</p>
<p>    * <em>scrollbar arrow color</em> - This property describes the color of the scrollbar directional arrows of a scroll bar when they are activate-able. When scrllbars appear but are not usable, this property does not control the arrow color in this state.</p>
<p>    * <em>scrollbar darkshadow color</em> - This property describes the color of the outer bottom and right bevel edges (the normally darker portion of the &#8220;shadows&#8221;) of the scrollbar arrows and scroll bar slider box portions of a scroll bar.</p>
<p>    * <em>scrollbar face color</em> - This property describes the color for the button face of the scrollbar arrow widgets, the button face color of the slider widget and the main color of the inactive square at the bottom/right corner of the scrolled box. This property has no effect on the scrollbar tray/track that the scrollbar slider widget travels in.</p>
<p>    * <em>scrollbar highlight color</em> - This property describes the color of the inner top and left bevel edges (the normally darker portion of the &#8220;highlights&#8221;) of the scrollbar arrows, the scroll bar slider box, and half of the dither  pattern color of the scrollbar slider tray area (the other half of the dither is taken from the OS default button face color.) For a more detailed explanation of the components of a scrollbar interface.</p>
<p>    * <em>scrollbar shadow color</em> - This property describes the color of the inner bottom and right bevel edges (the normally lighter portion of the &#8220;shadows&#8221;) of the scrollbar arrows and scroll bar slider box portions of a scroll bar.</p>
<p>    * <em>scrollbar base color</em> - This property describes the color of the button face of the scrollbar arrow widgets, the button face color of the slider widget and half of the dither colors for the scrollbar slider tray.</p>
<p>    * <em>scrollbar track color</em> - This property describes the solid color of the scrollbar track.</p>
<p>Here is the implemented version of these tags.</p>
<pre><code>BODY
{
scrollbar-3dlight-color:#FF9E00;
scrollbar-arrow-color:#FF9E00;
scrollbar-base-color:#FFDF00;
scrollbar-darkshadow-color:#C64100;
scrollbar-face-color:#FF7D00;
scrollbar-highlight-color:#FF9E00;
scrollbar-shadow-color:#E76100;
}</code></pre>
<p><!--adsense#abs_med_rect--></p>
<h3>3D Shade</h3>
<p>CSS does the 3D shading for images.</p>
<p>This is just a sample code :</p>
<p>border style: groove;<br />
border style: ridge;<br />
border style: inset;<br />
border style: outset;</p>
]]></content:encoded>
			<wfw:commentRss>http://technopedia.info/tech/2006/03/27/very-simple-css-tricks.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
