<?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>Crazy Xhtml Blog &#187; Xhtml</title>
	<atom:link href="http://www.crazyxhtml.com/blog/category/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crazyxhtml.com/blog</link>
	<description>All about CSS, Xhtml and wedesign...</description>
	<lastBuildDate>Sat, 27 Mar 2010 19:17:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The Ultimate Hand-Coding Toolbox</title>
		<link>http://www.crazyxhtml.com/blog/the-ultimate-hand-coding-toolbox/</link>
		<comments>http://www.crazyxhtml.com/blog/the-ultimate-hand-coding-toolbox/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 18:50:37 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[filezilla]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fireftp]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ietester]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[notepad]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[text editor]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=243</guid>
		<description><![CDATA[Text editor A good text editor is the heart of the hand-coding toolbox. You could use notepad or whatever plain text editor is bundled with your operating system, but there’s really no reason to settle. There are plenty of free alternatives with features to make hand-coding faster and easier. Windows – Notepad++ Hands-down the best [...]]]></description>
			<content:encoded><![CDATA[<h3>Text editor</h3>
<p>A good text editor is the heart of the hand-coding toolbox. You could  use notepad or whatever plain text editor is bundled with your  operating system, but there’s really no reason to settle. There are  plenty of free alternatives with features to make hand-coding faster and  easier.</p>
<p><strong>Windows </strong>– <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a><br />
Hands-down the best editor for Windows. With syntax highlighting, auto  tag completion, code folding, and much more, Notepad++ is a lightweight  program with everything you need to code XHTML and CSS. Make sure you  grab the TextFX plugin (built into newer versions) and the Explorer  plugin (a nice file browser) from the <a href="http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central">plugin  repository</a>. While you’re there, check out the 60 or so other  plugins available for even more flexibility and features.</p>
<p><strong>Mac OS X</strong> – <a href="http://www.barebones.com/products/TextWrangler/">Textwrangler</a><br />
Textwrangler is one of the best free text editors for Mac OS X. However,  if you’re willing to shell out a little money, I’d recommend either <a href="http://macromates.com/">TextMate</a> ($60) or <a href="http://www.panic.com/coda/">Coda</a> ($99) for  more robust features and support. They all have their pros and cons, so  give each a try to see what works best for you.</p>
<h3>Browser</h3>
<p>If a text editor is the heart of the hand-coding toolbox, then a  browser is the soul. It’s the reason developers build tableless  websites. And for web design and development, there’s no better browser  than <a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a>.  Not only does it adhere to accepted web standards, there’s a ridiculous  number of add-ons available to streamline the hand-coding process. Just  remember to limit the number of extensions you have enabled so the  browser stays quick and stable.</p>
<p>Here’s a list of my favorite add-ons:</p>
<ul>
<li><a href="http://getfirebug.com/">Firebug</a> –  I couldn’t live without Firebug. You can tweak CSS properties right in  the browser and see the results live, inspect XHTML elements to sort out  layout problems, monitor network requests, and more. This is a  must-have add-on for Firefox.</li>
</ul>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer  Extension</a> – Another add-on with indispensable features. View the  generated source code from pages with javascript, disable and enable  style sheets and javascript, analyze XHTML elements, validate local and  remote markup and CSS, and much more. Plus, it includes some nice  features from stand-alone plugins like <a href="https://addons.mozilla.org/en-US/firefox/addon/539">MeasureIt</a> (a ruler to measure elements in the browser window) and <a href="https://addons.mozilla.org/en-US/firefox/addon/1985">Window  Resizer</a> (resize the browser window to test different screen  resolutions).</li>
</ul>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3829">Live HTTP  Headers</a> – It shows the HTTP header calls made with each page load in  real time, which can help you sort out issues with caching and  redirects.</li>
</ul>
<ul>
<li><a href="http://developer.yahoo.com/yslow/">Yahoo!  YSlow</a> – This is actually an extension to Firebug that works with  its network monitoring features. YSlow tests the performance of your web  pages and offers suggestions to tweak the underlying code and server  settings. Shoot for an ‘A’ grade to push your web development skills to  the next level.</li>
</ul>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/7943">Pixel Perfect</a> – This is also an extension to Firebug. It lets you overlay a copy of  your mockup in the browser window, which can save a lot of time flipping  between Photoshop and Firefox.</li>
</ul>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/4904">GridFox</a> –  This creates a grid overlay in the browser window. Combine it with  Firebug and you can nudge elements into perfect alignment.</li>
</ul>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/684">FireFTP</a> – I  prefer a stand-alone FTP program, but this comes in handy on occasion.  It has all the features you need to upload files, including directory  comparison and the ability to transfer through SFTP (extremely important  for security).</li>
</ul>
<p>I know Internet Explorer is the browser everyone loves to hate, but  it <em>is</em> used by the majority of people outside of the tech and  design communities. Plus, there’s a little-known <a href="http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en">Internet  Explorer developer toolbar</a> that mimics the functionality of the  developer toolbar for Firefox. Just food for thought.</p>
<h3>Cross-browser compatibility</h3>
<p>A website may look great in Firefox, but that doesn’t mean the layout  is ready to be released into the wild. Cross-browser compatibility  testing is critical and ensures visitors have a consistent experience  regardless of the browser they use.</p>
<p><a href="http://my-debugbar.com/wiki/IETester/HomePage">IETester</a> provides Windows users with easy access to Internet Explorer 6, 7, and 8  in one place. It suffers from random crashes, but that’s a small price  to pay for the convenience of three browsers in one. (I’ve found that  you can avoid a lot of glitches if you open an IE8 tab first.)</p>
<p>If you’re on a Mac, you can to try the <a href="http://spoon.net/browsers/">spoon plugin</a>, which lets you run  your websites through different browsers in an online “sandbox”. There’s  also the <a href="https://browserlab.adobe.com/">Adobe  BrowserLab</a>. It’s free now, but expect Abode to charge for it in the  near future.</p>
<p>In addition to those tools, you can always download the full versions  of other browsers. Sometimes there’s just no substitute for the real  thing. I have these installed in a separate folder and check finished  websites in each one before I wrap up.</p>
<ul>
<li><a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a> (Windows, Mac)</li>
<li><a href="http://www.apple.com/safari/">Safari</a> (Windows, Mac)</li>
<li><a href="http://www.opera.com/">Opera</a> (Windows)</li>
<li><a href="http://www.google.com/chrome">Chrome</a> (Windows)</li>
</ul>
<h3>FTP</h3>
<p>FTP, or File Transfer Protocol, is how you upload your shiny new,  hand-coded web pages to the internet. <a href="http://filezilla-project.org/">FileZilla</a> is one of the best  stand-alone FTP clients and it’s available for both Windows and Mac OS  X. If you’re using Notepad++ there’s an easy way to <a href="http://linhost.info/2008/01/notepad-and-filezilla-tip/">integrate  Notepad++ and FileZilla</a> so you can edit files directly on the remote  server.</p>
<p>Remember to always transfer files through SFTP where possible.  Otherwise you send your username and password over the network in plain  text.</p>
<h3>Local server</h3>
<p>If you plan to do more than deliver static HTML pages, you’ll need a  local server. A WAMP or MAMP stack (short for Windows or Mac +  Apache-MySQL-PHP) allows you to run server-side languages and even  database driven packages like WordPress from your desktop. I install  Apache, PHP, and MySQL from scratch on my Windows boxes, and there are  plenty of online tutorials to walk you through the process. But if you’d  prefer a simpler solution…</p>
<p><strong>Windows</strong> – <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a><br />
XAMPP will have you up and running in a few minutes with <em>everything</em> you could need from a local server.</p>
<p><strong>Mac OS X</strong> – Built-in or <a href="http://www.mamp.info/en/index.html">MAMP</a><br />
Mac OS X has a built-in Apache server and there are lots of online  tutorials that explain how to access it. Or you can go with MAMP, which  is a one-click solution that installs Apache, PHP, and MySQL.</p>
<p class="source"><a rel="nofollow" target="_blank" href="http://www.fivefingercoding.com/xhtml-and-css/ultimate-hand-coding-toolbox">Five Finger Coding</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/the-ultimate-hand-coding-toolbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Optgroup element to group select options</title>
		<link>http://www.crazyxhtml.com/blog/optgroup-element-to-group-select-options/</link>
		<comments>http://www.crazyxhtml.com/blog/optgroup-element-to-group-select-options/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 11:57:42 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Xhtml]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=234</guid>
		<description><![CDATA[Sometimes it is useful to group the options of an HTML select element. Many developers use extra option elements and non-breaking spaces to create the visual appearance of hierarchical options, but there is another way: the often forgotten optgroup element. To create a group of options, wrap them in an optgroup element. To give the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is useful to group the options of an HTML <a href="http://www.w3.org/TR/html4/interact/forms.html#edef-SELECT">select</a> element. Many developers use extra <a href="http://www.w3.org/TR/html4/interact/forms.html#edef-OPTION">option</a> elements and non-breaking spaces to create the visual appearance of hierarchical options, but there is another way: the often forgotten <a href="http://www.w3.org/TR/html4/interact/forms.html#edef-OPTGROUP">optgroup</a> element.</p>
<p>To create a group of options, wrap them in an <a href="http://www.w3.org/TR/html4/interact/forms.html#edef-OPTGROUP">optgroup</a> element. To give the group a label, use the <a href="http://">label</a> attribute. Here is a simple example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;phones&quot;</span>&gt;</span>Select a phone:<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">select</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;phones&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;phones&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> selected&gt;</span>None<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">optgroup</span> <span style="color: #000066;">label</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Apple&quot;</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;iphone&quot;</span>&gt;</span>iPhone<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">optgroup</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">optgroup</span> <span style="color: #000066;">label</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Nokia&quot;</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;n91&quot;</span>&gt;</span>N91<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;e60&quot;</span>&gt;</span>E60<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;6300&quot;</span>&gt;</span>6300<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">optgroup</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">select</span>&gt;</span></pre></td></tr></table></div>

<p>And here is how the browser you are currently using will render the above example:</p>
<p><label for="phones">Select a phone:</label><br />
<select name="phones" id="phones">
<option value="" selected>None</option>
<p>	<optgroup label="Apple"></p>
<option value="iphone">iPhone</option>
<p>	</optgroup><br />
	<optgroup label="Nokia"></p>
<option value="n91">N91</option>
<option value="e60">E60</option>
<option value="6300">6300</option>
<p>	</optgroup><br />
</select>
<p>One caveat is that assistive technology support for the <code>optgroup </code>element and the <code>label</code> attribute is inconsistent, as noted in <a href="http://www.webaim.org/techniques/forms/controls.php#select">Creating Accessible Forms</a> at WebAIM and the WCAG 2 technique <a href="http://www.w3.org/TR/WCAG20-TECHS/H85.html">H85: Using OPTGROUP to group OPTION elements inside a SELECT</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/optgroup-element-to-group-select-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome Resources to Test Cross Browser Compatibility of Your Website</title>
		<link>http://www.crazyxhtml.com/blog/awesome-resources-to-test-cross-browser-compatibility-of-your-website/</link>
		<comments>http://www.crazyxhtml.com/blog/awesome-resources-to-test-cross-browser-compatibility-of-your-website/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 17:27:17 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=170</guid>
		<description><![CDATA[When there are many browsers available for the users to surf the internet, it becomes evident for you to check the Cross Browser Compatibility of your website. Different people use different operating systems and browsers and you cannot control their wish to surf your website on one particular browser, just because your website does not [...]]]></description>
			<content:encoded><![CDATA[<p>When there are many browsers available for the users to surf the internet, it becomes evident for you to check the Cross Browser Compatibility of your website. Different people use different operating systems and browsers and you cannot control their wish to surf your website on one particular browser, just because your website does not look well on it. Though among many available browsers, Mozilla and I.E are the most used browsers around the world. But still while designing a website web designers make it sure to check the browser compatibility of the website in all browsers.</p>
<p>To rescue the web designers from this aching job of testing browser compatibility in different browsers there are few websites which offer this service. On these websites you can check the compatibility of your website in all desired browsers. You can find these websites below:</p>
<table border="0" width="100%">
<tbody>
<tr>
<td><strong><a href="http://browsershots.org/" target="_blank">Browsershots</a></strong><br />
<a href="http://browsershots.org/"><img class="alignnone size-full wp-image-175" title="Browsershots" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/pic_browsershots_170.jpg" alt="Browsershots" width="200" height="157" /></a></td>
<td><strong><a href="http://www.browsrcamp.com/" target="_blank">Browsershots</a></strong><br />
<a href="http://www.browsrcamp.com/"><img class="alignnone size-full wp-image-176" title="browsrcamp" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/browsrcamp.jpg" alt="browsrcamp" width="200" height="150" /></a></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><a href="http://spoon.net/browsers/" target="_blank">Spoon</a></strong><br />
<a href="http://spoon.net/browsers/"><img class="alignnone size-full wp-image-180" title="spoon" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/pic_spoon.jpg" alt="spoon" width="200" height="150" /></a></td>
<td><strong><a href="http://crossbrowsertesting.com/" target="_blank">CrossBrowserTesting</a></strong><br />
<a href="http://crossbrowsertesting.com/"><img class="alignnone size-full wp-image-181" title="crossbrowsertesting" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/pic_crossbrowsertesting_170.jpg" alt="crossbrowsertesting" width="200" height="150" /></a></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><a href="http://ipinfo.info/netrenderer/" target="_blank">NetRenderer</a></strong><br />
<a href="http://ipinfo.info/netrenderer/"><img class="alignnone size-full wp-image-187" title="netrenderer" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/pic_netrenderer_170.jpg" alt="netrenderer" width="200" height="150" /></a></td>
<td><strong><a href="http://litmusapp.com/" target="_blank">Litmus</a></strong><br />
<a href="http://litmusapp.com/"><img class="alignnone size-full wp-image-188" title="Litmus" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/pic_litmus_170.jpg" alt="Litmus" width="200" height="150" /></a></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><a href="http://www.browsercam.com/" target="_blank">BrowserCam</a></strong><br />
<a href="http://www.browsercam.com/"><img class="alignnone size-full wp-image-190" title="browsercam" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/pic_browsercam_170.jpg" alt="browsercam" width="200" height="150" /></a></td>
<td></td>
</tr>
</tbody>
</table>
<div class="source"><a rel="nofollow" href="http://www.bestpsdtohtml.com/">The Best from PSD to HTML World!</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/awesome-resources-to-test-cross-browser-compatibility-of-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Center and Middle Alignment for a Website using CSS</title>
		<link>http://www.crazyxhtml.com/blog/center-and-middle-alignment-for-a-website-using-css/</link>
		<comments>http://www.crazyxhtml.com/blog/center-and-middle-alignment-for-a-website-using-css/#comments</comments>
		<pubDate>Sun, 31 May 2009 07:48:41 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=140</guid>
		<description><![CDATA[Different websites have different align position in the browser. Like top-centered, middle-centered and often left-top position. This is tutorial will show you how to align website to any part of the screen. I think i will be helpful for beginners. For all examples I will use same Xhtml code. 1 2 3 4 5 6 [...]]]></description>
			<content:encoded><![CDATA[<p>Different websites have different align position in the browser. Like top-centered, middle-centered and often left-top position. This is tutorial will show you how to align website to any part of the screen. I think i will be helpful for beginners.</p>
<p>For all examples I will use same Xhtml code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt; !DOCTYPE html PUBLIC <span style="color: #ff0000;">&quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Example - Crazy Xhtml<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;all&quot;</span>&gt;</span>@import &quot;style.css&quot;;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wrapper&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></td></tr></table></div>

<p>All changes I am doing in the style.css in <em>#wrapper{ … }</em></p>
<p>Let’s define standard styles for wrapper block of our small website. I am adding borders and background. It helps to see website position.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>Center Middle Align (Center Horizontal)</strong></p>
<p>Use next  <em>#wrapper</em> styles:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>So, in my example <em>width=400px</em>, so for  margin-left I calculated value as this 400/2=200. The same do for <em>margin-top</em> – 300/2=150.</p>
<p>You can download example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/05/example_center_middle_align.zip">here</a></p>
<p><strong>Center  Bottom Align</strong></p>
<p>Use next  <em>#wrapper</em> styles:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-200px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The main idea is same, but I am using <em>bottom=0</em> to move <em>#wrapper</em> block to the bottom of the browser. </p>
<p>You can download example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/05/example_center_bottom_align.zip">here</a></p>
<p><strong>Center Top Align</strong></p>
<p>Use next  <em>#wrapper</em> styles:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>If you want, you can add top margin for <em>#wrapper</em>. For example, I add 20px:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #993333;">auto</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>You can download example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/05/example_center_top_align.zip">here</a></p>
<p><strong>Left Middle Align</strong></p>
<p>Use next  <em>#wrapper</em> styles:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The main thing is to correct calculate of <em>margin-top</em>. </p>
<p>You can download example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/05/example_left_middle_align.zip">here</a></p>
<p><strong>Right Middle Align</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The code the same as above, but I add <em>right:0</em> to move <em>#wrapper</em> to right part of browser. </p>
<p>You can download example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/05/example_right_middle_align.zip">here</a></p>
<p>In Conclusion, I think you can create code for Right-Top, Right-Bottom, Left-Top and Left-Bottom easily using my code above.</p>
<p>Thanks for the reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/center-and-middle-alignment-for-a-website-using-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple CSS position drop text shadows</title>
		<link>http://www.crazyxhtml.com/blog/simple-css-position-drop-text-shadows/</link>
		<comments>http://www.crazyxhtml.com/blog/simple-css-position-drop-text-shadows/#comments</comments>
		<pubDate>Sun, 10 May 2009 06:41:59 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=127</guid>
		<description><![CDATA[We have many major browsers like Internet Explorer, Opera, Firefox, Safari and SeaMonkey. I am really tired of using different CSS hacks and code for each of these browsers. So I want to offer you one universal CSS code which will help us to make shadows for text. This is a simple example of Creating [...]]]></description>
			<content:encoded><![CDATA[<p>We have many major browsers like Internet Explorer, Opera, Firefox, Safari and SeaMonkey.  I am really tired of using different CSS hacks and code for each of these browsers. So I want to offer you one universal CSS code which will help us to make shadows for text.</p>
<p>This is a simple example of Creating Cross Browser Compatible CSS Text Shadows. We will not use Images, only clear CSS code which work for all browsers.</p>
<p>Let’s create xhtml code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;shadow&quot;</span>&gt;</span>Cross Browser Compatible CSS Text Shadows<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span>&gt;</span>Cross Browser Compatible CSS Text Shadows<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span></pre></td></tr></table></div>

<p>I do not know if it is good for SEO, but for this method you need to duplicate content where you want add shadows. I think it is good for SEO, because you will not do shadows for ALL content of your website. <img src='http://www.crazyxhtml.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Next step: add this CSS code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.<span style="color: #993333;">text</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.shadow<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#cccccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">5</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>I think this is a very simple way to use shadows.</p>
<p>You can download an example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/05/example_simple_css_drop_shadows_position.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/simple-css-position-drop-text-shadows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple CSS drop text shadows</title>
		<link>http://www.crazyxhtml.com/blog/simple-css-drop-text-shadows/</link>
		<comments>http://www.crazyxhtml.com/blog/simple-css-drop-text-shadows/#comments</comments>
		<pubDate>Wed, 06 May 2009 08:14:30 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=113</guid>
		<description><![CDATA[This is an example of Creating Cross Browser Compatible CSS Text Shadows. We will not use Images, only clear CSS code which work for all browsers. Each browser uses its methods, so we need to create styles for each browser. Let’s start with default xhtml code which we will use for our example. 1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>This is an example of Creating Cross Browser Compatible CSS Text Shadows. We will not use Images, only clear CSS code which work for all browsers.</p>
<p>Each browser uses its methods, so we need to create styles for each browser. Let’s start with default xhtml code which we will use for our example.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt; !DOCTYPE html PUBLIC <span style="color: #ff0000;">&quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Example - Crazy Xhtml<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;all&quot;</span>&gt;</span>@import &quot;style.css&quot;;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
	<span style="color: #808080; font-style: italic;">&lt;!--[if lte IE 8]&gt;&lt;style media=&quot;screen,projection&quot; type=&quot;text/css&quot;&gt;@import &quot;ie.css&quot;;&lt;/style&gt;&lt; ![endif]--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;shadow&quot;</span>&gt;</span>Cross Browser Compatible CSS Text Shadows<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></td></tr></table></div>

<p><strong>All versions of Internet Explorer</strong></p>
<p>I have added special code which will load stylesheet file only for Internet Explorer, like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--[if lte IE 8]&gt;&lt;style media=&quot;screen,projection&quot; type=&quot;text/css&quot;&gt;@import &quot;ie.css&quot;;&lt;/style&gt;&lt; ![endif]--&gt;</span></pre></td></tr></table></div>

<p>So, enter to ie.css next CSS style:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.shadow</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	filter<span style="color: #00AA00;">:</span> Shadow<span style="color: #00AA00;">&#40;</span>Color<span style="color: #00AA00;">=</span><span style="color: #cc00cc;">#cccccc</span><span style="color: #00AA00;">,</span> Direction<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">120</span><span style="color: #00AA00;">,</span> Strength<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Filter is supported only by Internet Explorer. Also for Internet Explorer 8 will add next code too.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.shadow</span><span style="color: #3333ff;">:before </span><span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">''</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>Firefox ,  Chrome, Safari,  Opera and SeaMonkey</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.shadow<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span><span style="color: #993333;">nowrap</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.shadow</span><span style="color: #3333ff;">:before </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-25px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#cccccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Cross Browser Compatible CSS Text Shadows'</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><em>white-space:nowrap;</em> &#8211; this is a hack I am using to fix a small bug in Opera and Safari.</p>
<p>By the way, the next code you can use only for Safari and Opera:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.shadow</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#cccccc</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>This is a method rendering more beauty and real shadows.</p>
<p>Lol, last code is very simple. Why don’t all browsers use it? <img src='http://www.crazyxhtml.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Maybe next generation of Firefox and Internet Explorer will use it too.</p>
<p>You can download an example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/05/example_simple_css_drop_text_shadows.zip">here</a>.</p>
<p>P.S. Read <a href="http://www.crazyxhtml.com/blog/simple-css-position-drop-text-shadows/">here</a> about a very easy way how to add shadows for all Browsers using only one xhtml/css code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/simple-css-drop-text-shadows/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Test Websites In Various Internet Explorer Versions</title>
		<link>http://www.crazyxhtml.com/blog/test-websites-in-various-internet-explorer-versions/</link>
		<comments>http://www.crazyxhtml.com/blog/test-websites-in-various-internet-explorer-versions/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 17:46:53 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Xhtml]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=78</guid>
		<description><![CDATA[In my opinion, each xhtml coder needs software for testing web-pages for various Internet Explorer versions . If you use standard methods and install all IEs, then one cannot guarantee the quality of work of the web-pages. Here is the tester I have found for myself: IE Tester IETester is a free Web Browser that [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_82" class="wp-caption alignleft" style="width: 160px"><a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/04/ietester.png"><img class="size-thumbnail wp-image-82" title="ietester" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/04/ietester-150x150.png" alt="ietester" width="150" height="150" /></a><p class="wp-caption-text">IETester</p></div>
<p>In my opinion, each xhtml coder needs software for testing web-pages for various Internet Explorer versions . If you use standard methods and install all IEs, then one cannot guarantee the quality of work of the web-pages.</p>
<p>Here is the tester I have found for myself: <a href="http://www.my-debugbar.com/wiki/IETester/HomePage">IE Tester</a></p>
<p>IETester is a free Web Browser that allows you to have the rendering and JavaScript engines of IE8, IE7, IE 6 and IE5.5 on Vista and XP, as well as the installed IE in the same process.</p>
<p>But this soft has small bugs.</p>
<p>Known problems and limitations :</p>
<ul>
<li>The Previous/Next buttons are not working properly</li>
<li>Focus is not working properly</li>
<li>Java applets are not working</li>
<li>Flash is not working on IE6 instance in user mode : A solution is to launch IETester as admin user and Flash will work.</li>
<li>CSS Filters are not working correctly in user mode : A solution is to launch IETester as admin user and CSS Filters will work.</li>
<li>PNG transparent do not work correctly.</li>
</ul>
<p>PS: those who are interested in this information, please contact me, as I have got a portable version IE7 and IE8, which work with any Windows without installation and even using it from your flash.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/test-websites-in-various-internet-explorer-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rounded Menu Tabs in CSS</title>
		<link>http://www.crazyxhtml.com/blog/rounded-menu-tabs-in-css/</link>
		<comments>http://www.crazyxhtml.com/blog/rounded-menu-tabs-in-css/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 10:33:54 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=56</guid>
		<description><![CDATA[A lot of my clients use menu with rounded corners in their websites and this menu items have rollover effect. So, the whole tab must be as a link. I have solved this problem and suggest you the next code example. At first let&#8217;s get ready all background images for our menu. We need 6 [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of my clients use menu with rounded corners in their websites and this menu items have rollover effect. So, the whole tab must be as a link.</p>
<p><img src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/03/demo_rounded_menu_tabs_01.png" alt="Rounded Menu Tabs in CSS - Example 01" /></p>
<p>I have solved this problem and suggest you the next code example.</p>
<p>At first let&#8217;s get ready all background images for our menu. We need 6 images:</p>
<p><img src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/03/demo_rounded_menu_tabs_02.png" alt="Rounded Menu Tabs in CSS - Example 02" /></p>
<p>Our next step, we will create CSS styles and Xhtml code:</p>
<p><b>1.</b> This is a simple example of xhtml code. I added additional SPAN tags for left-side and right-side background images. I used class names <em>menu_left</em> and <em>menu_right</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu_left&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu_right&quot;</span>&gt;</span>Home<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu_left&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu_right&quot;</span>&gt;</span>About<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu_left&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu_right&quot;</span>&gt;</span>Ask Question<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></td></tr></table></div>

<p><b>2.</b> Onward we describe BODY tag and add all images for rollover effect as a background, because rollover image effect will appear faster and users will not see the blink.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">&#123;</span>
	<span style="color: #808080; font-style: italic;">/* srat Preloader for menu hovers */</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_a_hover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_left_hover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_right_hover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* end Preloader for menu hovers */</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><b>3.</b> At the end create all classes and IDs for our menu.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span> li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Arial</span><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: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* indent between menu items */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span> li a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_a.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span> li a .menu_left<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_left.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span> li a .menu_right<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* for IE6 */</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">6px</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">21px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_right.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span> li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_a_hover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span> li a<span style="color: #3333ff;">:hover </span>.menu_left<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_left_hover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span> li a<span style="color: #3333ff;">:hover </span>.menu_right<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bgr_menu_right_hover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>That&#8217;s all! <img src='http://www.crazyxhtml.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>By the way, the height of my images is 27px. Check this part and be sure that your height and top padding are correct.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> li a .menu_right<span style="color: #00AA00;">&#123;</span>
	...
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">6px</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">21px</span><span style="color: #00AA00;">;</span>
	...
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Let&#8217;s do some math. Top padding equals 6px and height equals 21px accordingly 21 + 6 = 27 – is the height of image.</p>
<p>You could download an example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/03/example_rounded_menu_tabs.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/rounded-menu-tabs-in-css/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Replace logo with text</title>
		<link>http://www.crazyxhtml.com/blog/replace-logo-with-text/</link>
		<comments>http://www.crazyxhtml.com/blog/replace-logo-with-text/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 15:39:49 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=34</guid>
		<description><![CDATA[I want to write small tutorial for CSS and Xhtml. Let’s start with logo or image replacement of the text. This method is very useful for your website SEO and your users will not notice any changes. Search engines will read your logo as Real text, not as Image. I usually add logo real text [...]]]></description>
			<content:encoded><![CDATA[<p>I want to write small tutorial for CSS and Xhtml.</p>
<p>Let’s start with logo or image replacement of the text. This method is very useful for your website SEO and your users will not notice any changes. Search engines will read your logo as Real text, not as Image.</p>
<p>I usually add logo real text to H1 tag and named it as id=&#8221;logo&#8221; like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;logo&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;index.html&quot;</span>&gt;</span>Your website name<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span></pre></td></tr></table></div>

<p>Now  add CSS styles to  this tag:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#logo</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#logo</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">logo.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>I use outline:none; style to fix small Firefox issue which appears when you click to link up with image or background. Also text-indent is needed for removing text from user viewing. You can manage padding and margin styles as you need.</p>
<p>If you need to fix PNG transparent effect for Internet Explorer 6, please,  read <a href="http://www.crazyxhtml.com/blog/png-transparent-problem-in-internet-explorer-6/">this post</a>.</p>
<p>You could download an example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/03/example_replace_logo.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/replace-logo-with-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PNG transparent problem in Internet Explorer 6</title>
		<link>http://www.crazyxhtml.com/blog/png-transparent-problem-in-internet-explorer-6/</link>
		<comments>http://www.crazyxhtml.com/blog/png-transparent-problem-in-internet-explorer-6/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 11:16:44 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Xhtml]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=14</guid>
		<description><![CDATA[Everybody knows about PNG-24 problem in the Internet Explorer 6. I have found the best solution on this site http://www.twinhelix.com/css/iepngfix/. This method uses Javascript to fix problem. I think it will help you. But for some reasons, sometimes this script does not work correctly on my server . I really don&#8217;t understand why. So, I [...]]]></description>
			<content:encoded><![CDATA[<p>Everybody knows about PNG-24 problem in the Internet Explorer 6. I have found the best solution on this site <a href="http://www.twinhelix.com/css/iepngfix/" target="_blank">http://www.twinhelix.com/css/iepngfix/</a>. This method uses Javascript to fix problem.  I think it will help you.</p>
<p>But for some reasons, sometimes this script does not work correctly on my server <img src='http://www.crazyxhtml.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  .  I really don&#8217;t understand why.</p>
<p>So, I use next solution to solve the problem.</p>
<p>Let’s look at the next example.</p>
<p>Save this code to your style-ie.css file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#logo</span><span style="color: #00AA00;">&#123;</span>
	behavior<span style="color: #00AA00;">:</span>expression<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.runtimeStyle</span>.behavior<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;none&quot;</span><span style="color: #00AA00;">&#41;</span>&amp;amp<span style="color: #00AA00;">;</span>&amp;amp<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">this.pngSet?this.pngSet=true:(this.nodeName == &quot;IMG&quot; &amp;amp;&amp;amp; this.src.toLowerCase(</span><span style="color: #00AA00;">&#41;</span>.indexOf<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'.png'</span><span style="color: #00AA00;">&#41;</span>&amp;gt<span style="color: #00AA00;">;</span>-<span style="color: #cc66cc;">1</span>?<span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.backgroundImage</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;none&quot;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.filter</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&quot;</span> <span style="color: #00AA00;">+</span> this<span style="color: #6666ff;">.src</span> <span style="color: #00AA00;">+</span> <span style="color: #ff0000;">&quot;', sizingMethod='image')&quot;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.src</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;blank.gif&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">:</span><span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.origBg</span> <span style="color: #00AA00;">=</span> this.origBg? this<span style="color: #6666ff;">.origBg</span> <span style="color: #3333ff;">:this</span><span style="color: #6666ff;">.currentStyle</span><span style="color: #6666ff;">.backgroundImage</span>.toString<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#41;</span>.replace<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'url(&quot;'</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">''</span><span style="color: #00AA00;">&#41;</span>.replace<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'&quot;)'</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">''</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.filter</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&quot;</span> <span style="color: #00AA00;">+</span> this<span style="color: #6666ff;">.origBg</span> <span style="color: #00AA00;">+</span> <span style="color: #ff0000;">&quot;', sizingMethod='crop')&quot;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.backgroundImage</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;none&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>this.pngSet<span style="color: #00AA00;">=</span>true<span style="color: #00AA00;">&#41;</span>
	<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><span style="color: #ff0000;"><strong>Important!</strong></span> You need to create transparent image and save it as blank.gif to same folder where style-ie.css. is saved. You can make blank.gif 1px to 1px.</p>
<p>This code will work for IMG tag and for CSS background style.</p>
<p>But if you use background and repeat method, you need to create a new style for repeated backgrounds.</p>
<p>For example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#header</span><span style="color: #00AA00;">&#123;</span>
	behavior<span style="color: #00AA00;">:</span>expression<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.runtimeStyle</span>.behavior<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;none&quot;</span><span style="color: #00AA00;">&#41;</span>&amp;amp<span style="color: #00AA00;">;</span>&amp;amp<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">this.pngSet?this.pngSet=true:(this.nodeName == &quot;IMG&quot; &amp;amp;&amp;amp; this.src.toLowerCase(</span><span style="color: #00AA00;">&#41;</span>.indexOf<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'.png'</span><span style="color: #00AA00;">&#41;</span>&amp;gt<span style="color: #00AA00;">;</span>-<span style="color: #cc66cc;">1</span>?<span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.backgroundImage</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;none&quot;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.filter</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&quot;</span> <span style="color: #00AA00;">+</span> this<span style="color: #6666ff;">.src</span> <span style="color: #00AA00;">+</span> <span style="color: #ff0000;">&quot;', sizingMethod='image')&quot;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.src</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;blank.gif&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">:</span><span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.origBg</span> <span style="color: #00AA00;">=</span> this.origBg? this<span style="color: #6666ff;">.origBg</span> <span style="color: #3333ff;">:this</span><span style="color: #6666ff;">.currentStyle</span><span style="color: #6666ff;">.backgroundImage</span>.toString<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#41;</span>.replace<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'url(&quot;'</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">''</span><span style="color: #00AA00;">&#41;</span>.replace<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'&quot;)'</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">''</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.filter</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&quot;</span> <span style="color: #00AA00;">+</span> this<span style="color: #6666ff;">.origBg</span> <span style="color: #00AA00;">+</span> <span style="color: #ff0000;">&quot;', sizingMethod='scale')&quot;</span><span style="color: #00AA00;">,</span>
	this<span style="color: #6666ff;">.runtimeStyle</span><span style="color: #6666ff;">.backgroundImage</span> <span style="color: #00AA00;">=</span> <span style="color: #ff0000;">&quot;none&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>this.pngSet<span style="color: #00AA00;">=</span>true<span style="color: #00AA00;">&#41;</span>
	<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The code is the same as above for #logo, I changed only this part</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">sizingMethod<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'crop'</span></pre></td></tr></table></div>

<p>to</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">sizingMethod<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'scale'</span></pre></td></tr></table></div>

<p>And the last  important thing &#8211;  #header must to have width value in CSS file.</p>
<p>For example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#header</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Or</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#header</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>You could download an example <a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/03/example_png_transparent_ie6.zip">here</a>.</p>
<p>By the way, please,  read this post to know how to use <a href="http://johndyer.name/post/2008/12/02/png-transparency-in-ie6-with-png8.aspx" target="_blank">PNG transparently without Javascript in IE6</a></p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/png-transparent-problem-in-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
