<?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>Web Style Press, Best Practices from all the Web, Build Better Websites &#187; CSS</title>
	<atom:link href="http://www.webstylepress.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Change Image Opacity Easily Using CSS or JS</title>
		<link>http://www.webstylepress.com/change-image-opacity-easily-using-css-js/</link>
		<comments>http://www.webstylepress.com/change-image-opacity-easily-using-css-js/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 09:14:06 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[blur]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[image effects]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[moz]]></category>
		<category><![CDATA[ns6]]></category>
		<category><![CDATA[opacity]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=484</guid>
		<description><![CDATA[We can simply use CSS alone to reproduce opacity effect that have traditionally been done using scripting. The advantage of looking to CSS instead is obvious &#8211; much more lightweight and easier to implement. We can use this method where we need to use a dim or faint version of image, while when some one [...]<p><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/">Change Image Opacity Easily Using CSS or JS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We can simply use CSS alone to reproduce opacity effect that have traditionally been done using scripting. The advantage of looking to CSS instead is obvious &#8211; much more lightweight and easier to implement. We can use this method where we need to use a dim or faint version of image, while when some one places mouse over it, then image comes sharp, clear and bright.</p>
<p><span id="more-484"></span></p>
<p>Use the following code in head section of web page.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
<span style="color: #6666ff;">.opacityit</span> img<span style="color: #00AA00;">&#123;</span>
filter<span style="color: #3333ff;">:progid</span><span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.Alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">40</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.opacityit</span><span style="color: #3333ff;">:hover </span>img<span style="color: #00AA00;">&#123;</span>
filter<span style="color: #3333ff;">:progid</span><span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.Alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">100</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Use the following code in body where the image is located.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;#&quot; class=&quot;opacityit&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;email.gif&quot; /&gt;&lt;/a&gt;</pre></div></div>

<p>By this method image loads kind of blur in background and in light colors, but when some one places mouse over it. It becomes sharp.</p>
<p><strong>Simple Opacity</strong></p>
<p>We are using JavaScript to change the opacity of an image here. The technique works in both IE4+ and NS6+, and can be used to create some interesting &#8220;fading&#8221; effects. Here is the simple way to just place an image with opacity.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;img src=&quot;image.gif&quot; style=&quot;filter:alpha(opacity=50); -moz-opacity:0.5&quot;&gt;</pre></div></div>

<p>In <strong>-moz-opacity:0.5</strong> accepted range of values are 0 to 1, where 0 would make the image disappear and in <strong>alpha(opacity=50)</strong> range is between  1 to 100. We have combined the code both for IE and Mozilla for code compatibility.</p>
<p>We can also alter the opacity of image using javascript.</p>
<p><strong>Head section code</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> alteropacity<span style="color: #009900;">&#40;</span>imageobject<span style="color: #339933;">,</span> opacity<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appName</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Netscape&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=-</span><span style="color: #CC0000;">1</span>
  <span style="color: #339933;">&amp;&amp;</span>parseInt<span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appVersion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span>
    imageobject.<span style="color: #660066;">style</span>.<span style="color: #660066;">MozOpacity</span><span style="color: #339933;">=</span>opacity<span style="color: #339933;">/</span><span style="color: #CC0000;">100</span>
 <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appName</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> 
  <span style="color: #339933;">&amp;&amp;</span>parseInt<span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appVersion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span>
    imageobject.<span style="color: #660066;">filters</span>.<span style="color: #660066;">alpha</span>.<span style="color: #660066;">opacity</span><span style="color: #339933;">=</span>opacity
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p><strong>Body Section Code</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;img src=&quot;image.gif&quot; style=&quot;filter:alpha(opacity=50); -moz-opacity:0.5&quot; 
onMouseover=&quot;alteropacity(this, 100)&quot; onMouseout=&quot;alteropacity(this, 30)&quot;&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/">Change Image Opacity Easily Using CSS or JS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/advanced-js-calendar/" title="Advanced JS Calendar">Advanced JS Calendar</a></li><li><a href="http://www.webstylepress.com/simple-js-calendar/" title="Create Simple Javascript Based Calendar">Create Simple Javascript Based Calendar</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-6/" title="Javascript Essentials Part 6">Javascript Essentials Part 6</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-5/" title="Javascript Essentials Part 5">Javascript Essentials Part 5</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-4/" title="Javascript Essentials Part 4">Javascript Essentials Part 4</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-3/" title="Javascript Essentials Part 3">Javascript Essentials Part 3</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-2/" title="Javascript Essentials Part 2">Javascript Essentials Part 2</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/change-image-opacity-easily-using-css-js/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Gain Maximum from CSS</title>
		<link>http://www.webstylepress.com/css-maximum-benefits/</link>
		<comments>http://www.webstylepress.com/css-maximum-benefits/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:13:35 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=364</guid>
		<description><![CDATA[CSS is a simple file which controls the visual appearance of a web page without compromising its structure. Why to use it and how to use it properly. If you don&#8217;t use CSS on your web pages and you have many tables and content on them, chances are that your HTML file size will be [...]<p><a href="http://www.webstylepress.com/css-maximum-benefits/">How to Gain Maximum from CSS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>CSS is a simple file which controls the visual appearance of a web page without compromising its structure. Why to use it and how to use it properly. If you don&#8217;t use CSS on your web pages and you have many tables and content on them, chances are that your HTML file size will be quite heavy. Fact is that we live in a busy world, and people will not wait more than 5 seconds for web page to load. Some web developers implement the CSS on wrong way. They write their CSS in HTML code of the page, like this:</p>
<p><span id="more-364"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt; 
&lt;title&gt;My Page&lt;/title&gt;
&lt;style&gt;
A { font-family: Verdana; font-size:8pt; color:black; text-decoration:none } 
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;some content&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Correct way is to link the external CSS file in the pages. i.e.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link rel='stylesheet' href='css/styles.css' type='text/css' media='all' /&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/css-maximum-benefits/">How to Gain Maximum from CSS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/wrapping-text/" title="Wrapping Text &#8211; Breaking Text with No Spaces into New Line">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a></li><li><a href="http://www.webstylepress.com/w3c-validation-tips/" title="W3C Validation Tips and Best Practices">W3C Validation Tips and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/css-maximum-benefits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Rounded Flexible Div Without Images</title>
		<link>http://www.webstylepress.com/rounded-div-without-images/</link>
		<comments>http://www.webstylepress.com/rounded-div-without-images/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 17:59:12 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Web Tips]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=306</guid>
		<description><![CDATA[Nifty Corners Cube is a solution to get rounded corners without images, and this third version is build by three main components: A javascript file, named &#8220;niftycornerscube.js&#8221; A CSS file, named &#8220;niftycorners.css&#8221; The javascript calls specific for the pages Nifty Corners Cube Create Rounded Flexible Div Without Images is a post from: Web Style Press, [...]<p><a href="http://www.webstylepress.com/rounded-div-without-images/">Create Rounded Flexible Div Without Images</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/curves-without-images-nifty-cube.gif" alt="" title="curves-without-images-nifty-cube" width="300" height="77" class="alignnone size-full wp-image-307" /></p>
<p>Nifty Corners Cube is a solution to get rounded corners without images, and this third version is build by three main components:</p>
<p><span id="more-306"></span></p>
<ul>
<li>A javascript file, named &#8220;niftycornerscube.js&#8221;</li>
<li>A CSS file, named &#8220;niftycorners.css&#8221;</li>
<li>The javascript calls specific for the pages</li>
</ul>
<p><a rel="nofollow" target="_blank" href="http://www.html.it/articoli/niftycube/index.html">Nifty Corners Cube</a></p>
<p><a href="http://www.webstylepress.com/rounded-div-without-images/">Create Rounded Flexible Div Without Images</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/wrapping-text/" title="Wrapping Text &#8211; Breaking Text with No Spaces into New Line">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a></li><li><a href="http://www.webstylepress.com/w3c-validation-tips/" title="W3C Validation Tips and Best Practices">W3C Validation Tips and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/rounded-div-without-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modern Font Styles For Websites</title>
		<link>http://www.webstylepress.com/modern-font-styles-for-websites/</link>
		<comments>http://www.webstylepress.com/modern-font-styles-for-websites/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 17:45:27 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Guidelines]]></category>
		<category><![CDATA[Web Tips]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=304</guid>
		<description><![CDATA[I have described about using nice and clean fonts in web page. Now lets see some more details about using fonts in web pages. As we know Verdana, Arial and Tahoma are being used from the beginning. In Web 2.0 Style, and many open source softwares such as WordPress, now-a-days some other fonts are being [...]<p><a href="http://www.webstylepress.com/modern-font-styles-for-websites/">Modern Font Styles For Websites</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I have described <a href="http://www.webstylepress.com/fonts-for-web-using-nice-and-clean-fonts-in-web-page/">about using nice and clean fonts in web page</a>. Now lets see some more details about using fonts in web pages.</p>
<p>As we know <strong>Verdana</strong>, <strong>Arial</strong> and <strong>Tahoma</strong> are being used from the beginning. In Web 2.0 Style, and many open source softwares such as WordPress, now-a-days some other fonts are being used which are neat and clean and stylish too. Best part is, to use these, no installation of fonts is needed. In Windows XP these are present by default. I have selected some examples of look and feel of some chosen fonts over here.</p>
<p><span id="more-304"></span></p>
<h5>Font Styles Comparison</h5>
<p style="font-family:arial;"><strong>Arial</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<p style="font-family:Verdana;"><strong>Verdana</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<p style="font-family:Tahoma;"><strong>Tahoma</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<p style="font-family:Trebuchet MS;"><strong>Trebuchet MS</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<p style="font-family:Georgia;"><strong>Georgia</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<p style="font-family:Lucida Grande;"><strong>Lucida Grande</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<p style="font-family:Lucida Sans Unicode;"><strong>Lucida Sans Unicode</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<p style="font-family:sans-serif;"><strong>sans-serif</strong> &#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#8221;</p>
<h5>Font Families</h5>
<p>It happens so that we can define a family of fonts while creating web page. If one font is not available in user&#8217;s machine; then next font style will be displayed. i.e</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
<span style="color: #6666ff;">.myfont</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Geneva<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Suppose Geneva is not present in user&#8217;s machine, then system will pick next font Arial for style. So it is recommended to use font-families.</p>
<p>The font-family property is a prioritized list of font family names and/or generic family names for an element. The browser will use the first value it recognizes.</p>
<p>There are two types of font-family values:<br />
<strong>* family-name:</strong> The name of a font-family, like &#8220;times&#8221;, &#8220;courier&#8221;, &#8220;arial&#8221;, etc.<br />
<strong>* generic-family:</strong> The name of a generic-family, like &#8220;serif&#8221;, &#8220;sans-serif&#8221;, &#8220;cursive&#8221;, &#8220;fantasy&#8221;, &#8220;monospace&#8221;.</p>
<p>Separate each value with a comma, and always offer a generic-family name as the last alternative.</p>
<p>If a family-name contains white-space, it should be quoted. Single quotes must be used when using the &#8220;style&#8221; attribute in HTML.</p>
<p>Here is the list of font families commonly available on all systems.</p>
<p>Arial, Helvetica, sans-serif<br />
&#8216;Times New Roman&#8217;, Times, serif<br />
&#8216;Courier New&#8217;, Courier, monospace<br />
Georgia, &#8216;Times New Roman&#8217;, Times, serif<br />
Verdana, Arial, Helvetica, sans-serif<br />
Geneva, Arial, Helvetica, sans-serif</p>
<p><a href="http://www.webstylepress.com/modern-font-styles-for-websites/">Modern Font Styles For Websites</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/wrapping-text/" title="Wrapping Text &#8211; Breaking Text with No Spaces into New Line">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a></li><li><a href="http://www.webstylepress.com/w3c-validation-tips/" title="W3C Validation Tips and Best Practices">W3C Validation Tips and Best Practices</a></li><li><a href="http://www.webstylepress.com/lorem-ipsum-ready/" title="Lorem ipsum Ready to Use">Lorem ipsum Ready to Use</a></li><li><a href="http://www.webstylepress.com/how-to-control-font-size-in-percentage/" title="How to Control Font Size in Percentage">How to Control Font Size in Percentage</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/superscript-and-subscript/" title="What is Superscript and Subscript in HTML">What is Superscript and Subscript in HTML</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/modern-font-styles-for-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Astyle Visual CSS Editor</title>
		<link>http://www.webstylepress.com/astyle-visual-css-editor/</link>
		<comments>http://www.webstylepress.com/astyle-visual-css-editor/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 21:20:15 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Editors]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=89</guid>
		<description><![CDATA[CSS (Cascading Style Sheets) allows you to separate the representation definitions of such structured documents as HTML, XHTML, XML from their content, which is an effective principle in the design of web sites. Astyle is a free CSS editor for developers with many features. Visual easy-to-use interface Graphic tree-type view of attachment files and the [...]<p><a href="http://www.webstylepress.com/astyle-visual-css-editor/">Astyle Visual CSS Editor</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-90" title="astyle-css-editor" src="http://www.webstylepress.com/wp-content/uploads/2008/09/astyle-css-editor.jpg" alt="" width="450" height="421" /></p>
<p>CSS (Cascading Style Sheets) allows you to separate the representation definitions of such structured documents as HTML, XHTML, XML from their content, which is an effective principle in the design of web sites. Astyle is a free CSS editor for developers with many features.</p>
<p><span id="more-89"></span></p>
<ul>
<li>Visual easy-to-use interface</li>
<li>Graphic tree-type view of attachment files and the CSS structure</li>
<li>Grouped view of properties and selectors</li>
<li>Automatic selection and grouping of CSS selectors from a markup language document</li>
<li>Source CSS, HTML, XML highlight code editor</li>
<li>Active preview current selectors and documents with IE and Mozilla support</li>
<li>Clean up HTML document via CSS</li>
<li>Icon associate dictionary</li>
<li>Copy, Paste and Cut operations</li>
<li>Drag and Drop operations</li>
</ul>
<p><a rel="nofollow" target="_blank" href="http://www.athlab.com/Astyle/index.html">Astyle Visual CSS Editor</a></p>
<p><a href="http://www.webstylepress.com/astyle-visual-css-editor/">Astyle Visual CSS Editor</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/full-free-xml-sitemap-generator/" title="Online Full Free XML Sitemap Generator">Online Full Free XML Sitemap Generator</a></li><li><a href="http://www.webstylepress.com/lorem-ipsum-ready/" title="Lorem ipsum Ready to Use">Lorem ipsum Ready to Use</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/chatbox-for-websites-blogs-forums/" title="Chatbox For Websites and Blogs">Chatbox For Websites and Blogs</a></li><li><a href="http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/" title="Add Media Player With Playlist to Any Website">Add Media Player With Playlist to Any Website</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/" title="Code Hider Tool &#8211; Lock Webpage Code">Code Hider Tool &#8211; Lock Webpage Code</a></li><li><a href="http://www.webstylepress.com/visually-inspect-edit-css-html/" title="Visually Inspect and Edit CSS and HTML To Perfection">Visually Inspect and Edit CSS and HTML To Perfection</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/astyle-visual-css-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrapping Text &#8211; Breaking Text with No Spaces into New Line</title>
		<link>http://www.webstylepress.com/wrapping-text/</link>
		<comments>http://www.webstylepress.com/wrapping-text/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 16:16:40 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Tips]]></category>
		<category><![CDATA[wrap]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=53</guid>
		<description><![CDATA[Text like, a b c d e f and so on written in HTML will do fine in any browser, we all know that. What about the following! abcdefghijklmnopqrstuvwxyz&#8230;.NoWordBreaksAndSentenceGoesOnAndOn&#8230; The text with no spaces. If there are no breaks in words then the sentence will proceed straight and cause horizontal scroll in web page. In [...]<p><a href="http://www.webstylepress.com/wrapping-text/">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Text like, <strong>a b c d e f and so on</strong> written in HTML will do fine in any browser, we all know that.</p>
<p>What about the following!<br />
<strong>abcdefghijklmnopqrstuvwxyz&#8230;.NoWordBreaksAndSentenceGoesOnAndOn&#8230;</strong><br />
The text with no spaces.</p>
<p>If there are no breaks in words then the sentence will proceed straight and cause horizontal scroll in web page. In blogs or in any other applications where users can comment or put some data, they can write such spam or anything that can cause your web page layout to break. We have a solution to that. Write text in pre tag and apply following CSS to it.</p>
<p><span id="more-41"></span></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">pre <span style="color: #00AA00;">&#123;</span>
 overflow-x<span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> pre-wrap<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* css-3 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -moz-pre-wrap !important<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Mozilla, since 1999 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -pre-wrap<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Opera 4-6 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -o-pre-wrap<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Opera 7 */</span>
 <span style="color: #808080; font-style: italic;">/* width: 99%; */</span>
 word-wrap<span style="color: #00AA00;">:</span> break-word<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Internet Explorer 5.5+ */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This will fix the problem and in IE it will cause line break and avoid horizontal scroll while in Mozilla Firefox it will add an inline frame and put all the data in it.</p>
<p><a href='http://www.webstylepress.com/wp-content/uploads/2008/09/wrapped.rar'>Download Example</a><br />
<a rel="nofollow" target="_blank" href="http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/" target="_blank">More Detail and Examples</a></p>
<p><a href="http://www.webstylepress.com/wrapping-text/">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/w3c-validation-tips/" title="W3C Validation Tips and Best Practices">W3C Validation Tips and Best Practices</a></li><li><a href="http://www.webstylepress.com/lorem-ipsum-ready/" title="Lorem ipsum Ready to Use">Lorem ipsum Ready to Use</a></li><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/superscript-and-subscript/" title="What is Superscript and Subscript in HTML">What is Superscript and Subscript in HTML</a></li><li><a href="http://www.webstylepress.com/list-style-types/" title="List Style Types Examples and Best Practices">List Style Types Examples and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/wrapping-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>W3C Validation Tips and Best Practices</title>
		<link>http://www.webstylepress.com/w3c-validation-tips/</link>
		<comments>http://www.webstylepress.com/w3c-validation-tips/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 23:15:52 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[standards]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=23</guid>
		<description><![CDATA[Markup language validation is very important. Without it your web page will not be indexed in Google. Google crawlers will just avoid the invalid markup and errors in HTML. Here is a complete list of tips you can use to avoid HTML markup errors and warnings so that you write valid HTML or XHTML. Advices [...]<p><a href="http://www.webstylepress.com/w3c-validation-tips/">W3C Validation Tips and Best Practices</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Markup language validation is very important. Without it your web page will not be indexed in Google. Google crawlers will just avoid the invalid markup and errors in HTML. Here is a complete list of tips you can use to avoid HTML markup errors and warnings so that you write valid HTML or XHTML.</p>
<p><span id="more-23"></span></p>
<h5>Advices For Valid Markup</h5>
<ul>
<li>Use (define) backgrounds in CSS, not in html, TD, TR or Table</li>
<li>Do not define height of table or tr</li>
<li>Use alt=&#8221;" at every image even at spacer and separator</li>
<li>Place form tag b4 and after table tag and not td</li>
<li>Use correct doctype i.e.<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"></li>
<li>Use all attributes for tags, i.e. script tags and css link tags. i.e.<br />
<script language="JavaScript" type="text/javascript" src="scripts/filename.js"></script></p>
<link href="css/filename.css" rel="stylesheet" type="text/css">
<li>In Anchor link where u have to use &#038; use its code like &amp;</li>
</ul>
<h5>Advices For Valid CSS</h5>
<ul>
<li>Define background color with color, and for transparent use inherit i.e.<br />
color : #000000;<br />
background-color: inherit;<br />
Use these both even one is not necessary to define, second with inherit property</li>
<li>Use shorthand for properties</li>
<li>Use generic font family i.e.<br />
font-family : verdana, arial, sans-serif;<br />
or<br />
font-family : &#8220;trebuchet ms&#8221;, geneva, sans-serif;</li>
<li>For background and backgriund position use different lines. i.e.<br />
background: url(../images/menulinebg.jpg) no-repeat;<br />
background-position:left center;</li>
</ul>
<h5>Validate HTML, XHTML and CSS</h5>
<h4>W3C HTML Validator</h4>
<p><a rel="nofollow" target="_blank" href="http://validator.w3.org/">http://validator.w3.org</a></p>
<h4>CSS Validator</h4>
<p><a rel="nofollow" target="_blank" href="http://jigsaw.w3.org/css-validator/" target="_blank">http://jigsaw.w3.org/css-validator/</a></p>
<p><a href="http://www.webstylepress.com/w3c-validation-tips/">W3C Validation Tips and Best Practices</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/wrapping-text/" title="Wrapping Text &#8211; Breaking Text with No Spaces into New Line">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a></li><li><a href="http://www.webstylepress.com/lorem-ipsum-ready/" title="Lorem ipsum Ready to Use">Lorem ipsum Ready to Use</a></li><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/simple-and-powerful-form-validation/" title="Simple and Powerful Form Validation">Simple and Powerful Form Validation</a></li><li><a href="http://www.webstylepress.com/superscript-and-subscript/" title="What is Superscript and Subscript in HTML">What is Superscript and Subscript in HTML</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/w3c-validation-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

