<?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>Alexandru Dinulescu&#039;s Thoughts&#187; CSS</title>
	<atom:link href="http://alexdweb.com/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexdweb.com/blog</link>
	<description>This blog is about everything/anything related to XHTML/CSS and of course my favourite js library, jQuery.</description>
	<lastBuildDate>Thu, 09 Dec 2010 12:04:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Browsers emulate Photoshop &#8220;Multiply&#8221; Layout?</title>
		<link>http://alexdweb.com/blog/2010/03/06/browsers-emulate-photoshop-multiply-layout/</link>
		<comments>http://alexdweb.com/blog/2010/03/06/browsers-emulate-photoshop-multiply-layout/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 18:08:34 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[z-index goodies]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=334</guid>
		<description><![CDATA[Okay so this is very strange. I have a an absolute positioned image and on top of it is a PNG gradiant. Based on the normal thought and previous post, if i set the absolute &#8211; positioned image z-index to -1 and make the layer with the png gradiant set a position: relative then it [...]]]></description>
			<content:encoded><![CDATA[<p> Okay so this is very strange. I have a an absolute positioned image  and on top of it is a PNG gradiant. </p>
<p> Based on the normal thought and previous post, if i set the absolute &#8211; positioned image z-index to -1 and make the layer with the png gradiant set a position: relative then it will happen what it was supposed to happen, the gradiant will cover the image. But what if we have this. see the 2 attached examples </p>
<p> The left image is having this <acronym title="Cascading Style Sheet">CSS</acronym>: </p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> -<span style="color: #cc66cc;">1</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: #00AA00;">&#125;</span><br />
container <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</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;">background-image</span><span style="color: #00AA00;">:</span> gradiant<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> grey<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p> While the right image is having the same but with z-index: 1. If we remove z-index from the image @ all, then it wont show because of the underlying layer (remove the property). But if you look closely, the image is something on WHITE background so even with absolute positioning the only thing i can think off that makes it look like it &#8220;Multiplied&#8221; like in Photoshop is browsers ability to calculate png transparency and fill-options. </p>
<p> Of maybe i&#8217;m just silly and i am missing something very important but so far, and i cant find enough time to test this in a controlled environment, but so far this stuff works and i am quite happy with this situation <img src='http://alexdweb.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p><a href="http://alexdweb.com/blog/wp-content/uploads/2010/03/tst.jpg"><img src="http://alexdweb.com/blog/wp-content/uploads/2010/03/tst.jpg" alt="" title="tst" width="250" height="68" class="aligncenter size-full wp-image-335" /></a></p>
<p> Later Edit: I&#8217;m silly, it was a number of factors, Gradiant transparency still works but only that. So Basically what you read in the last post&#8230; damn and i got excited about this <img src='http://alexdweb.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  oh boy.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/03/06/browsers-emulate-photoshop-multiply-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unequal Repeating Background &#8211; Easy CSS FIX Solution</title>
		<link>http://alexdweb.com/blog/2010/03/01/unequal-repeating-background-easy-css-fix-solution/</link>
		<comments>http://alexdweb.com/blog/2010/03/01/unequal-repeating-background-easy-css-fix-solution/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 12:07:26 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Images]]></category>
		<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=322</guid>
		<description><![CDATA[Evening All How many times it happend that you got a design to cut/slice from a designer only (or you yourself are a designer) only to find out that the background of the PSD is unequal on both sides, for example you have a curbed line in the middle, and on the left the repeating [...]]]></description>
			<content:encoded><![CDATA[<p> Evening All </p>
<p> How many times it happend that you got a design to cut/slice from a designer only (or you yourself are a designer) only to find out that the background of the PSD is unequal on both sides, for example you have a curbed line in the middle, and on the left the repeating line is placed on top while on the right side it goes in the middle. Something like this: </p>
<div id="attachment_323" class="wp-caption aligncenter" style="width: 1034px"><a href="http://alexdweb.com/blog/wp-content/uploads/2010/03/tmp.jpg"><img src="http://alexdweb.com/blog/wp-content/uploads/2010/03/tmp-1024x225.jpg" alt="" title="Uneven backgrounds" width="1024" height="225" class="size-large wp-image-323" /></a><p class="wp-caption-text">Uneven repeating backgrounds ilustrated</p></div>
<p> Notice the marked areas, well i found a pretty awesome and easy to implement solution. You slice the marked images and you do the following. When you have your main page container, as it&#8217;s siblings you create 2 new divs, bgHelperLeft and bgHelperRight and you style them something like this </p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #6666ff;">.bgHelperLeft</span> &nbsp;<span style="color: #00AA00;">&#123;</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;">1</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #00AA00;">&#40;</span>or where your <span style="color: #000000; font-weight: bold;">background</span> is<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> .. <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
&nbsp;<span style="color: #6666ff;">.bgHelperRight</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;">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;">1</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #00AA00;">&#40;</span>or where your <span style="color: #000000; font-weight: bold;">background</span> is<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> &nbsp;<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> .. <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></div></div>
<p> Since you used z-index: -1; then it means that it wont overlap any of your center images, absolute positioning means that it will stay there, and those widths means that they will meet BEHIND your center area so the user wont see the binning point, all creating a cursive flow from one side of the screen to the other side of the screen. </p>
<p> It works on all major browsers so this is a good trick to know and have in the book. </p>
<p> Questions in comments </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/03/01/unequal-repeating-background-easy-css-fix-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inanis MOD version 2.0</title>
		<link>http://alexdweb.com/blog/2010/01/09/inanis-mod-version-2-0/</link>
		<comments>http://alexdweb.com/blog/2010/01/09/inanis-mod-version-2-0/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 17:21:39 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Images]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Wordpress Themes]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=268</guid>
		<description><![CDATA[Hello After a week of work, I finished the modifications to the this theme, based on the Inanis Theme MOD. This theme is used on both my blogs and so far it works good. I havent encountered any issues so i decided to release the files. Compared to V1.3 which can be found here, this [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> After a week of work, I finished the modifications to the this theme, based on the Inanis Theme MOD. This theme is used on both my blogs and so far it works good. I havent encountered any issues so i decided to release the files.  Compared to V1.3 which can be found <a href="http://alexdweb.com/blog/2009/12/27/wordpress-inanismod-theme-launch/">here</a>, this version has a shitload of improvements such as: (taken from readme) </p>
<p><span id="more-268"></span></p>
<ul>
<li>Version 2.0
<ul>
<li>a) New Image Preloader Via <acronym title="Cascading Style Sheets">CSS</acronym> 2.0</li>
<li> b) Since dropping support for <acronym title="Internet Explorer">IE</acronym>6, trying to make the most with the newest technologies, added rounded borders for firefox/safari/chrome while keeping the old img based solution for <acronym title="Internet Explorer">IE</acronym>7/8. People using those 3 aforementioned browsers will get a small boost in speed since also the divs that took care of the entire img fest are not loaded anymore. </li>
<li> c) Fixed a small issue with the wp_smilies class + added support for the default wordpress alignleft/aligncenter/alignright classes which didnt existed in the <acronym title="Cascading Style Sheets">CSS</acronym> previous versions </li>
<li> d) For <acronym title="Internet Explorer">IE</acronym>6 added a small download link for newer browsers ( update you bastards ) </li>
<li> e) Small optimization done to the start menu. When you click a new theme it activates the theme and automatically closes the menu behind. </li>
<li> f) Decided to drop all those extra clear divs and started to use the clearfix method, so lots of divs have been sliced and diced. </li>
<li> g) For the index, i modified the file so now the excerpts of the posts will show instead of the full post. The user can access the full post by clicking on the more link. Very easily. </li>
<li> h) More minor fixes for the css so everything fits. </li>
</ul>
</li>
<li>Version 1.4 Image Preloader + NoScript functionality.
<ul>
<li>a) Added an image preloader.</li>
<li>b) Small no script stuff.</li>
<li>c) fixed some footer issues with the links</li>
</ul>
</li>
<li>Version 1.31 Small Bugfix
<ul>
<li>a) Fixed a <acronym title="Cascading Style Sheets">CSS</acronym> issue with pingbacks </li>
</ul>
</li>
</ul>
<p> The files can be found <a href='http://alexdweb.com/blog/wp-content/uploads/2010/01/inanisMod_v2.0.zip'>inanisMod_v2.0</a> also please put the comment-template.php from this zip in the wp-includes folder since the xhtml structure is modified. <a href='http://alexdweb.com/blog/wp-content/uploads/2010/01/comment-template.zip'>comment-template</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/09/inanis-mod-version-2-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Conditional Comments for IE</title>
		<link>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/</link>
		<comments>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 22:14:56 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[Basics]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE Bugs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=264</guid>
		<description><![CDATA[Hello This post may be something very common and very known, however not everyone knows these, so this post may be useful to someone. Here is an entire list for this &#60;!--[IF IE 6]&#62; &#60;![endif]--&#62; this means that everything between those will only be loaded/visible by Internet Explorer 6 &#60;!--[IF lte/lt/gte/gt IE 6]&#62; &#60;![endif]--&#62; this [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This post may be something very common and very known, however not everyone knows these, so this post may be useful to someone. </p>
<p> Here is an entire list for this </p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!--[IF IE 6]&gt; &lt;![endif]--&gt;</span> this means that everything between those will only be loaded/visible by Internet Explorer 6<br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF lte/lt/gte/gt IE 6]&gt; &lt;![endif]--&gt;</span> this means that depending on the legend it will load things like <br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span> this means that all versions of IE will NOT READ the code between those 2<br />
&nbsp;lines. This is extremely useful when you try to load specific information and u do not want IE to load it, but<br />
&nbsp;all the other browsers to load said that information. for example<br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span> THIS LINE WILL NOT BE READ BY IE BROWSERS <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span></div></div>
<p><span id="more-264"></span></p>
<ul>
<li> lte = Lower Than Or Equal &mdash; lte <acronym title="Internet Explorer">IE</acronym>6 means that will be loaded by <acronym title="Internet Explorer">IE</acronym>6 and lower versions like <acronym title="Internet Explorer">IE</acronym>5.5 / <acronym title="Internet Explorer">5</acronym> and so on and so forth. </li>
<li> lt = Lower Than &mdash; lt <acronym title="Internet Explorer">IE</acronym>6 means that only lower versions of Internet Explorer 6 will read that part of the code such as <acronym title="Internet Explorer">IE</acronym>5.5 / <acronym title="Internet Explorer">IE</acronym>5 / <acronym title="Internet Explorer">IE</acronym>4 and so on and so forth. </li>
<li> gte = Greater Than Or Equal &mdash; gte <acronym title="Internet Explorer">IE</acronym>6 means that browsers versions higher than 6 or equal to 6 will load that code, such as <acronym title="Internet Explorer">IE</acronym>6 / <acronym title="Internet Explorer">IE</acronym>7 / <acronym title="Internet Explorer">IE</acronym>8 and so on and so forth. </li>
<li> gt = Greater than &mdash; gt <acronym title="Internet Explorer">IE</acronym>6 means that browsers versions higher than 6 will load the code such as <acronym title="Internet Explorer">IE</acronym>7 / <acronym title="Internet Explorer">IE</acronym>8 and so on and so forth. </li>
</ul>
<p> The most useful part is the ability to load information that is not read by <acronym title="Internet Explorer">IE</acronym> browsers at all, you could do something very nice, for example if you wish to drop <acronym title="Internet Explorer">IE</acronym>6 support your stylesheet and <acronym title="Javascript">JS</acronym> includes will look like this:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</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;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;./css/mainCss.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--[if gte IE 7]&gt;</span><br />
<span style="color: #808080; font-style: italic;"> &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/mainCss.css&quot; /&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;![endif]--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;./js/mainJs.js&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF gte IE 7]&gt;</span><br />
<span style="color: #808080; font-style: italic;"> &lt;script type=&quot;text/javascript&quot; src=&quot;./js/mainJs.js&quot; /&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;![endif]--&gt;</span></div></div>
<p> The code above will only load the files for <acronym title="Internet Explorer">IE</acronym>7+ and all other browsers. A live example of this situation is my own website, which does not support <acronym title="Internet Explorer">IE</acronym>6. </p>
<p> Regards </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preloading CSS Images with CSS 2.1 and CSS 3.0</title>
		<link>http://alexdweb.com/blog/2010/01/07/preloading-css-images-with-css-2-1-and-css-3-0/</link>
		<comments>http://alexdweb.com/blog/2010/01/07/preloading-css-images-with-css-2-1-and-css-3-0/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 15:36:07 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Images]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=174</guid>
		<description><![CDATA[Hello. I was trying to figure out a way to preload CSS images, by javascript or CSS. Unfortunately all the methods I found are not effective, since even tho the images are loaded, when the CSS part that contains an image which is not accessible when the site first opens, it still requires it and [...]]]></description>
			<content:encoded><![CDATA[<p> Hello. </p>
<p> I was trying to figure out a way to preload <acronym title="Cascading Style Sheets">CSS</acronym> images, by javascript or <acronym title="Cascading Style Sheets">CSS</acronym>. Unfortunately all the methods I found are not effective, since even tho the images are loaded, when the <acronym title="Cascading Style Sheets">CSS</acronym> part that contains an image which is not accessible when the site first opens, it still requires it and downloads it. I checked the net panel in firebug and it wasnt very pretty. </p>
<p> However these methods do work if you try to load images into an &lt;img&gt; tag: </p>
<p><span id="more-174"></span></p>
<h3> CSS 2.1 Method </h3>
<p> Using <acronym title="Cascading Style Sheets">CSS</acronym> 2.1 the method is pretty simple. It takes advantage of the <code class="codecolorer css default"><span class="css"><span style="color: #00AA00;">:</span>before</span></code> and <code class="codecolorer css default"><span class="css"><span style="color: #00AA00;">:</span>after</span></code> pseudo classes, and the <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">content</span></span></code> property. Although this property is pretty limited in what it can do, it does what we need. </p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.pageWrap</span><span style="color: #3333ff;">:after</span><span style="color: #00AA00;">&#123;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./absolute/path/to/image OR ./relative/path/to/image based on the HTML <br />
file itself rather than the CSS file. (if it doesnt work try with absolute pathing). ex:<br />
&nbsp;url(&quot;</span>./stuff.jpg<span style="color: #ff0000;">&quot;) url(&quot;</span>./stuff2.jpg<span style="color: #ff0000;">&quot;) url(&quot;</span>./stuff3.jpg<span style="color: #ff0000;">&quot;); <br />
/* Important make sure you dont use &quot;</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">&quot; to separate the urls */<br />
display: none;<br />
}</span></div></div>
<p> We load the images and then we use display: none so they dont show up, but they are cached so when you load the image within a &lt;img&gt; tag it will show up instantly. </p>
<p> The benefits of this method is that it has a fairly wide acceptance among browser vendors, IE8/Firefox 2+/Google Chrome 1+/Safari 3+. For Previous IE versions you could load up a <acronym title="Javascript">JS</acronym> preload. </p>
<h3> CSS 3.0 Method </h3>
<p> Using the <acronym title="Cascading Style Sheets">CSS</acronym> 3.0 is even simpler, it takes advantage of the modifications done to the <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">background</span></span></code> property by being able to load multiple images with 1 element. Regardless of what the browser can support we can always create a dummy element and load all the images and then give it a <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span></span></code> we need to use in a &lt;img&gt; tag. </p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.el</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/image1.jpg&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <br />
&nbsp; &nbsp;<span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/image2.jpg&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <br />
&nbsp; &nbsp;<span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/imageN.jpg&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p> The huge downside of this method is that currently only Google Chrome 4 and Safari 4 support these improvements to the <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">background</span></span></code> property. Firefox is due to support them in Firefox 3.6 which at the time of this post is in beta 5 so it will be released in 2-3 weeks. IE will probably support <acronym title="Cascading Style Sheets">CSS</acronym>3 properties when IE9 will be available, which according to the IEBlog will happen in a year or so. </p>
<p> I am still looking for a way to preload <acronym title="Cascading Style Sheets">CSS</acronym> images into play, so when they are requested again, they will use their cached versions instead of being downloaded again. </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/07/preloading-css-images-with-css-2-1-and-css-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Mistakes</title>
		<link>http://alexdweb.com/blog/2010/01/05/programming-mistakes/</link>
		<comments>http://alexdweb.com/blog/2010/01/05/programming-mistakes/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 14:56:40 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Stupid Things]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Stupid Mistakes]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Themes]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=169</guid>
		<description><![CDATA[Hello This post is sort of a checklist of things to check before you upload you&#8217;re files on the webserver, and this will be updated with more things as time allows it. One of the most annoying things you can get is that if you maintain a localhost version of your website, and your live [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This post is sort of a checklist of things to check before you upload you&#8217;re files on the webserver, and this will be updated with more things as time allows it. </p>
<p> One of the most annoying things you can get is that if you maintain a localhost version of your website, and your live website has the google analytics code in it, when you upload your local files overwriting the files on the webserver, those newer files you have on your localhost may not have the google analytics script set, so you will end up like me with 1 week of uncounted traffic. Stupid and Newbie mistake, meh note to self, never push updates after midnight because shit may happen. </p>
<p><span id="more-169"></span></p>
<p> List </p>
<ul>
<li> Overwriting files on the webserver that have the Google Analytics code with files that do not have that code, Missing Traffic for the Lose <img src='http://alexdweb.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </li>
<li> Another thing that can go awkward is that if you do some sort of <acronym title="Hypertext Preprocessor<br />
">PHP</acronym> and you include/require files and you have a $path variable, when you upload the config on the server, make sure you change the $path from $path = http://localhost/ to $path = http://yourwebsite.com/. </li>
<li> Based on wordpress stylesheet files, if you have a <acronym title="Cascading Style Sheets">CSS</acronym> folder and you copy some <acronym title="Cascading Style Sheets">CSS</acronym> from the styles.css into a new file in the <acronym title="Cascading Style Sheets">CSS</acronym> folder, then you need to update any pathing for images. Normally all <acronym title="Cascading Style Sheets">CSS</acronym> files are in a specific folder so this is a non-issue, but with <acronym title="Wordpress">WP</acronym> you have to pay attention, else you spend 30 minutes trying to figure why it isnt working. </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/05/programming-mistakes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Do Quick Shortcuts ala Google Mail Part 2</title>
		<link>http://alexdweb.com/blog/2009/11/28/how-to-do-quick-shortcuts-ala-google-mail-part-2/</link>
		<comments>http://alexdweb.com/blog/2009/11/28/how-to-do-quick-shortcuts-ala-google-mail-part-2/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 13:17:25 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=111</guid>
		<description><![CDATA[Hello In this post I will elaborate and add more functionality to a previous post of mine found here here. Basically i have added more functionality to the page, such as left / right key navigation, number key functionality, enter/escape key functionality, and of course the entire suite of conditions needed so the code works [...]]]></description>
			<content:encoded><![CDATA[<p> Hello</p>
<p> In this post I will elaborate and add more functionality to a previous post of mine found <a href="http://alexdweb.com/blog/2009/11/24/how-to-do-quick-shortcuts-ala-google-mail-part-1/">here here</a>. Basically i have added more functionality to the page, such as left / right key navigation, number key functionality, enter/escape key functionality, and of course the entire suite of conditions needed so the code works properly. </p>
<p> I have tried to build each functionality as a module, which you can add and remove, however in order to have the search function work well with the tab functionality and switching, then some interdependence was needed. </p>
<h3> the XHTML </h3>
<p> The <acronym title="Extended HyperText Markup Language">XHTML</acronym> is not different from the last version, the only thing different is a few bits and pieces of additions, and more importantly a couple of new lists so we can have a tab functionality. Other than that, there were no major changes. </p>
<h3> the CSS </h3>
<p> As with the first version this <acronym title="Cascading Style Sheets">CSS</acronym> is very basic however you can style it as you wish, probably in the future i may add some nicer styles to the project but for now, since it&#8217;s just a tutorial thingy, i think what we have is quite enough. </p>
<h3> the JS </h3>
<p> The <acronym title="Javascript">JS</acronym> suffered major changes, (of course right, we&#8217;re building a <acronym title="Javascript">JS</acronym> application here). It is kinda hard to explain everything in the post, but all the lines (almost all the lines) are heavily commented within the <acronym title="Javascript">JS</acronym> file itself, so please refer to that file for exact instructions and explanations. </p>
<p> The files can also be found online <a href="http://alexdweb.com/blog/demo/wp-2/">Here</a> and a zip file can be downloaded from <a href='http://alexdweb.com/blog/2009/11/28/how-to-do-quick-shortcuts-ala-google-mail-part-2/wp-2/' rel='attachment wp-att-112'>here</a></p>
<p> In part 3 of the series i will try to enlarge the search possiblity to include more than 1 letter </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/11/28/how-to-do-quick-shortcuts-ala-google-mail-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Do Quick Shortcuts ala Google Mail Part 1</title>
		<link>http://alexdweb.com/blog/2009/11/24/how-to-do-quick-shortcuts-ala-google-mail-part-1/</link>
		<comments>http://alexdweb.com/blog/2009/11/24/how-to-do-quick-shortcuts-ala-google-mail-part-1/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 23:27:57 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=87</guid>
		<description><![CDATA[Hello this post is the one of the things i have stumbled upon today I was working on a project and i was requested to do something ala Gmail shortcuts, aka you press a specific button and something happens, well, first off i looked on the web to see if there is any information, which [...]]]></description>
			<content:encoded><![CDATA[<p>Hello this post is the one of the things i have stumbled upon today</p>
<p> I was working on a project and i was requested to do something ala Gmail shortcuts, aka you press a specific button and something happens, well, first off i looked on the web to see if there is any information, which of course it&#8217;s not at least from what i looked so i had to build it myself </p>
<p> First off we&#8217;ll start with a basic <acronym title="Extended HyperText Markup Language">XHTML</acronym>, containing an un-ordered list, styled a bit, the real secret is the <acronym title="Javascript">JS</acronym> itself, you can style the <acronym title="Extended HyperText Markup Language">xhtml</acronym>/<acronym title="Cascading Style Sheets">css</acronym> as you want, it doesnt really matter. To save space i&#8217;ll upload the complete final files at the end of this post, with instructions and comented <acronym title="Cascading Style Sheets">css</acronym>/<acronym title="Extended HyperText Markup Language">xhtml</acronym>/jquery </p>
<p><span id="more-87"></span></p>
<h3> The XHTML </h3>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pageWrap&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;desc&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span> This is Version 1 of the project. This demo now shows how you can press any letters<br />
&nbsp;and only the relevant names that start with that letter show up. In the future you can expect: further <br />
filtering, arrow navigation, special key functionality + more <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span>&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tip&quot;</span>&gt;</span> Press any letter to show only the names starting with that letter.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;msg&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;helpBox&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>John Smith<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>....names go here with or without an empty space , see below <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span> Jimmy Carter<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clear&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p> Okay what everything means is the <code class="codecolorer css default"><span class="css">p.tip</span></code> is basically a tip, how to use the system, not important in the <acronym title="Javascript">JS<acronym>. </p>
<p> the <code class="codecolorer css default"><span class="css">div.helpBox</span></code> is very important, because in <acronym title="Javascript">JS</acronym>, it will hold the letter the user typed, due to the <acronym title="Javascript">JS</acronym> used only 1 letter will be saved, the last one he typed. </p>
<p> the <code class="codecolorer css default"><span class="css">div<span style="color: #6666ff;">.container</span> ul</span></code> holds the <code class="codecolorer html4strict default"><span class="html4strict">li</span></code> elements that are the things we are interested in, and finally the <code class="codecolorer html4strict default"><span class="html4strict">li</span></code> tags hold the names we wish to search through. </p>
<p> Please note that after you understand how this works, you can change the <acronym title="Extended HyperText Markup Language">xhtml</acronym>/<acronym title="Cascading Style Sheets">css</acronym> structure to anything that suits you, this is just a demo, to show a concept. </p>
<p> Regarding the <acronym title="Javascript">JS</acronym> it is commented extensively within the file so please read that. It is possible to make it work for how many letters you want, however the code gets exponentially bigger as conditions have to be added, i will make a post about how to get 2-3 letters to work together very very easily after we build in more functionality in this post, like left/right navigation, what happens if you have different things u want sorted, and of course a top navigation that can switch between the various lists you have stored </p>
<p> Please note that this system can be used for a very extensive part, i posted about what you can do with a li tag in <a href="http://alexdweb.com/blog/2009/11/14/links-within-links-that-actually-work/">This Post</a> so you could read that also</p>
<p> Attached is a full functional demo, with the <acronym title="Javascrit">js</acronym> file commented at every step of the way, so for <acronym title="Javascript">js</acronym> instructions please refer there </p>
<p> In the next post i will show you how you can have left/right arrow keys functions, and in part 3 a top navigation bar, if you have multiple lists, and updated and enhanced left/right arrow key functionality to work with the new lists (this actually took me a while to figure out) AND in finally part 4 the ability to sort via 2 and 3 letters, each part being build on the code that is here ((this i havent done yet, so it will take some trial and error to do so this post may not come as soon as the other 2 parts </p>
<p> Here is the attached file <a href='http://alexdweb.com/blog/2009/11/24/how-to-do-quick-shortcuts-ala-google-mail-part-1/wp-1/' rel='attachment wp-att-96'>How To Do Quick Shortcuts ala Google Mail  Part 1</a> and a demo can be viewed online <a href="http://alexdweb.com/blog/demo/wp-1">HERE</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/11/24/how-to-do-quick-shortcuts-ala-google-mail-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Links within links that actually work</title>
		<link>http://alexdweb.com/blog/2009/11/14/links-within-links-that-actually-work/</link>
		<comments>http://alexdweb.com/blog/2009/11/14/links-within-links-that-actually-work/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 01:34:04 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=75</guid>
		<description><![CDATA[Hello I just found out something very very interesting when i was working on a project. Basically it required me to put a div inside a a tag and that div also had some links. I managed to do that however the code is not valid. Will post source code with examples and explanations tomorrow. [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> I just found out something very very interesting when i was working on a project. Basically it required me to put a <code class="codecolorer html4strict default"><span class="html4strict">div</span></code> inside a <code class="codecolorer html4strict default"><span class="html4strict">a</span></code> tag and that <code class="codecolorer html4strict default"><span class="html4strict">div</span></code> also had some links. I managed to do that however the code is not valid. Will post source code with examples and explanations tomorrow. </p>
<p> Okay so basically what I was trying to create was something like this (simplified for good reasons) </p>
<p> My version also had a hover <acronym title="Javascript">JS</acronym> element over the entire box, so when the user hovers over it, it gets highlighted. So far nothing went bad, everything fits together nicely </p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;./image/stuff.png&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;200px&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;200px&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span> <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span> Link 1 <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span> <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span> Link 2 <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p><span id="more-75"></span></p>
<p> Attached is an image of said file </p>
<div><a href="http://alexdweb.com/blog/2009/11/14/links-within-links-that-actually-work/image1/" rel="attachment wp-att-79"><img src="http://alexdweb.com/blog/wp-content/uploads/2009/11/image1.jpg" alt="image1" title="image1" width="793" height="814" class="aligncenter size-full wp-image-79" /></a></div>
<p> The Challenge came when my client asked to encompass the entire <code class="codecolorer html4strict default"><span class="html4strict">div</span></code> into an <code class="codecolorer html4strict default"><span class="html4strict">a</span></code> tag so he could use it for redirecting to something else. Unfortunately as we know, <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> &gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></span></code> does not work, so i had to come up with a solution to this matter </p>
<p> The situation was quite easily done, since those boxes had to be floated, i could replace them with a <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span></span></code> tag. However this was close but no cigar, since i still ended up with the old <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></span></code> situation. Then i thought about the <code class="codecolorer html4strict default"><span class="html4strict">span</span></code> tag and since the <code class="codecolorer html4strict default"><span class="html4strict">span</span></code> and <code class="codecolorer html4strict default"><span class="html4strict">div</span></code> tags are both <strong>MEANINGLESS</strong> and <strong> Almost identical in behavior </strong> i could simply replace the div with the span and just make sure to put the <code class="codecolorer css default"><span class="css"><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></code> property on the <code class="codecolorer html4strict default"><span class="html4strict">span</span></code> so it will replicate the <code class="codecolorer html4strict default"><span class="html4strict">div</span></code>. and the <code class="codecolorer html4strict default"><span class="html4strict">span</span></code> tag works inside a <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></span></code> tag  </p>
<p> So my code at the end looked something like this: </p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span> <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span> Create Link <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span> | <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span>#<span style="color: #ff0000;">&quot;&gt;</span></span> Create Link <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></div>
<p> However then i had a problem, the encompassing <code class="codecolorer html4strict default"><span class="html4strict">a</span></code> tag reduced my 2 inner <code class="codecolorer html4strict default"><span class="html4strict">a</span></code> tags useless. Given this situation I had to create another <code class="codecolorer html4strict default"><span class="html4strict">div</span></code> outside the encompassing <code class="codecolorer html4strict default"><span class="html4strict">a</span></code> tag and absolute-position that <code class="codecolorer html4strict default"><span class="html4strict">div</span></code> in the same place so it will look the same but behave totally different, now all links are working properly, and the user wont even notice the difference. The only thing not quite correct is that the code is not valid, but meh, sometime you have to cut some corners. </p>
<p> This is the almost the final draft with the code </p>
<p><a href="http://alexdweb.com/blog/2009/11/14/links-within-links-that-actually-work/image2/" rel="attachment wp-att-80"><img src="http://alexdweb.com/blog/wp-content/uploads/2009/11/image2.jpg" alt="image2" title="image2" width="786" height="742" class="aligncenter size-full wp-image-80" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/11/14/links-within-links-that-actually-work/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS removing the outline on links</title>
		<link>http://alexdweb.com/blog/2009/08/16/css-removing-the-outline-on-links/</link>
		<comments>http://alexdweb.com/blog/2009/08/16/css-removing-the-outline-on-links/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 15:13:16 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=58</guid>
		<description><![CDATA[Hello, this is a short post the property is a &#123; outline: 0px none;&#125; however you need to have all the pseudo classes under this rule, &#160;a:focus, a:hover, a:active, a:visited &#123; outline: 0px none;&#125;]]></description>
			<content:encoded><![CDATA[<p> Hello, this is a short post </p>
<p> the property is <code class="codecolorer css default"><span class="css">a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></span></code> however you need to have all the pseudo classes under this rule, <code class="codecolorer css default"><span class="css">&nbsp;a<span style="color: #3333ff;">:focus</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></span></code> </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/08/16/css-removing-the-outline-on-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 UL OL Vertical Bug</title>
		<link>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/</link>
		<comments>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 15:02:00 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=45</guid>
		<description><![CDATA[Hello again Did you know that IE6(and only IE6, IE7+ doesnt have this issue) has a weird UL/OL bug ? If not read on Lets say you want to make a vertical list of items that are linkedable like this &#60;ul&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 1&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 2&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 3&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 4&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; ul [...]]]></description>
			<content:encoded><![CDATA[<p> Hello again </p>
<p> Did you know that <acronym title="Internet Explorer">IE</acronym>6(and only <acronym title="Internet Explorer">IE</acronym>6, <acronym title="Internet Explorer">IE</acronym>7+ doesnt have this issue) has a weird UL/OL bug ? </p>
<p> If not read on </p>
<p> Lets say you want to make a vertical list of items that are linkedable like this </p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></div>
<p><span id="more-45"></span></p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ul li a <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;">line-height</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-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p> In all browsers except <acronym title="Internet Explorer">IE</acronym>6 the list will look OK, however <acronym title="Internet Explorer">IE</acronym>6 has a peculiar thing, because you press ENTER and you put the list items each on a new row, somehow <acronym title="Internet Explorer">IE</acronym>6 interprets that space as a white line, and you will end up with THIS </p>
<div>
<a href="http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/ie6vertbug/" rel="attachment wp-att-46"><img src="http://alexdweb.com/blog/wp-content/uploads/2009/11/ie6vertbug.jpg" alt="IE6 HORRORS" title="ie6vertbug" width="376" height="449" class="size-full wp-image-46" /></a></div>
<h3> THE HORROR!!!!&#8230; </h3>
<p> Well there are multiple ways to fix this issue, from involving Huge javascript codes to doing some very basic things, and the most basic method of it all is to write those links as follow: </p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></div>
<p> The &#8220;wonders&#8221; of <acronym title="Internet Explorer">IE</acronym>6 &#8230; </p>
<p> If you have questions, post them in the comments and i will answer as soon as possible </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Display None Versus Visibility hidden</title>
		<link>http://alexdweb.com/blog/2009/06/04/display-none-versus-visibility-hidden/</link>
		<comments>http://alexdweb.com/blog/2009/06/04/display-none-versus-visibility-hidden/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 15:00:44 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Stupid Mistakes]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=43</guid>
		<description><![CDATA[Did you know the difference between them? Well to be honest at first glance, both of them do the same thing. Make the element invisible to the user. However there is a very small subtle difference between them. display: none -> This makes the element invisible AND removes it from pageflow. so if you have [...]]]></description>
			<content:encoded><![CDATA[<h1> Did you know the difference between them? </h1>
<p> Well to be honest at first glance, both of them do the same thing. Make the element invisible to the user. However there is a very small subtle difference between them. </p>
<p> <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span></span></code> -> This makes the element invisible AND removes it from pageflow. so if you have items below the item, they will be slided upwards to fill the space this element previous occupied</p>
<p> <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span></span></code> -> This makes the element invisible HOWEVER it still retains it&#8217;s space in the pageflow of the page. so the items below wont move upwards. In other words you will have an empty hole where this element is. </p>
<p> Nice eh? </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/06/04/display-none-versus-visibility-hidden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a breadcrum navigation xhtml/css</title>
		<link>http://alexdweb.com/blog/2009/04/24/how-to-create-a-breadcrum-navigation-xhtmlcss/</link>
		<comments>http://alexdweb.com/blog/2009/04/24/how-to-create-a-breadcrum-navigation-xhtmlcss/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 18:47:27 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[clean solution]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=23</guid>
		<description><![CDATA[Hello. In this tutorial i will tell you how to create a breadcrumb navigation menu So lets start with the XHTML XHTML &#60;div class=&#34;navMenu&#34;&#62; &#160; &#160; &#60;a href=&#34;#&#34; class=&#34;home&#34;&#62; &#60;/a&#62; &#160; &#160; &#60;span class=&#34;intermediareSpan&#34;&#62; &#60;/span&#62; &#160; &#160; &#60;a href=&#34;#&#34; class=&#34;intermediareLink&#34;&#62; Intermediare Link &#60;/a&#62; &#160; &#160; &#60;span class=&#34;lastSpan&#34;&#62; &#60;/span&#62; &#160; &#160; &#60;a href=&#34;#&#34; class=&#34;lastLink&#34;&#62; End LINK [...]]]></description>
			<content:encoded><![CDATA[<p> Hello. In this tutorial i will tell you how to create a breadcrumb navigation menu </p>
<p> So lets start with the <acronym title="Extensible HyperText Markup Language">XHTML</acronym></p>
<h3> XHTML </h3>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navMenu&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;home&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;intermediareSpan&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;intermediareLink&quot;</span>&gt;</span> Intermediare Link <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lastSpan&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lastLink&quot;</span>&gt;</span> End LINK <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clear&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p><span id="more-23"></span></p>
<h3> CSS </h3>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> 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: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> span <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: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> a<span style="color: #6666ff;">.home</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./../images/homebox.gif&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <br />
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">28px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">23px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> span<span style="color: #6666ff;">.intermediareSpan</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./../images/intermediareSpan.gif&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">23px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> a<span style="color: #6666ff;">.intermediareLink</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./../images/linkBg.gif&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <br />
<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">23px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">23px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> a<span style="color: #6666ff;">.intermediareLink</span><span style="color: #3333ff;">:focus</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.navMenu</span> a<span style="color: #6666ff;">.intermediareLink</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#549321</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;">underline</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> span<span style="color: #6666ff;">.lastSpan</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./../images/lastSpan.gif&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <br />
<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">23px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> a<span style="color: #6666ff;">.lastLink</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./../images/lastBg.gif&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> &nbsp;<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e23421</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">23px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.navMenu</span> a<span style="color: #6666ff;">.lastLink</span><span style="color: #3333ff;">:focus</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.navMenu</span> a<span style="color: #6666ff;">.lastLink</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ad3241</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;">underline</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p> So lets explain a bit the code above </p>
<p> The first link, class home, will have a background image of the home icon as presented in the end product image. The <code class="codecolorer css default"><span class="css">span.intermediare</span></code> class will be presented all over the middle lines, and this contains a background image contains the interlining elements, the intermediate links will have their class called <code class="codecolorer css default"><span class="css">link.intermediate</span></code>. Before the last link in the element, the span will have it&#8217;s class changed from <code class="codecolorer html4strict default"><span class="html4strict">span.intermediare to span.lastSpan</span></code> and then the last link will have it&#8217;s class set to <code class="codecolorer css default"><span class="css">a.lastLink.</span></code> </p>
<p> This is pretty easy to put together and each group can be styled accordingly to create interesting combinations of background images or colors, also more elements can be added to create different underlines or borders. </p>
<p> No javacsript is needed, however this entire system must be powered by a <acronym title="Content Management System">CMS</acronym> system, because the classes are dynamically generated based on the location of the user and how many &#8220;inside&#8221; the website structure they find themselves. </p>
<p> If you have questions please post a comment and i&#8217;ll get some answers here </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/24/how-to-create-a-breadcrum-navigation-xhtmlcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>position:fixed for Internet Explorer 6</title>
		<link>http://alexdweb.com/blog/2009/04/23/positionfixed-for-internet-explorer-6/</link>
		<comments>http://alexdweb.com/blog/2009/04/23/positionfixed-for-internet-explorer-6/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 16:37:43 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[clean solution]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE6 Bugs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=21</guid>
		<description><![CDATA[Hello As you well know Internet Explorer 6 and lower doesnt recognize position:fixed in CSS, in order to get around that issue we need to do this. Btw everything goes in the same css file, the * html star is a hack for IE6 so only it seems the code so other browsers arent affected. [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> As you well know Internet Explorer 6 and lower doesnt recognize position:fixed in <acronym title="Cascading Style Sheets">CSS</acronym>, in order to get around that issue we need to do this. Btw everything goes in the same css file, the * html star is a hack for <acronym title="Cascading Style Sheets">IE</acronym>6 so only it seems the code so other browsers arent affected. </p>
<p><span id="more-21"></span></p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/* ===== Normal CSS for all other browsers ====== */</span><br />
.<span style="color: #993333;">fixed</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;">fixed</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/* ==== IE Specific CSS ==== */</span><br />
<span style="color: #00AA00;">*</span> html <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</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><br />
<span style="color: #00AA00;">*</span> html body <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #00AA00;">*</span> html .<span style="color: #993333;">fixed</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;">absolute</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p> Please note that this means that future absoltute positioned elements will probably break so a safer bet is either to use javascript or just plain use position fixed and suck it up, <acronym title="Internet Explorer">IE</acronym>6 is going to die pretty soon anyways </p>
<p> Questions in Comments </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/23/positionfixed-for-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sticky Footer &#8220;CSS ONLY&#8221; SOLUTION</title>
		<link>http://alexdweb.com/blog/2009/04/20/sticky-footer-css-only-solution/</link>
		<comments>http://alexdweb.com/blog/2009/04/20/sticky-footer-css-only-solution/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 17:18:45 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[clean solution]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE Bugs]]></category>
		<category><![CDATA[Sticky Footer]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=19</guid>
		<description><![CDATA[What does this do? This makes your footer stick at the bottom of the page, even if you have little content on the page. This is useful, but of course there are some jQuery alternatives which will be posted in a similar post later on. It&#8217;s a very simple, clean, CSS based only solution that [...]]]></description>
			<content:encoded><![CDATA[<p> What does this do? </p>
<p> This makes your footer stick at the bottom of the page, even if you have little content on the page. This is useful, but of course there are some jQuery alternatives which will be posted in a similar post later on. It&#8217;s a very simple, clean, <acronym title="Cascading Style Sheets">CSS</acronym> based only solution that works in 90%+ of the cases. Also this works in <acronym title="Internet Explorer">IE</acronym>6. </p>
<p> The other solution is 10 times simpler but does not work in Internet Explorer 6. More details below&#8230;</p>
<p><span id="more-19"></span></p>
<h2> First Method </h2>
<h3> XHTML </h3>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;layout.css&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wrapper&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span> CONTENT HERE <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;push&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span> copyright 2009 <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></div></div>
<p> The wrapper div must enclose the page content. And the push div must be the last line in the content area </p>
<h3> The CSS </h3>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
html<span style="color: #00AA00;">,</span> body <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.wrapper</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">auto</span> <span style="color: #933;">-100px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.footer</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.push</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;">100px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p> The only limitations are that you need to know exactly the footer height and the footer must have over 80px; it doesnt work with less than that, i dont know why, but thats the way it is </p>
<p> The wrapper <acronym title="Cascading Style Sheets">CSS</acronym> for <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">min-height</span></span></code>, <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">height</span></span></code> and <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">height</span></span></code> again is because of a bug in <acronym title="Internet Explorer">IE</acronym>6 important declaration, and since every other browser supports the proper important declaration, basically every browser will have it&#8217;s height set as auto, while <acronym title="Internet Explorer">IE</acronym>6 will be bugged into making sure it has the <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">min-height</span></span></code> solution implemented correctly. I dont know the inner workings but after testing this seems to work </p>
<p> Another thing to keep in mind is that the <code class="codecolorer html4strict default"><span class="html4strict">div.push</span></code> height&#8217;s must be a bit bigger so you have to tweak the values to suit your design </p>
<p> Also another thing, dont use margin top on your wrapper since it will break this, and if it still breaks afterwards, just add paddings on the <code class="codecolorer html4strict default"><span class="html4strict">div.content</span></code></p>
<p> This is the only clean solution to get the footer to stick at the bottom of the page, using <acronym title="Cascading Style Sheets">CSS</acronym> only, there are also some jQuery alternatives i&#8217;ll look into and post here in a few days. </p>
<h2> Second Method </h2>
<p> The second method takes advantage of the <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span></span></code> in <acronym title="Cascading Style Sheets">CSS</acronym> 2.1 however this method only works in <acronym title="Internet Explorer">IE</acronym>7+, because <acronym title="Internet Explorer">IE</acronym>6 doesnt understand <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span></span></code> native, however we have a small trick to do <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span></span></code> in <acronym title="Internet Explorer">IE</acronym>6 found <a href="http://alexdweb.com/blog/2009/04/23/positionfixed-for-internet-explorer-6/">here</a>. You can combine them if you wish. </p>
<p> For all the other browsers, add to the element you wish positioned fixed the <acronym title="Cascading Style Sheets">CSS</acronym>, and then hack for <acronym title="Internet Explorer">IE</acronym>6 if you wish to support that crappy browser. </p>
<p>Questions in comments. Will answer as they come.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/20/sticky-footer-css-only-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery stylesheet changer</title>
		<link>http://alexdweb.com/blog/2009/04/13/jquery-stylesheet-changer/</link>
		<comments>http://alexdweb.com/blog/2009/04/13/jquery-stylesheet-changer/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 00:24:42 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=16</guid>
		<description><![CDATA[Hello I was always wondering what jQuery can do to help me give more power to my CSS stylesheets so one day after some time spent on the web i discovered a very very simple solution that was so easy to install that i was baffled that i couldnt figure it out a lot sooner. [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p>I was always wondering what jQuery can do to help me give more power to my <acronym title="Cascading Style Sheets">CSS</acronym> stylesheets so one day after some time spent on the web i discovered a very very simple solution that was so easy to install that i was baffled that i couldnt figure it out a lot sooner. So without further comments here is the rundown of the stuff.</p>
<p><span id="more-16"></span></p>
<h3>the XHTML</h3>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nav&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;path/to/file&quot;</span>&gt;</span> Stylesheet 1 <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;path/to/file&quot;</span>&gt;</span> Stylesheet 2 <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;path/to/file&quot;</span>&gt;</span> Stylesheet 3 <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></div>
<p>It&#8217;s very straightforward very easy to implement</p>
<p>You may wonder why i didnt use the <code class="codecolorer html4strict default"><span class="html4strict">href</span></code> tag instead, well if the user has javascript turned off, then it means that he will be redirected to the <acronym title="Cascading Style Sheets">CSS</acronym> file in question rather than just changing the file which is very very bad so thats why we are using the rel attribute.</p>
<h3>The  jQuery</h3>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav li a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;link&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;rel&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></div>
<p>What did we do here? Simple, everytime a user clicks one of the links in the nav id, the <code class="codecolorer html4strict default"><span class="html4strict">rel</span></code> attribute we specified is given to the LINK element in the head section of the page. the link element is the tag which inserts external <acronym title="Cascading Style Sheets">CSS</acronym> files, so by changing that we CHANGE how the site looks.</p>
<p>Now since we did that and it works, users may be annoyed to do this everytime they enter your site, so it&#8217;s a good thing we have the cookie jquery plugin which sorts all our issues. so with some small tweaks to the jquery code we get something like this</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;link&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #339933;">,</span> $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav li a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;link&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;rel&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;css&quot;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;rel&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> expires<span style="color: #339933;">:</span> <span style="color: #CC0000;">365</span><span style="color: #339933;">,</span> path<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;/&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></div>
<p>Now everything is AOK, only that the user sheets a small shutter everytime they load the page, since javascript is loaded after the <acronym title="HyperText Markup Language">HTML</acronym> and <acronym title="Cascading Style Sheets">CSS</acronym> is loaded. to prevent that we can put the if statement ABOVE the document ready function. This is not recommended most of the times but since we know exactly WHAT to manipulate we can do this on this occasion.</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;link&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #339933;">,</span> $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav li a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;link&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;rel&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;css&quot;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;rel&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> expires<span style="color: #339933;">:</span> <span style="color: #CC0000;">365</span><span style="color: #339933;">,</span> path<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;/&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></div>
<p> In case people didnt know this is the order you need to put link the scripts/<acronym title="Cascading Style Sheets">CSS</acronym> in order for this technique to work. </p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</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;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/path/to/css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/js/jQueryLib.js&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/js/jQueryCookie.js&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/js/changeCSS.js&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span></div></div>
<p>And that is all, nice nifty webpage that does the trick and helps you out enormously when you try to make larger font sizes and stuff like that, even for skinning purposes.</p>
<p>Questions in comments, will answer all of them.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/13/jquery-stylesheet-changer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Variable Width/Height Box with CSS</title>
		<link>http://alexdweb.com/blog/2009/04/02/variable-widthheight-box-with-css/</link>
		<comments>http://alexdweb.com/blog/2009/04/02/variable-widthheight-box-with-css/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 15:10:48 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[rounded corners]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=10</guid>
		<description><![CDATA[Hello. This tutorial will illustrate how to create a variable width/height box with a background image and rounded corners via CSS. The solution is very easy and the box created can be easily modified and shaped according to different widths and heights required. First off: you need a PSD file or an image with the [...]]]></description>
			<content:encoded><![CDATA[<p>Hello.</p>
<p>This tutorial will illustrate how to create a variable width/height box with a background image and rounded corners via <acronym title="Cascading Style Sheets">CSS</acronym>.</p>
<p>The solution is very easy and the box created can be easily modified and shaped according to different widths and heights required.</p>
<p>First off: you need a <acronym title="Photoshop Layered Image">PSD</acronym> file or an image with the entire box.</p>
<p>Second you need to have a <acronym title="HyperText Markup Language">HTML</acronym> file, a <acronym title="Cascading Style Sheets">CSS</acronym> file and the images folder.</p>
<p><span id="more-10"></span></p>
<p>Ok, so the html structure will look like this:</p>
<h2> THE XHTML </h2>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;roundedBorder&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;border&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;innerRoundBorder&quot;</span>&gt;</span><br />
<span style="color: #ddbb00;">&amp;nbsp;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p>The first line is the container of the box.</p>
<p>The second line is a helpful <acronym title="Cascading Style Sheets">CSS</acronym> class helper and it shows in the code what that div is doing.</p>
<p>The logic is: top bar, bottom bar, left bar, right bar, bottom-left corner, bottom-right corner, top-left corner , top-right corner. The <code class="codecolorer css default"><span class="css">.innerRoundBorder</span></code> is another helpful <acronym title="Cascading Style Sheets">CSS</acronym> class, so you can chain your <acronym title="Cascading Style Sheets">CSS</acronym> for one thing, so you dont have to have large specificity. The fact is that this technique is based on the specificity of the <acronym title="Cascading Style Sheet">CSS</acronym>, as you will see in the following <acronym title="Cascading Style Sheet">CSS</acronym> file below.</p>
<p>The <acronym title="Photoshop Layered Image">PSD</acronym> will be sliced like this, the corners, and then a section of each of the 4 bars, the heights must be identical of the bars, for ex the top-left corner, the top-bar, the top-right corner all of them must be of equal height, and ex: the top-left corner, the left bar, bottom-left corner, for these the width must be identical.</p>
<h3>The CSS: </h3>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #6666ff;">.roundedBorder</span> <span style="color: #00AA00;">&#123;</span> &nbsp;<span style="color: #808080; font-style: italic;">/* heights width are set here like */</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</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: #808080; font-style: italic;">/* or */</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">500px</span><span style="color: #00AA00;">;</span><br />
&nbsp;<span style="color: #808080; font-style: italic;">/* &nbsp;or something you want, and if the lines are simple and have a simple background, the background-color of the INNER BOX must be set HERE, like */</span> <br />
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp;<span style="color: #cc00cc;">#f2f2f2</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p>To tell others who may work on the code after you, you can put a small comment at the top like this</p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/* border logic<br />
t<br />
t b<br />
t b l<br />
t b l r<br />
t b l r blc<br />
t b l r blc brc<br />
t b l r blc brc tlc<br />
t b l r blc brc tlc trc<br />
*</span></div></div>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> <span style="color: #00AA00;">&#123;</span> &nbsp;<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/topBar.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/bottomBar.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><span style="color: #00AA00;">&gt;</span><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/leftBar.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-y</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div div div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/rightBar.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-y</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div div div div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/bottomLeftCorner.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> &nbsp;<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div div div div div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/bottomRightCorner.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div div div div div div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/topLeftCorner.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div div div div div div div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;./images/topRightCorner.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</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><br />
<span style="color: #6666ff;">.roundedBorder</span> .<span style="color: #000000; font-weight: bold;">border</span> div div div div div div div div <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-image</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: #808080; font-style: italic;">/* THIS IS VERY IMPORTANT, MAKES SURE NO IMAGES WILL SHOW TO INNER DIVS */</span></div></div>
<p>
This technique can be used both on large scale and on small scale, however it&#8217;s best not to exaggerate a lot as the number of divs gets exponentially larger.</p>
<p>The 2nd way to make rounded corners is by using the jQuery framework and the<a href="http://www.malsup.com/jquery/corner/"> jQuery Corner Plug-in. </a>The explanations on it&#8217;s website will be sufficient enough to get you started, but if you require more info post a comment and I&#8217;ll see what i can do.</p>
<p>Best Regards</p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/02/variable-widthheight-box-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

