<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Crazy Xhtml Blog</title>
	
	<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>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CrazyXhtmlBlog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="crazyxhtmlblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><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>IE9 Platform Preview available</title>
		<link>http://www.crazyxhtml.com/blog/ie9-platform-preview-available/</link>
		<comments>http://www.crazyxhtml.com/blog/ie9-platform-preview-available/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 17:10:22 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css 3]]></category>
		<category><![CDATA[html 5]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[svg]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=250</guid>
		<description><![CDATA[In November last year, Microsoft revealed some of what will be new and improved in Internet Explorer 9 in the IEBlog post An Early Look At IE9 for Developers. Today, IE General Manager Dean Hachamovitch posted a follow-up: HTML5, Hardware Accelerated: First IE9 Platform Preview Available for Developers. Yes, you can now download what Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>In November last year, Microsoft revealed some of  what will be new and improved in Internet Explorer 9 in the IEBlog post <a href="http://blogs.msdn.com/ie/archive/2009/11/18/an-early-look-at-ie9-for-developers.aspx">An  Early Look At IE9 for Developers</a>.</p>
<p>Today, IE General Manager Dean Hachamovitch posted a follow-up: <a href="http://blogs.msdn.com/ie/archive/2010/03/16/html5-hardware-accelerated-first-ie9-platform-preview-available-for-developers.aspx">HTML5,  Hardware Accelerated: First IE9 Platform Preview Available for  Developers</a>. Yes, you can now download what Microsoft calls a <a href="http://ie.microsoft.com/testdrive/">Platform Preview</a> to test  drive Internet Explorer 9 for yourself.</p>
<p>There are also a number of demos to show the improved performance and  standards support in IE 9. Judging by several of the demos (<a href="http://ie.microsoft.com/testdrive/HTML5/25HTML5_T--Shirt_Designer/Default.xhtml">HTML5  T-Shirt Designer</a> and <a href="http://ie.microsoft.com/testdrive/Graphics/35SVG--oids/Default.xhtml">SVG-oids</a> are two) it looks like IE9 will finally support XHTML served with the <code>application/xhtml+xml</code> media type. We’ll never know, but I can’t help wondering if the number  of people using “real” XHTML would have been greater if Microsoft had  implemented support for that earlier.</p>
<p>One of the things that Microsoft claims will be improved in IE9 is  type rendering, which I’m looking forward to a lot. To my (admittedly  Mac OS X-conditioned) eyes the whole of Windows needs to catch up there.</p>
<p>As Jeffrey Zeldman puts it in <a href="http://www.zeldman.com/2010/03/16/ie9-preview/">IE9 preview</a>:</p>
<blockquote cite="http://www.zeldman.com/2010/03/16/ie9-preview/"><p>Thus efforts to catch up to the typographic legibility and beauty  of Mac OS X and Webkit browsers are presented, in Dean Hachamovitch’s  blog post, as leading-edge innovations.</p></blockquote>
<p>Type rendering aside, it’s promising to see more information about  IE9. Let’s hope Microsoft can live up to what Dean Hachamovitch writes  in <a title="IEBlog : HTML5, Hardware Accelerated: First IE9 Platform Preview  Available for Developers" href="http://blogs.msdn.com/ie/archive/2010/03/16/html5-hardware-accelerated-first-ie9-platform-preview-available-for-developers.aspx">today’s blog post</a>:</p>
<blockquote cite="http://blogs.msdn.com/ie/archive/2010/03/16/html5-hardware-accelerated-first-ie9-platform-preview-available-for-developers.aspx"><p>We want the same markup to just work across different browsers. In  IE9, we’re doing for the rest of the platform what we did for CSS 2.1 in  IE8. IE8 delivered a high-quality CSS 2.1 implementation, sticking to  the standard, and looking to other implementations in places where the  standard is ambiguous.</p></blockquote>
<p>I’m still amazed at how few IE8 problems related to CSS 2.1 I have  run into. If IE9 can deliver that level of support for HTML5, DOM, CSS3,  and SVG… yay!</p>
<p>Makes me wonder how long it will take for IE8 to be phased out.</p>
<p>IE6, IE7, IE8 and IE9 &#8211; It&#8217;s so crazy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/ie9-platform-preview-available/feed/</wfw:commentRss>
		<slash:comments>0</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>Is there a perfect web design width?</title>
		<link>http://www.crazyxhtml.com/blog/is-there-a-perfect-web-design-width/</link>
		<comments>http://www.crazyxhtml.com/blog/is-there-a-perfect-web-design-width/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 13:01:30 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[width]]></category>
		<category><![CDATA[Xhtml]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=227</guid>
		<description><![CDATA[It’s hard for me to accept that visitors have the final say in how websites look. I like my designs to step into the world the way I envisioned them, but that’s just not possible on the web. People pop in with different sized monitors set to different color depths and resolutions using different browsers [...]]]></description>
			<content:encoded><![CDATA[<p>It’s hard for me to accept that visitors have the final say in how websites look. I like my designs to step into the world the way I envisioned them, but that’s just not possible on the web. People pop in with different sized monitors set to different color depths and resolutions using different browsers with different window sizes. There are way too many variables that web designers have no control over.</p>
<p>So I tend to stick with fixed-width layouts, a 960px web design width in particular. It reduces the effects of the visitor x-factor and it’s just about perfect for any website.</p>
<p><strong>960px for the largest audience and the most flexibility</strong><br />
Below is a screenshot of the screen <a href="http://www.w3counter.com/globalstats.php">resolution statistics</a> from W3Counter for September 2009. (Percentages were calculated from traffic to over 27,000 websites.)</p>
<p><a href="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/10/resolution-statistics.png"><img class="alignleft size-full wp-image-228" title="resolution statistics" src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/10/resolution-statistics.png" alt="resolution statistics" width="379" height="342" /></a>The most popular screen resolution for the last several years has been 1024×768. And that’s been trailed by even larger resolutions. Granted, the numbers may change depending on the audience for a website. Sites dedicated to design, photography, or technology, for instance, will show a higher percentage of large screens. But, if you want a website to stay true to your vision for the largest number of visitors, then 1024×768 is the starting point.</p>
<p>From there, you have to take into account all the kooky things visitors can do with their browsers and what design options a particular size offers. This is where a 960px web design width shines.</p>
<ul>
<li><strong>It leaves room for browser chrome and window resizing</strong> – The title bar, search box, scrollbars, menus, and toolbars all take up space within the 1024×768 viewing area. You also have to account for the fact that some visitors won’t have their browser windows maximized, so you may lose even more space. A 960px width allows you to pack in a lot of information and still leaves room for inconsistencies in window size.</li>
<li><strong>It’s evenly divided by 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, and more</strong> – That leads to a staggering amount of grid options. Whether you’re into complex magazine-style layouts or just want a simple two-, three-, or four-column layout, a 960px width makes it easy to create a well-proportioned design.</li>
</ul>
<p><strong>What about 800×600 screen resolutions?</strong><br />
Some businesses and government agencies have been slow to upgrade from small displays and ancient browsers. If you’re sure the majority of your audience will sit in front of screens with an 800×600 resolution, then it’s a design limitation you have to live with.</p>
<p>If, however, you just want to accommodate every last visitor (I know the feeling), there’s a workaround. Create your design with a width of 960px, then position the navigation on the right side of the layout. Even though visitors with small screens will see a horizontal scrollbar, the full width of the content area should be visible on every page without scrolling. It’s a compromise, but that’s why I said a 960px width is just about perfect.</p>
<p>As web designers, we don’t have the luxury of creating a pixel-perfect layout for every visitor. But a 960px web design width can go a long way toward putting control over finished sites back in our hands.</p>
<p class="source"><a rel="nofollow" target="_blank" href="http://www.fivefingercoding.com/web-design/is-there-a-perfect-web-design-width">Five Finger Coding</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/is-there-a-perfect-web-design-width/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Border-image: using images for your border</title>
		<link>http://www.crazyxhtml.com/blog/border-image-using-images-for-your-border/</link>
		<comments>http://www.crazyxhtml.com/blog/border-image-using-images-for-your-border/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 16:04:18 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=202</guid>
		<description><![CDATA[Another exciting new border feature of CSS3 is the property border-image. With this feature you can define an image to be used instead of the normal border of an element. This feature is actually split up into a couple of properties: border-image and border-corner-image. These two values are shorthands for: border-image: border-top-image border-right-image border-bottom-image border-left-image [...]]]></description>
			<content:encoded><![CDATA[<p>Another exciting new border feature of CSS3 is the property <code>border-image</code>. With this feature you can define an image to be used instead of the normal border of an element. This feature is actually split up into a couple of properties: border-image and border-corner-image.<br />
These two values are shorthands for:</p>
<p><code><strong>border-image:</strong><br />
border-top-image<br />
border-right-image<br />
border-bottom-image<br />
border-left-image</code></p>
<p><code><strong>border-corner-image:</strong><br />
border-top-left-image<br />
border-top-right-image<br />
border-bottom-left-image<br />
border-bottom-right-image</code></p>
<p><code>border-image</code> currently does not work in Opera and IE. <img src='http://www.crazyxhtml.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Let&#8217;s start. I use this image for borders:<br />
<img src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/border.gif" alt="Border-image: using images for your border" /></p>
<p>The syntax to use it is:</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;">-o-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> round round<span style="color: #00AA00;">;</span>
-icab-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> round round<span style="color: #00AA00;">;</span>
-khtml-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> round round<span style="color: #00AA00;">;</span>
-moz-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> round round<span style="color: #00AA00;">;</span>
-webkit-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> round round<span style="color: #00AA00;">;</span>
border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> round round<span style="color: #00AA00;">;</span></pre></td></tr></table></div>

<p>Which results in:</p>
<p id="border_image_1">Lorem ipsum dolor sit amet.</p>
<p>Or:</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;">-o-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> stretch stretch<span style="color: #00AA00;">;</span>
-icab-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> stretch stretch<span style="color: #00AA00;">;</span>
-khtml-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> stretch stretch<span style="color: #00AA00;">;</span>
-moz-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> stretch stretch<span style="color: #00AA00;">;</span>
-webkit-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> stretch stretch<span style="color: #00AA00;">;</span>
border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'border.gif'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">27</span> stretch stretch<span style="color: #00AA00;">;</span></pre></td></tr></table></div>

<p>Which then results in:</p>
<p id="border_image_2">Lorem ipsum dolor sit amet.</p>
<p>For those of you not so lucky as to be able to see this, here are screenshots of the two examples.</p>
<p>The First Example:<br />
<img src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/border-image1.gif" alt="Border-image: using images for your border" /></p>
<p>The Second Example:<br />
<img src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/09/border-image2.gif" alt="Border-image: using images for your border" /></p>
<p>Also use:<br />
-moz-border-image &#8211; for Firefox<br />
-o-border-image &#8211; Opera<br />
-khtml-border-image &#8211; KDE<br />
-webkit-border-image &#8211; Safari<br />
-icab-border-image &#8211; iCab</p>
<p>Read an original specification <a target="_blank" href="http://www.w3.org/TR/css3-background/#the-border-image">here</a></p>
<p class="source"><a rel="nofollow" target="_blank" href="http://www.css3.info/preview/border-image/">CSS3 info</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/border-image-using-images-for-your-border/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Opera 10.0 Released</title>
		<link>http://www.crazyxhtml.com/blog/new-opera-10-0-released/</link>
		<comments>http://www.crazyxhtml.com/blog/new-opera-10-0-released/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 18:11:38 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Opera]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=197</guid>
		<description><![CDATA[We can download NEW Opera 10.0. Opera Software’s newest browser, Opera 10 with Turbo, was downloaded 10 million times during the first week of release. With record download rates, Opera 10 is already in use by millions of users around the world. New to the Opera 10 browser is the concept of turbo browsing under [...]]]></description>
			<content:encoded><![CDATA[<p>We can download NEW Opera 10.0.</p>
<p>Opera Software’s newest browser, Opera 10 with Turbo, was downloaded 10 million times during the first week of release. With record download rates, Opera 10 is already in use by millions of users around the world.</p>
<p>New to the Opera 10 browser is the concept of turbo browsing under circumstances of low bandwidth. Low bandwidth is a universal factor in multiple browsing situations, for example, on a train, in a hotel or in areas with limited connectivity. With the launch of Opera 10 with Turbo, Opera has pointedly addressed the needs of Web users when browsing on slow or congested networks.</p>
<ul>
<li>Exclusive Opera Turbo compression boosts slow connection speeds</li>
<li>Innovative visual tabs displays Web sites in thumbnails</li>
<li>Intuitive, sleek design</li>
<li>Easy-to-personalize Speed Dial visual bookmarks</li>
<li>Everything built-in, no need for extensions</li>
<li>It&#8217;s free!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/new-opera-10-0-released/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>Firefox 3.5</title>
		<link>http://www.crazyxhtml.com/blog/firefox-3-5/</link>
		<comments>http://www.crazyxhtml.com/blog/firefox-3-5/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 12:11:15 +0000</pubDate>
		<dc:creator>Crazy Xhtml</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.crazyxhtml.com/blog/?p=157</guid>
		<description><![CDATA[WHAT IS NEW! Private Browsing Sometimes it’s nice to go undercover. When this feature is enabled, you won’t leave a single browsing fingerprint behind for others to discover. You can slip in and out of private browsing mode quickly, so it’s easy to return to what you were doing before as if nothing ever happened [...]]]></description>
			<content:encoded><![CDATA[<p><strong>WHAT IS NEW!</strong></p>
<p><strong>Private Browsing</strong><br />
Sometimes it’s nice to go undercover. When this feature is enabled, you won’t leave a single browsing fingerprint behind for others to discover. You can slip in and out of private browsing mode quickly, so it’s easy to return to what you were doing before as if nothing ever happened (you can also browse privately all the time).</p>
<p><strong>Forget This Site</strong><br />
Having second thoughts about having visited a certain Web site? With this feature, you can remove every trace of that site from your browser—no questions asked!</p>
<p><strong>Super Speed</strong><br />
<img src="http://www.crazyxhtml.com/blog/wp-content/uploads/2009/07/firefox3_5_speed.gif" alt="" class="alignright" />Fasten your seatbelt: Firefox 3.5 includes the TraceMonkey JavaScript engine, which gives the browser dramatically better performance than ever before. Firefox has always been fast, but this is the fastest Firefox ever (more than twice as fast as Firefox 3, and ten times as fast as Firefox 2), meaning Web applications like email, photo sites, online word processors and more will feel snappier and more responsive.</p>
<p><strong>Easy Organization</strong><br />
Get your sites in order. Simply arrange the order of your tabs by dragging them in one swift move of your mouse. Or, if your browser window is getting cluttered with too many tabs, just drag a tab out of its existing spot and it will automatically open up in a new window.</p>
<p><strong>Downloadable Fonts</strong><br />
View a wider variety of fonts on Web sites while you surf. Site designers and developers can create custom fonts that will be displayed and rendered properly even if you don’t have the font installed on your computer.</p>
<p><strong>Location-Aware Browsing</strong><br />
Now Firefox can tell websites where you’re located so you can find info that’s more relevant and more useful (for example, getting directions or finding restaurants near you). It&#8217;s all optional &#8211; Firefox doesn&#8217;t share your location without your permission &#8211; and is done with the utmost respect for your privacy.</p>
<p><strong>Open Video and Audio</strong><br />
Introducing the future of online media! Firefox is the first browser to support open video and audio formats, allowing practically limitless new ways for sites to display rich content. The open formats also allow modern web pages to display media without requiring a plug-in or a proprietary software download.</p>
<p>And many other&#8230; Read more <a href="http://www.mozilla-europe.org/en/firefox/features/">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyxhtml.com/blog/firefox-3-5/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>
	</channel>
</rss>
