<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Alexandru Dinulescu's Thoughts</title>
	
	<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>Fri, 21 May 2010 14:41:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<feedburner:info uri="alexdsthoughts" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://alexdweb.com/blog/feed/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://alexdweb.com/blog/feed/" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Falexdweb.com%2Fblog%2Ffeed%2F" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item>
		<title>On Twitter</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/TijPYsS0iHE/</link>
		<comments>http://alexdweb.com/blog/2010/05/21/on-twitter/#comments</comments>
		<pubDate>Fri, 21 May 2010 14:41:11 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personal Things]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=341</guid>
		<description><![CDATA[I am on twitter at alexdweb]]></description>
			<content:encoded><![CDATA[<p> I am on twitter at <a href="http://twitter.com/alexdweb">alexdweb</a></p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/TijPYsS0iHE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/05/21/on-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/05/21/on-twitter/</feedburner:origLink></item>
		<item>
		<title>Browsers emulate Photoshop “Multiply” Layout?</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/FQT1OMDbnGQ/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/FQT1OMDbnGQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/03/06/browsers-emulate-photoshop-multiply-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/03/06/browsers-emulate-photoshop-multiply-layout/</feedburner:origLink></item>
		<item>
		<title>Unequal Repeating Background – Easy CSS FIX Solution</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/fNqkRKSrPYA/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/fNqkRKSrPYA" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://alexdweb.com/blog/2010/03/01/unequal-repeating-background-easy-css-fix-solution/</feedburner:origLink></item>
		<item>
		<title>Facebook business page launched</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/W17RTBsx6VA/</link>
		<comments>http://alexdweb.com/blog/2010/02/17/facebook-business-page-launched/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 15:08:53 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[lifelinedesign]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=318</guid>
		<description><![CDATA[Hello After mucking around facebook for a while i finally decided to take the plunge and create a facebook page. The menus there look a bit complicated and less user friendly that i imagined however after messing around for a bit i think i got the gist of it. The facebook page can be found [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> After mucking around facebook for a while i finally decided to take the plunge and create a facebook page. The menus there look a bit complicated and less user friendly that i imagined however after messing around for a bit i think i got the gist of it. </p>
<p> The facebook page can be found @ <a href="http://www.facebook.com/pages/AlexD/353655709255">here</a> really basic but hopefully it will show up in the results there. </p>
<p> In other news I may begin to write on <a href="http://lifelinedesign.ca/blog/">here</a> small and simple <acronym title="Cascading Style Sheet">CSS</acronym> tutorials and about the importance of good and easily managed <acronym title="Cascading Style Sheet">CSS</acronym> and <acronym title="eXtended HyperText Markup Language">XHTML</acronym> code when building a website that is more then a broshure but an entire application. </p>
<p> Best Regards, AlexD </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/W17RTBsx6VA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/02/17/facebook-business-page-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/02/17/facebook-business-page-launched/</feedburner:origLink></item>
		<item>
		<title>Personal Portfolio Website now live</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/MwZnjbs0qGw/</link>
		<comments>http://alexdweb.com/blog/2010/02/15/personal-portfolio-website-now-live/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 02:45:02 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personal Things]]></category>
		<category><![CDATA[Website Redesign]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=313</guid>
		<description><![CDATA[Hello Today I just finished working on my personal portfolio website found at http://alexdweb.com which replaced the old one there who was over 1 and half years old. Lots of things changed in that time, lots of new things learned, lots of new and better ways to write code so it was due for a [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> Today I just finished working on my personal portfolio website found at <a href="http://alexdweb.com">http://alexdweb.com</a> which replaced the old one there who was over 1 and half years old. Lots of things changed in that time, lots of new things learned, lots of new and better ways to write code so it was due for a change. </p>
<p> I am really excited about this website since it utilizes many <acronym title="Cascading Style Sheet">CSS</acronym> 3.0 properties and is built in a very very interesting way. I never believed you could do something like this with <acronym title="Cascading Style Sheet">CSS</acronym>, even <acronym title="Cascading Style Sheet">CSS</acronym> 2.1. Standard 3 layout based on this very own WordPress Theme with some twists. Lots of behavioral javascript and I learned a little PHP also. If you are looking for this wordpress theme, you can look @ <a href="http://alexdweb.com/blog/2010/01/09/inanis-mod-version-2-0/">this post</a>. </p>
<p> All in all, as i said i am highly excited about the look @ feel of the new website and compared to the old one, I have to say it&#8217;s ten times better, but you should decided for yourself. Drop a visit @ <a href="http://alexdweb.com">http://alexdweb.com</a> and let me know what you think by dropping a comment here. </p>
<p> I did test the website extensively however if you break anything let me know by an email or comment. Also as are most of my sites these days, I have phased out support for <acronym title="Internet Explorer">IE</acronym>6 because the browser is older than my sister so I cant spend 20hours debugging for <acronym title="Internet Explorer">IE</acronym>6 <img src='http://alexdweb.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , so please use a modern browser such as Firefox 3.6 / Internet Explorer 7+ (recommended is 8), Google Chrome 5 and the like. </p>
<p> Back to more tutorials this coming week. </p>
<p> Regards </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/MwZnjbs0qGw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/02/15/personal-portfolio-website-now-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/02/15/personal-portfolio-website-now-live/</feedburner:origLink></item>
		<item>
		<title>Javascript Max Random Numbers</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/qrkJwkOO0Qs/</link>
		<comments>http://alexdweb.com/blog/2010/02/14/javascript-max-random-numbers/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:37:31 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript comparing numbers]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=307</guid>
		<description><![CDATA[Greetings This is another short and sweet posts, basically it involves using the Math. function to do some nifty tricks Lets say that you want to get a random number between 1 and 10 and you dont know how. Well the answer is quite easy and it involves combining 2 Math. functions. Math.floor&#40;&#41; and Math.random&#40;&#41;. [...]]]></description>
			<content:encoded><![CDATA[<p> Greetings </p>
<p> This is another short and sweet posts, basically it involves using the <code class="codecolorer javascript default"><span class="javascript">Math.</span></code> function to do some nifty tricks </p>
<p> Lets say that you want to get a random number between 1 and 10 and you dont know how. Well the answer is quite easy and it involves combining 2 <code class="codecolorer javascript default"><span class="javascript">Math.</span></code> functions. <code class="codecolorer javascript default"><span class="javascript">Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> and <code class="codecolorer javascript default"><span class="javascript">Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.</span></code> </p>
<h3> Math.random()</h3>
<p> This function takes a random number between 0 and 1 </p>
<h3> Math.floor()</h3>
<p> This function rounds a number down to it&#8217;s smaller number, for example. 4.4 would become 4, 4.6 would become 4 as well, -4.1 would become -5 as well as -4.6 would become -5 as well. </p>
<p><span id="more-307"></span></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">&nbsp;<span style="color: #006600; font-style: italic;">// random number between 0 and 1 //</span><br />
&nbsp;$<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; <span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;body&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;div class='alpha'&gt; &lt;/div&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.alpha&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// random number between 0 and 10 //</span><br />
<span style="color: #006600; font-style: italic;">// the * 11 part is the max number you can roll, you put 11 because 0.9 x 11 is less than 11 so it will be </span><br />
<span style="color: #006600; font-style: italic;">// rounded down to 10,</span><br />
&nbsp;$<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; <span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">11</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;body&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;div class='alpha'&gt; &lt;/div&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.alpha&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #006600; font-style: italic;">// however you can get also a 0 number because 0.0(something) will be rounded to 0</span><br />
<span style="color: #006600; font-style: italic;">// in order to prevent that we add a +1 like this. this means that you will have numbers between 1 and 11 </span><br />
<span style="color: #006600; font-style: italic;">// so we have to make it * 10 instead of * 11</span><br />
&nbsp;$<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; <span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span> &nbsp;<span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;body&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;div class='alpha'&gt; &lt;/div&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.alpha&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/qrkJwkOO0Qs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/02/14/javascript-max-random-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/02/14/javascript-max-random-numbers/</feedburner:origLink></item>
		<item>
		<title>MenuMatic BUG</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/XAQ0KPjkoTM/</link>
		<comments>http://alexdweb.com/blog/2010/02/04/menumatic-bug/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 20:35:03 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[IE Bugs]]></category>
		<category><![CDATA[menuMatic]]></category>
		<category><![CDATA[mooTOOLs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=295</guid>
		<description><![CDATA[Hello This issue only happens with menuMatic and with vertical set menus. Basically in all IE browsers the sub-nav-menu didnt show up correctly. And another thing, when you have link tags inside li tags, you need to float the li tags in IE else you get a hidden spacer there (vertical lists only). and the [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This issue only happens with menuMatic and with vertical set menus. Basically in all IE browsers the sub-nav-menu didnt show up correctly. </p>
<p> And another thing, when you have link tags inside li tags, you need to float the li tags in IE else you get a hidden spacer there (vertical lists only). and the menu looks very odd. This is old IE6 issue, seems like both IE7 and only IE8 fixed it. Fuck that shit. </p>
<p><span id="more-295"></span></p>
<p> When in doubt, float it then clear it. This triggers hasLayout behavior and stuff gets fixed by itself. With that issue done i had another issue when the menu looked out of place. In order to fix that you need to open the menuMatic source file and look for fixHasLayoutBug: false, and change it to true. </p>
<p> On the developers site it works with it set to false, i really have absolutely no ideea why it gets triggered in my projects (2 out of 2 projects) and not there and to be honest i really cant be arsed to look into it. The CSS on both sites regarding to the menu matic is quite identical. I would have switched to something based on jQuery but unfortunately there isnt anything like that currently on the market., or from what i could find. Going with the noConlict() thing really annoys the hell out of me </p>
<p> In sum if it looks borked in IE then a) float the links b) float the li tags and c) set fixhaslayoutbug: true, in the menuMatic.js file. And if you still have issues in IE8 because thats where I had the main issues, then you need to do the following. Look where your vertical navigation menu is placed and make a new CSS and load it only for IE8. in that css go to  #subMenusContainer and at the top: property modify it so it looks just right. If needed you can also play with the .smOW class at the margin property in the same CSS below are a few images with the before and after </p>
<p> In my example I set the #subMenusContainer top: property to 222px and the .smOW margin-left to about 20ish px </p>
<div id="attachment_298" class="wp-caption alignleft" style="width: 240px"><a href="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie8Before.jpg"><img src="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie8Before-230x299.jpg" alt="IE8 Before" title="ie8Before" width="230" height="299" class="size-medium wp-image-298" /></a><p class="wp-caption-text">IE8 Before</p></div>
<div id="attachment_296" class="wp-caption alignleft" style="width: 240px"><a href="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie7BeforeHasLayout.jpg"><img src="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie7BeforeHasLayout-230x300.jpg" alt="" title="ie7BeforeHasLayout" width="230" height="300" class="size-medium wp-image-296" /></a><p class="wp-caption-text">IE7 Before Has Layout</p></div>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/XAQ0KPjkoTM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/02/04/menumatic-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/02/04/menumatic-bug/</feedburner:origLink></item>
		<item>
		<title>jQuery/javascript negation</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/nq2Yprp6HYs/</link>
		<comments>http://alexdweb.com/blog/2010/01/25/jqueryjavascript-negation/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 16:42:23 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Nerd Rage]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=291</guid>
		<description><![CDATA[This is a very stupid post and mostly only for me. &#160;if&#40;!$&#40;stuff&#41;.length &#62; 5&#41;&#123; &#160; &#160;// If element ISNT LARGER THAN 5 so in our case the number of elements must be 0 1 2 3 4 and 5 &#160; $&#40;this&#41;.doSomething&#40;&#41;; &#125; else &#123; &#160;// The number of elements is GRATER THAN 5 // do [...]]]></description>
			<content:encoded><![CDATA[<p> This is a very stupid post and mostly only for me. </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">&nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span>stuff<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">// If element ISNT LARGER THAN 5 so in our case the number of elements must be 0 1 2 3 4 and 5 </span><br />
&nbsp; $<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;">doSomething</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">// The number of elements is GRATER THAN 5 // do another thing </span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p> Basically this is a negation of the following, god damnit my head hurts </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">&nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>stuff<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;$<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;">doSomething</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp;$<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;">doAnotherThing</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p> Oh well new day, new learned things. God Bless Amerika </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/nq2Yprp6HYs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/25/jqueryjavascript-negation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/01/25/jqueryjavascript-negation/</feedburner:origLink></item>
		<item>
		<title>jQuery 1.4 Annoying Bug</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/3dJewNETpTY/</link>
		<comments>http://alexdweb.com/blog/2010/01/25/jquery-1-4-annoying-bug/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 16:19:39 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[InanisMOD Theme]]></category>
		<category><![CDATA[jQuery 1.4]]></category>
		<category><![CDATA[jQuery Bugs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=288</guid>
		<description><![CDATA[Hello This post is going to be short and sweet. Basically jQuery 1.4 launched a couple of days ago and i thought i&#8217;d move my blog from 1.3.2 to 1.4 and lo and behold JS Error. I was going like WTF, and after trying to debug it for like 15mins i come to the following [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This post is going to be short and sweet. Basically jQuery 1.4 launched a couple of days ago and i thought i&#8217;d move my blog from 1.3.2 to 1.4 and lo and behold JS Error. </p>
<p> I was going like WTF, and after trying to debug it for like 15mins i come to the following conclusion. From my own personal experience, in jQuery 1.3.2 when you wanted something to happen to an element you went like this. Since i use WordPress for as my blogging platform not everytime the .elementClass element was present.  </p>
<p><span id="more-288"></span></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;<span style="color: #003366; font-weight: bold;">var</span> el <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.elementClass&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">doSomethingHere</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;i'm a jQuery nublet&quot;</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><span style="color: #339933;">;</span></div></div>
<p> The JQuery parsed the XHTML code and if it encountered the <code class="codecolorer html4strict default"><span class="html4strict">stuff.elementClass</span></code> item, then the script would run, else it will just return Null and be on it&#8217;s way to the next thing which in our case is an alert(). </p>
<p> Now in JQuery 1.4 something very odd happens, or well, at least it happened to me. Basically when i ran the same script but now with jQuery 1.4 it returned in the firebug js console <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">doSomethingHere</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">is</span> <span style="color: #003366; font-weight: bold;">null</span></span></code> and the entire chain blocked. Of course this is extremely bad because that condition was on line 5 of my blog. WHICH WAS NOT AWESOME. </p>
<p> Anyways in order to fix this sort of weird behavior pattern you first have to CHECK if the element exists on the current page, and then APPLY stuff to it. So our code transforms itself into 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;<span style="color: #003366; font-weight: bold;">var</span> el <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.elementClass&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span> <span style="color: #009966; font-style: italic;">/* this can also be written as $(el).length &gt;= 1 */</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; $<span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">doSomethingHere</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;script ran&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;i'm a jQuery nublet&quot;</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><span style="color: #339933;">;</span></div></div>
<p> And in case you have more than 1 of the same element you can chain it using the <code class="codecolorer javascript default"><span class="javascript">.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> function and the code transform itself into 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">&nbsp;$<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;<span style="color: #003366; font-weight: bold;">var</span> el <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.elementClass&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> thisEl <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: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span>thisEl<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</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; <span style="color: #003366; font-weight: bold;">var</span> thisEl <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: #339933;">;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span>thisEl<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">doSomethingHere</span><span style="color: #009900;">&#40;</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><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;i'm a Jquery nublet&quot;</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><span style="color: #339933;">;</span></div></div>
<p> Gotta love updating to a new version&#8230; jeez </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/3dJewNETpTY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/25/jquery-1-4-annoying-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/01/25/jquery-1-4-annoying-bug/</feedburner:origLink></item>
		<item>
		<title>Javascript Comparing Numbers</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/bazBNf_Nv9E/</link>
		<comments>http://alexdweb.com/blog/2010/01/15/javascript-comparing-numbers/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 22:23:53 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Javascript comparing numbers]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=283</guid>
		<description><![CDATA[Hello This post is a very straightforward one, basically it involves using javascript to calculate the lowest or highest number from either an array or from some definite variables. One of the very useful possibilities of this is calculating the height and width of more than 3 columns and equalizing everything to the highest. To [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This post is a very straightforward one, basically it involves using javascript to calculate the lowest or highest number from either an array or from some definite variables. </p>
<p> One of the very useful possibilities of this is calculating the height and width of more than 3 columns and equalizing everything to the highest. </p>
<p> To achieve this we can use the <code class="codecolorer javascript default"><span class="javascript">Math.<span style="color: #660066;">max</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> property and the <code class="codecolorer javascript default"><span class="javascript">Math.<span style="color: #660066;">min</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> property. </p>
<p><span id="more-283"></span></p>
<h3> The Math.max() Property </h3>
<p> This property compares all the numbers presented and extracts the highest one. It can either be used as a simple stand-alone property 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: #003366; font-weight: bold;">var</span> var1 <span style="color: #339933;">=</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> var2 <span style="color: #339933;">=</span> <span style="color: #CC0000;">30</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> var3 <span style="color: #339933;">=</span> <span style="color: #CC0000;">40</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> maximum <span style="color: #339933;">=</span> Math.<span style="color: #660066;">max</span><span style="color: #009900;">&#40;</span>var1<span style="color: #339933;">,</span> var2<span style="color: #339933;">,</span> var3<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #006600; font-style: italic;">// or like this</span><br />
<span style="color: #003366; font-weight: bold;">var</span> maximum <span style="color: #339933;">=</span> Math.<span style="color: #660066;">max</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">20</span><span style="color: #339933;">,</span><span style="color: #CC0000;">30</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p> Or we can set up an array and use it a number array to feed numbers to it. Such an example would look like this, however i mention that i couldnt get this example to work. I learned Javascript by learning jQuery, not the other way around. </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">Array.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">max</span> <span style="color: #339933;">=</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;">return</span> Math.<span style="color: #660066;">max</span>.<span style="color: #660066;">apply</span><span style="color: #009900;">&#40;</span>Math<span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #003366; font-weight: bold;">var</span> max <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #339933;">,</span><span style="color: #CC0000;">2</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">4</span><span style="color: #339933;">,</span><span style="color: #CC0000;">5</span><span style="color: #339933;">,</span><span style="color: #CC0000;">6</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">max</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// 6</span></div></div>
<h3> The Math.min() Property </h3>
<p> This property does exactly the opposite of what Math.max() does, as in extracting the lowest number from a set array. The code is almost identical but for keeps sake here it is </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: #003366; font-weight: bold;">var</span> var1 <span style="color: #339933;">=</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> var2 <span style="color: #339933;">=</span> <span style="color: #CC0000;">30</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> var3 <span style="color: #339933;">=</span> <span style="color: #CC0000;">40</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> minimum <span style="color: #339933;">=</span> Math.<span style="color: #660066;">min</span><span style="color: #009900;">&#40;</span>var1<span style="color: #339933;">,</span> var2<span style="color: #339933;">,</span> var3<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #006600; font-style: italic;">// or like this</span><br />
<span style="color: #003366; font-weight: bold;">var</span> minimum <span style="color: #339933;">=</span> Math.<span style="color: #660066;">min</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">20</span><span style="color: #339933;">,</span><span style="color: #CC0000;">30</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<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">Array.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">min</span> <span style="color: #339933;">=</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;">return</span> Math.<span style="color: #660066;">min</span>.<span style="color: #660066;">apply</span><span style="color: #009900;">&#40;</span>Math<span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #003366; font-weight: bold;">var</span> min <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #339933;">,</span><span style="color: #CC0000;">2</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">4</span><span style="color: #339933;">,</span><span style="color: #CC0000;">5</span><span style="color: #339933;">,</span><span style="color: #CC0000;">6</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">min</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// 1</span></div></div>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/bazBNf_Nv9E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/15/javascript-comparing-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/01/15/javascript-comparing-numbers/</feedburner:origLink></item>
		<item>
		<title>Inanis MOD version 2.0</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/tmVolSdJ-bI/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/tmVolSdJ-bI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/09/inanis-mod-version-2-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/01/09/inanis-mod-version-2-0/</feedburner:origLink></item>
		<item>
		<title>Conditional Comments for IE</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/BJJJDJua_sE/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/BJJJDJua_sE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/</feedburner:origLink></item>
		<item>
		<title>Preloading CSS Images with CSS 2.1 and CSS 3.0</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/nodnZ7mhVyk/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/nodnZ7mhVyk" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://alexdweb.com/blog/2010/01/07/preloading-css-images-with-css-2-1-and-css-3-0/</feedburner:origLink></item>
		<item>
		<title>Programming Mistakes</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/-9FGSjLiLXc/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/-9FGSjLiLXc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/05/programming-mistakes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2010/01/05/programming-mistakes/</feedburner:origLink></item>
		<item>
		<title>JQuery IE Document/Window Errors</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/WdezwHyBWZA/</link>
		<comments>http://alexdweb.com/blog/2009/12/28/jquery-ie-documentwindow-errors/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:28:19 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[IE Bugs]]></category>
		<category><![CDATA[Nerd Rage]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=166</guid>
		<description><![CDATA[Hello After working on the google shortcuts for a while, i decided to open up IE 8 and see if the application works or not. I was surprised and started to do the old alert&#40;&#34;hax&#34;&#41; thing every dozen lines. The problem is with the $&#40;window&#41;.keypress&#40;function&#40;e&#41;&#123;&#125;&#41;. It seems that IE doesnt understand at all the $&#40;window&#41; [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> After working on the google shortcuts for a while, i decided to open up <acronym title="Internet Explorer">IE</acronym> 8 and see if the application works or not. I was surprised and started to do the old <code class="codecolorer javascript default"><span class="javascript"><span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hax&quot;</span><span style="color: #009900;">&#41;</span></span></code> thing every dozen lines. The problem is with the <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></span></code>. It seems that <acronym title="Internet Explorer">IE</acronym> doesnt understand at all the <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span></span></code> property at all when it comes with keypress/keydown/keyup events. </p>
<p><span id="more-166"></span></p>
<p> After some research, this is a known issue from <acronym title="Internet Explorer">IE</acronym>5 days, which is quite weird that jQuery didnt fix it in a way so it works with <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span></span></code></p>
<p> However i did check the width/height properties and both values return different values. </p>
<h3> 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">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// instead of $(window).keypress(function(){});</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// use </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</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><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// this is the testing </span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> windowH <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> windowW <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> documentH <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> documentW <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>windowH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>documentH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>windowW<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>documentW<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p> I did look over this issue over Google but I couldnt find any information about it. Really sad you know. </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/WdezwHyBWZA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/12/28/jquery-ie-documentwindow-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/12/28/jquery-ie-documentwindow-errors/</feedburner:origLink></item>
		<item>
		<title>WordPress InanisMOD theme launch</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/2DL48oQAB8w/</link>
		<comments>http://alexdweb.com/blog/2009/12/27/wordpress-inanismod-theme-launch/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 21:53:43 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[InanisMOD Theme]]></category>
		<category><![CDATA[Wordpress Themes]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=161</guid>
		<description><![CDATA[Hello For the past 2 weeks or so i&#8217;ve been rewriting the Inanis Theme for wordpress, because i really liked the design and functionality offered but i hated the way it was coded. So i rewrote all the code. You can get the original Inanis Theme from here Check the readme.txt file inside for what [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> For the past 2 weeks or so i&#8217;ve been rewriting the Inanis Theme for wordpress, because i really liked the design and functionality offered but i hated the way it was coded. So i rewrote all the code. You can get the original Inanis Theme from <a href="http://Inanis.net">here</a> </p>
<p><span id="more-161"></span></p>
<p> Check the readme.txt file inside for what was changed. I used the theme for some time over this blog and i didnt ran into any issues with it, so i have decided to launch it for everyone </p>
<p> The <acronym title="ZIP Archive">ZIP</acronym> file can be downloaded from <a href="http://alexdweb.com/blog/wp-content/uploads/2009/12/inanisMod_v1.3.zip"> Here </a>. Also i modified the comments-template.php file, <a href="http://alexdweb.com/blog/wp-content/uploads/2009/12/comment-template.zip">here</a> is the file, you can copy it INSIDE the wp-includes folder on your blog. </p>
<p> Basically what you have currently on this blog, is what you get when you download both files. The only special annotation i should make is that this theme does not support Internet Explorer 6 or older. I really think that 9 year old browsers should be dead, so please plan accordingly. </p>
<p> If you encounter any issues please let me know. I plan on expanding this theme with new functionality from time to time and i will release new versions. Currently the version is v1.3 (the v1.0 to current versions were test versions and 1.3 is the last stable release version). </p>
<p> Best Regards </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/2DL48oQAB8w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/12/27/wordpress-inanismod-theme-launch/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/12/27/wordpress-inanismod-theme-launch/</feedburner:origLink></item>
		<item>
		<title>Redirecting WordPress Feeds to Feedburner’s</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/zWQ_3OPLUrA/</link>
		<comments>http://alexdweb.com/blog/2009/12/26/redirecting-wordpress-feeds-to-feedburners/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 20:19:49 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Feedburner]]></category>
		<category><![CDATA[Feeds]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RSS 2.0]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=158</guid>
		<description><![CDATA[Hello After scouring the web for like 1h in order to find this information, i did eventually find it, however it was in a couple of different posts on another blog. In order to keep stuff simple, let&#8217;s put everything together. Using the benefits of feedburner is a no-brainer, because you get a shitload of [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> After scouring the web for like 1h in order to find this information, i did eventually find it, however it was in a couple of different posts on another blog. In order to keep stuff simple, let&#8217;s put everything together. Using the benefits of feedburner is a no-brainer, because you get a shitload of useful statistics. The only problem is that you will need to maintain 2 lists of feeds, your own internal feed + the official feedburner&#8217;s. And now depends on how many users you have subscribed.</p>
<p><span id="more-158"></span></p>
<p> A few notes first tho. First if you use your blog as a directory on your domain rather than a full directory, like http://example.com/blog/ instead of http://example.com/ then you will probably have 2 htaccess files. 1) for the main website and 2) for the blog itself. When you edit the htaccess, you must edit the BLOG htaccess which is usually found in your /blog/ folder if you use the blog-directory-thingy (if you dont, then your main-top-domain-level htaccess will be your blog&#8217;s. </p>
<p> Secondly you need to PUT THE CODE <strong>BEFORE</strong> the WordPress&#8217;s own rewrite rules (in case you are using permalinks, and if you dont use permalinks YOU SHOULD! </p>
<p> First off is you go to http://feedburner.com and make an account. Put your original feed there and make sure it displays properly. </p>
<p> Then Apply the code found below in the specific htaccess file on your server </p>
<h3> .mod_rewrite htacess thingy </h3>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;IfModule mod_rewrite.c&gt;<br />
&nbsp;RewriteEngine on<br />
&nbsp;RewriteCond %{HTTP_USER_AGENT} !FeedBurner &nbsp; &nbsp;[NC]<br />
&nbsp;RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]<br />
&nbsp;RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/YourFeedburnerFeedGoesHere[R=302,NC,L]<br />
&lt;/IfModule&gt;</div></div>
<p> This is just a quick thing, mostly using the default settings, but you really should read the full explanations found at: </p>
<ul>
<li><a href="http://perishablepress.com/press/2008/01/28/laser-focused-feeds-and-smarter-feed-management/">PersishablePress.com &#8211; Laser Focused Feeds and Smarter Feed Management</a></li>
<li><a href="http://perishablepress.com/press/2008/01/23/serve-yourself-why-feedburner-needs-a-feed-fix/">PerishablePress.com &#8211; Why Feedburner needs a feed-fix </a></li>
<li><a href="http://perishablepress.com/press/2008/03/25/redirect-wordpress-feeds-to-feedburner-via-htaccess-redux/">PerishablePress.com &#8211; Redirect WordPress Feeds to Feedburner via Htaccess redux</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/zWQ_3OPLUrA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/12/26/redirecting-wordpress-feeds-to-feedburners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/12/26/redirecting-wordpress-feeds-to-feedburners/</feedburner:origLink></item>
		<item>
		<title>Windows 7 Taskbar</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/knL4G8mf8so/</link>
		<comments>http://alexdweb.com/blog/2009/12/03/windows-7-taskbar/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 02:06:15 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Nerd Rage]]></category>
		<category><![CDATA[Quick Launch]]></category>
		<category><![CDATA[start menu]]></category>
		<category><![CDATA[taskbar]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=115</guid>
		<description><![CDATA[Evening All MS messed up again, as always, Windows vista task bar is superior to windows 7 taskbar, both in look and feel (as well as polishing) and as functionality. My Crucial issue with Windows 7 taskbar, was that in previous versions you could put only your taskbar on a side of the screen, like [...]]]></description>
			<content:encoded><![CDATA[<p> Evening All </p>
<p> <acronym title="Microsoft">MS</acronym> messed up again, as always, Windows vista task bar is superior to windows 7 taskbar, both in look and feel (as well as polishing) and as functionality. </p>
<p><span id="more-115"></span></p>
<p> My Crucial issue with Windows 7 taskbar, was that in previous versions you could put only your taskbar on a side of the screen, like quick launch on the left side of the screen, and on the bottom the start menu / opened programs / right side icons ( the ones with the clock ). Well this is impossible to do with Windows 7, and i was so mad that i nearly uninstalled the software and switched to vista again HOWEVER, i found a program that can simulate this crucial missing feature called <a href="http://rocketdock.com/">rocketdock</a> which set with the windows vista black theme, left side alignment, 28px icons, no zoom when you touch an icon (mac dock sux), and always on top + autohide and some separators for good measurement (since the icons are too close together and you get something very similar. </p>
<div><a href="http://alexdweb.com/blog/2009/12/03/windows-7-taskbar/rocketdock/" rel="attachment wp-att-119"><img src="http://alexdweb.com/blog/wp-content/uploads/2009/12/rocketdock.jpg" alt="rocketdock" title="rocketdock" width="83" height="694" class="aligncenter size-full wp-image-119" /></a></div>
<p> SHAME ON YOU MICROSOFT! </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/knL4G8mf8so" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/12/03/windows-7-taskbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/12/03/windows-7-taskbar/</feedburner:origLink></item>
		<item>
		<title>How To Do Quick Shortcuts ala Google Mail Part 2</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/2C5f8MhvVno/</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[XHTML/CSS]]></category>
		<category><![CDATA[jQuery]]></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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/2C5f8MhvVno" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://alexdweb.com/blog/2009/11/28/how-to-do-quick-shortcuts-ala-google-mail-part-2/</feedburner:origLink></item>
		<item>
		<title>jQuery IE and ClearType Problem</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/_Df0b-MhfRo/</link>
		<comments>http://alexdweb.com/blog/2009/11/25/jquery-ie-and-cleartype-problem/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 12:45:22 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[cleartype]]></category>
		<category><![CDATA[IE Bugs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=107</guid>
		<description><![CDATA[Hello Did it happen that when you use an animation such as fadeIn&#40;&#41;/fadeOut&#40;&#41; on a LCD screen, that has windows cleratype on (this happens automatically in windows vista+ but can be set on and off in windows XP), on IE (all versions), the text is not antialised anymore. This is due to the filter attribute [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> Did it happen that when you use an animation such as <code class="codecolorer javascript default"><span class="javascript">fadeIn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>fadeOut<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> on a LCD screen, that has windows cleratype on (this happens automatically in windows vista+ but can be set on and off in windows XP), on <acronym title="Internet Explorer">IE</acronym> (all versions), the text is not antialised anymore. This is due to the filter attribute <acronym title="Internet Explorer">IE</acronym> browsers use to make the cleartype/stuff. </p>
<p> The solution is relatively simple, like putting a function callback on the <code class="codecolorer javascript default"><span class="javascript">fade <span style="color: #000066; font-weight: bold;">in</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>fadeOut<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> such as: </p>
<h3> JQuery Code </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;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.element&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</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; $<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;">removeAttr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;filtered&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&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><span style="color: #339933;">;</span></div></div>
<p> It&#8217;s not a perfect solution, and it may be a bit laggy and you can still SEE THE TEXT BEING CLEARTYPED, but at least it wont stay without cleartype and look like shit. Also this is the only way to do it until jQuery incorporates it&#8217;s own fix to counter <acronym title="Internet Explorer">IE</acronym>&#8216;s behavior.</p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/_Df0b-MhfRo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/11/25/jquery-ie-and-cleartype-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/11/25/jquery-ie-and-cleartype-problem/</feedburner:origLink></item>
		<item>
		<title>How To Do Quick Shortcuts ala Google Mail Part 1</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/ZBeU8oPlmcc/</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[XHTML/CSS]]></category>
		<category><![CDATA[jQuery]]></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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/ZBeU8oPlmcc" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://alexdweb.com/blog/2009/11/24/how-to-do-quick-shortcuts-ala-google-mail-part-1/</feedburner:origLink></item>
		<item>
		<title>Google Chrome keypress bug</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/SmipNjSVsig/</link>
		<comments>http://alexdweb.com/blog/2009/11/22/google-chrome-keypress-bug/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 17:38:22 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Chrome Bug]]></category>
		<category><![CDATA[clean solution]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=92</guid>
		<description><![CDATA[Hello Did you knew that Google Chrome does not understand keypress&#40;&#41; on special keys like arrow keys/esc/enter/etc ? Me neither I was trying to get the following code to work and it didnt work in Google Chrome at all &#160; &#160; $&#40;window&#41;.keypress&#40;function&#40;e&#41;&#123; &#160; &#160; &#160; &#160; var code = &#40;e.keyCode ? e.keyCode : e.which&#41;; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> Did you knew that Google Chrome does not understand <code class="codecolorer javascript default"><span class="javascript">keypress<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> on special keys like arrow keys/esc/enter/etc ? </p>
<p> Me neither </p>
<p> I was trying to get the following code to work and it didnt work in Google Chrome at all </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">&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> code <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">?</span> e.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">:</span> e.<span style="color: #660066;">which</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>code <span style="color: #339933;">==</span> <span style="color: #CC0000;">32</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">65</span> <span style="color: #339933;">&lt;=</span> code <span style="color: #339933;">&amp;&amp;</span> code <span style="color: #339933;">&lt;=</span> <span style="color: #CC0000;">65</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">25</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">97</span> <span style="color: #339933;">&lt;=</span> code <span style="color: #339933;">&amp;&amp;</span> code <span style="color: #339933;">&lt;=</span> <span style="color: #CC0000;">97</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">25</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;haxxor&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> alphaCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>el.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">?</span> el.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">:</span> el.<span style="color: #660066;">which</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>alphaCode <span style="color: #339933;">==</span> <span style="color: #CC0000;">37</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;left key&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>alphaCode <span style="color: #339933;">==</span> <span style="color: #CC0000;">39</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;right key&quot;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> alphaCode <span style="color: #339933;">==</span> <span style="color: #CC0000;">13</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;enter key&quot;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> alphaCode <span style="color: #339933;">==</span> <span style="color: #CC0000;">27</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;escape key&quot;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p><span id="more-92"></span></p>
<p> The first function works, the second works in Firefox but not in Chrome. After much headbanging around the room i tried to replace <code class="codecolorer javascript default"><span class="javascript">keypress<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> with <code class="codecolorer javascript default"><span class="javascript">keydown<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> and surprise suprise, now it works. I really dont know what to say about this bug, works with any normal key but not with special keys. Do take notice of this bug so you dont waste 30+mins trying to figure out why this happens </p>
<p> Cheers </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/SmipNjSVsig" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/11/22/google-chrome-keypress-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/11/22/google-chrome-keypress-bug/</feedburner:origLink></item>
		<item>
		<title>Javascript event.which / .keyCode / .charCode</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/gDNV6h9HdF0/</link>
		<comments>http://alexdweb.com/blog/2009/11/19/javascript-event-which-keycode-charcode/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:52:03 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=89</guid>
		<description><![CDATA[Hello This is a post about the 3 properties in javascript, keypress, keyup and keydown. There are some small differences in the means to extract the data of the pressed key. First off to explain the 3 properties: keypress &#8211; this is both a keyup and keydown, it triggers when the key is pressed keyup [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This is a post about the 3 properties in javascript, keypress, keyup and keydown. There are some small differences in the means to extract the data of the pressed key. </p>
<p> First off to explain the 3 properties: </p>
<ul>
<li>keypress &#8211; this is both a keyup and keydown, it triggers when the key is pressed </li>
<li>keyup &#8211; this triggers when you lift your finger from a key </li>
<li>keydown -> this triggers when you drop your finger on a key </li>
</ul>
<p><span id="more-89"></span></p>
<p> And now the mind-bongling differences start to creep up. We have 2 properties that take the info stored <em>charCode</em> and <em>keyCode</em> </p>
<p> First off in a <strong>keypress</strong> event the key is stored in <strong> EITHER </strong> <em>keyCode</em> or <em>charCode</em>, but never both, . If the key pressed generates a character (e.g. &#8216;a&#8217;), <em>charCode</em> is set to the code of that character, respecting the letter case. (i.e. <em>charCode</em> takes into account whether the shift key is held down). Otherwise, the code of the pressed key is stored in <em>keyCode</em>. So basically means that if the key is a character is stored in the <em>charCode</em> property, else it&#8217;s stored in the <em>keyCode</em> property </p>
<p> To complicate the problems even further, <em>charCode</em> is never registered in keypress and keyup events, so <em>keyCode</em> is used there</p>
<p> So the solution is a system that checks for both options, <strong>.which</strong> property checks both <em>keyCode</em> and <em>charCode</em> but this doesnt always work with special keys (F1-F12/ESC/etc) so the solution used in a <strong>keypress</strong> event is</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">&nbsp;<span style="color: #003366; font-weight: bold;">var</span> code <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">?</span> e.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">:</span> e.<span style="color: #660066;">which</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>code <span style="color: #339933;">==</span> <span style="color: #CC0000;">13</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//Enter keycode</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">//Do something</span><br />
&nbsp;<span style="color: #009900;">&#125;</span></div></div>
<p> The above first checks for <em>e.keyCode</em>, if that is not used, then check for <strong>e.which</strong> which checks both <em>keyCode</em> and <em>charCode</em> properties. I dont know how it actually works, however through experimentation i have saw that <strong>.which</strong> doesnt always work, so i was forced to use the <em>.keyCode</em> property </p>
<p> Hopefully this can shed some light on this situation </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/gDNV6h9HdF0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/11/19/javascript-event-which-keycode-charcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/11/19/javascript-event-which-keycode-charcode/</feedburner:origLink></item>
		<item>
		<title>Links within links that actually work</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/03oEgyZlnq4/</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[XHTML/CSS]]></category>
		<category><![CDATA[jQuery]]></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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/03oEgyZlnq4" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://alexdweb.com/blog/2009/11/14/links-within-links-that-actually-work/</feedburner:origLink></item>
		<item>
		<title>CSS removing the outline on links</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/Ic_Qz42GsYI/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/Ic_Qz42GsYI" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://alexdweb.com/blog/2009/08/16/css-removing-the-outline-on-links/</feedburner:origLink></item>
		<item>
		<title>How To: Put absolute positioned pop-ups at the bottom of the page in the html</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/UgIunHDwncQ/</link>
		<comments>http://alexdweb.com/blog/2009/08/16/how-to-put-absolute-positioned-pop-ups-at-the-bottom-of-the-page-in-the-html/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 15:11:46 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[clean solution]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=56</guid>
		<description><![CDATA[Hello Sometimes you may have a webpage and some pop-ups on it, they have position: fixed; and styled with JS to appear in the center of the page. (I am not talking about IE6 here, this doesnt work in IE6 at all). for some ex &#60;div class=&#34;popup&#34;&#62; &#60;/div&#62; &#60;div&#62; &#60;p&#62; Lots of Content Goes here [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> Sometimes you may have a webpage and some pop-ups on it, they have <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> and styled with <acronym title="Javascript">JS</acronym> to appear in the center of the page. (I am not talking about <acronym title="Internet Explorer">IE</acronym>6 here, this doesnt work in <acronym title="Internet Explorer">IE</acronym>6 at all). for some ex </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;popup&quot;</span>&gt;</span><br />
<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><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>&gt;</span><br />
<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> Lots of Content Goes here Lots of Content Goes here Lots of Content Goes 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 />
<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;&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> Trigger <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/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-56"></span></p>
<p> Now this is just a template, you can do the javascript yourself since it&#8217;s not the purpose of the tutorial. </p>
<p> When you click on trigger the popup will show at the top of the page, while the functionality is good, this is kinda bad for <acronym title="Search Engine Optimization">SEO</acronym> so our main concern is to make it at the bottom of the content. However if you put it there, it will appear after the content. </p>
<p> This is very annyoing so in order to fix this, put in the <acronym title="Cascading Style Sheets">CSS</acronym> after <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 style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span></span></code> </p>
<p> Problem solved, took me 30minutes to solve this. Cheers </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/UgIunHDwncQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/08/16/how-to-put-absolute-positioned-pop-ups-at-the-bottom-of-the-page-in-the-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/08/16/how-to-put-absolute-positioned-pop-ups-at-the-bottom-of-the-page-in-the-html/</feedburner:origLink></item>
		<item>
		<title>IE6 UL OL Vertical Bug</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/7qNgRQVQS4M/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/7qNgRQVQS4M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/</feedburner:origLink></item>
		<item>
		<title>Display None Versus Visibility hidden</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/2c0V3-p0myA/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/2c0V3-p0myA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/06/04/display-none-versus-visibility-hidden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/06/04/display-none-versus-visibility-hidden/</feedburner:origLink></item>
		<item>
		<title>Webkit Absolute Positioned Floated Element Bug</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/VrOHGrlrKRM/</link>
		<comments>http://alexdweb.com/blog/2009/05/27/webkit-absolute-positioned-floated-element-bug/#comments</comments>
		<pubDate>Wed, 27 May 2009 08:26:16 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[Chrome Bug]]></category>
		<category><![CDATA[Safari Bug]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=29</guid>
		<description><![CDATA[Hello While i was building a webpage for a client, i came across a very peculiar issue. It seems that webkit (safari/google chrome) have troubles understanding an absolutely positioned floated element This is the HTML for the file in question. &#60;ul&#62; &#160; &#160; &#160;&#60;li class=&#34;selected&#34;&#62;&#60;a href=&#34;#&#34;&#62;&#60;span&#62;Ficha Tecnica&#60;/span&#62;&#60;/a&#62;&#60;/li&#62; &#160; &#160; &#160;&#60;li&#62;&#60;a href=&#34;#&#34;&#62;&#60;span&#62;Ubiccaon Y Aroso&#60;/span&#62;&#60;/a&#62;&#60;/li&#62; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> While i was building a webpage for a client, i came across a very peculiar issue. It seems that webkit (safari/google chrome) have troubles understanding an absolutely positioned floated element </p>
<h3>This is the <acronym title="HyperText Markup Language">HTML</acronym> for the file in question.</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>&gt;</span> <br />
&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> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;selected&quot;</span>&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/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Ficha Tecnica<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;&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; &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>&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Ubiccaon Y Aroso<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;&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; &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>&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Galeria De l'image<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;&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; &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>&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Pricipaples operandos<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;&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; &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> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;last&quot;</span>&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/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Mas Information<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;&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><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;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;<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;stuff&quot;</span>&gt;</span><br />
Relative Positioned Stuff Goes here<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-29"></span></p>
<h3>The CSS looked like this</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: #000000; font-weight: bold;">content</span> <span style="color: #6666ff;">.container</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">600px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
&nbsp;ul <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: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</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 />
&nbsp;ul li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
ul li<span style="color: #6666ff;">.last</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;./../img/containerB.png&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> &nbsp;<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;">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 />
&nbsp;ul li a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#616266</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">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;./../img/containerB.png&quot;</span><span style="color: #00AA00;">&#41;</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;">background-position</span><span style="color: #00AA00;">:</span> <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: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
ul li a span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span> <span style="color: #933;">5px</span> <span style="color: #933;">7px</span> <span style="color: #933;">5px</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;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span><br />
&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;./../img/containerInnerB.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> <br />
<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: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
ul li<span style="color: #6666ff;">.selected</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
ul li<span style="color: #6666ff;">.selected</span> a 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;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#15575d</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
ul li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> .<span style="color: #000000; font-weight: bold;">content</span> <span style="color: #6666ff;">.container</span> ul li a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
.<span style="color: #000000; font-weight: bold;">clear</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</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></div></div>
<p>This happens in Safari/Google Chrome</p>
<div>
<a href="http://alexdweb.com/blog/2009/05/27/webkit-absolute-positioned-floated-element-bug/imagen-12/" rel="attachment wp-att-36"><img src="http://alexdweb.com/blog/wp-content/uploads/2009/11/imagen-12.png" alt="imagen-12" title="imagen-12" width="790" height="375" class="aligncenter size-full wp-image-36" /></a>
</div>
<p> The image shows HOW Safari/Google Chrome behaves, IE6/IE7/FF3/Opera9.5+ work ok, but everything based on webkit breaks </p>
<p> After fiddling around with the CSS lines i think i found out what happens </p>
<p> Given that the <code class="codecolorer html4strict default"><span class="html4strict">ul</span></code> element is absolute positioned, it is OUTSIDE the normal pageflow, however it breaks everything after it, because <code class="codecolorer html4strict default"><span class="html4strict">li</span></code> elements are floated. so an empty clear <code class="codecolorer html4strict default"><span class="html4strict">div</span></code> should be put there. In normal circumstances like these </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;floatLeft&quot;</span>&gt;</span><br />
<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><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;floatRight&quot;</span>&gt;</span><br />
<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><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;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></div></div>
<p> everything after the 2 floated elements will resume it&#8217;s normal position, however in this case, since the <code class="codecolorer html4strict default"><span class="html4strict">LI</span></code> elements are somehow outside the page-flow but they are floated, they break the pageflow. Now the surprising thing is that the div.clear is not doing it&#8217;s job to put the page in order in webkit. I dont know why since it&#8217;s a block type element and in all other cases it works, here however you need to have him not only as a block element but also it needs to have a height of 1px or more. </p>
<p> After putting the height 1px to the clear div, it started to behave properly in Safari / Chrome. Very weird bug, even more weirder than those on <acronym title="Internet Explorer">IE</acronym>6/<acronym title="Internet Explorer">IE</acronym>7</p>
<p> Questions in comments </p>
<p> Cheers AlexD </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/VrOHGrlrKRM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/05/27/webkit-absolute-positioned-floated-element-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/05/27/webkit-absolute-positioned-floated-element-bug/</feedburner:origLink></item>
		<item>
		<title>WordPress DB possible issue -&gt; Blog Takeover</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/odYisDWSjuM/</link>
		<comments>http://alexdweb.com/blog/2009/05/08/wordpress-db-possible-issue-blog-takeover/#comments</comments>
		<pubDate>Fri, 08 May 2009 18:04:49 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Nerd Rage]]></category>
		<category><![CDATA[Wordpress takeover]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=25</guid>
		<description><![CDATA[Hello Sometimes if your wordpress DB is down, you should normally get an error saying that the DB is unavailable and then some messages will appear with the possible cause of this, like the DB name is not found, the settings in the wp-config folder are wrong, and the like. However there is a case [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> Sometimes if your wordpress <acronym title="DataBase">DB</acronym> is down, you should normally get an error saying that the <acronym title="DataBase">DB</acronym> is unavailable and then some messages will appear with the possible cause of this, like the <acronym title="DataBase">DB</acronym> name is not found, the settings in the wp-config folder are wrong, and the like. However there is a case that surprise surprise you get on the page with the INSTALLATION of wordpress and you&#8217;ve just lost your <acronym title="WordPress">WP</acronym> blog.</p>
<p> The file is found in wp-admin/install.php </p>
<p> As a good rule of thumb, it&#8217;s advisable to delete all readme.txt, nfo, info files from all plug-ins, there have been reports of some chinese bots crawling wordpress blogs for these, so save yourself some bandwidth and delete those </p>
<p> In order to make sure this doesnt happen at all, there are 3 methods </p>
<ul>
<li> Method 1: JUST <strong>NUKE</strong> the INSTALL.php file. After the blog has been installed you dont need this file anymore so just delete it </li>
<li> Method 2: htaccess file
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># PROTECT install.php<br />
</span><span style="color: #339933;">&lt;</span>Files install<span style="color: #339933;">.</span>php<span style="color: #339933;">&gt;</span><br />
&nbsp;Order Allow<span style="color: #339933;">,</span>Deny<br />
&nbsp;Deny from all<br />
&nbsp;Satisfy all<br />
<span style="color: #339933;">&lt;/</span>Files<span style="color: #339933;">&gt;</span></div></div>
</li>
<li> Method 3: Replace it entirely with something else that is written by you from the start </li>
</ul>
<p> Problem Fixed </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/odYisDWSjuM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/05/08/wordpress-db-possible-issue-blog-takeover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/05/08/wordpress-db-possible-issue-blog-takeover/</feedburner:origLink></item>
		<item>
		<title>How to create a breadcrum navigation xhtml/css</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/Hu53ZUeGw04/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/Hu53ZUeGw04" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://alexdweb.com/blog/2009/04/24/how-to-create-a-breadcrum-navigation-xhtmlcss/</feedburner:origLink></item>
		<item>
		<title>position:fixed for Internet Explorer 6</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/2u1BidEGylg/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/2u1BidEGylg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/23/positionfixed-for-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/04/23/positionfixed-for-internet-explorer-6/</feedburner:origLink></item>
		<item>
		<title>Sticky Footer “CSS ONLY” SOLUTION</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/7Yx85Yihvx8/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/7Yx85Yihvx8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/20/sticky-footer-css-only-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/04/20/sticky-footer-css-only-solution/</feedburner:origLink></item>
		<item>
		<title>jQuery stylesheet changer</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/ya8JiVUMtVg/</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[XHTML/CSS]]></category>
		<category><![CDATA[jQuery]]></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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/ya8JiVUMtVg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/13/jquery-stylesheet-changer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/04/13/jquery-stylesheet-changer/</feedburner:origLink></item>
		<item>
		<title>Nifty Vertical Height Javascript JQuery</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/YK80zdj4rac/</link>
		<comments>http://alexdweb.com/blog/2009/04/08/nifty-vertical-height-javascript-jquery/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 18:53:34 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[IE Bugs]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML/CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=14</guid>
		<description><![CDATA[Evening All. Everyone loved valign=&#8221;middle&#8221; on tables&#8230; well life just got better with jQuery. This plugin works flawlessly however make sure that both the element itself and the parent element do not have any top/bottom paddings, else please modify it using the .outerHeight&#40;&#41; property that takes into consideration the padding/border of those elements. Tweak and [...]]]></description>
			<content:encoded><![CDATA[<p> Evening All. </p>
<p> Everyone loved valign=&#8221;middle&#8221; on tables&#8230; well life just got better with jQuery. This plugin works flawlessly however make sure that both the element itself and the parent element do not have any top/bottom paddings, else please modify it using the <code class="codecolorer javascript default"><span class="javascript">.<span style="color: #660066;">outerHeight</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> property that takes into consideration the padding/border of those elements. Tweak and use as necessary. </p>
<p><span id="more-14"></span></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><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 />
<span style="color: #006600; font-style: italic;">// VERTICALLY ALIGN FUNCTION</span><br />
$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">vAlign</span> <span style="color: #339933;">=</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;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> ah <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;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> ph <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;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> mh <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ph <span style="color: #339933;">-</span> ah<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $<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;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'paddingTop'</span><span style="color: #339933;">,</span> mh<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: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>You can get the benefits of valign=middle no problem.</p>
<p>So just put the jQuery framework script then this script above and call the elements you want to be valigned=middle by using 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><span style="color: #3366CC;">&quot;#box&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">vAlign</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></div>
<p>Also another VERY NIFTY thing to do is, in order to prevent the user from seeing the javascript process (since first <acronym title="HyperText Markup Language">HTML</acronym> is loaded, then <acronym title="Cascading Style Sheets">CSS</acronym> file is loaded, then any images are loaded, then <acronym title="Javascript">JS</acronym> is processed) you can do this. </p>
<p> First you need an <code class="codecolorer css default"><span class="css">.outerBox</span></code> that encompasses the Box element, and then you need to have the box element with a declared height, like <code class="codecolorer css default"><span class="css"><span style="color: #cc00cc;">#box</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;">300px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></span></code>. This workaround is only good for <acronym title="Internet Explorer 6">IE</acronym> 6 since that sucks donkey balls, and has a <acronym title="Javascript">JS</acronym> rendering engine from 1000AD. however depending on the amount of content being displayed (like entire columns) <acronym title="Internet Explorer">IE</acronym>7 which appeared in 2000AD may require this fix also. Other browsers are OK so this is BS </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: #cc00cc;">#outerBox</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#box</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> xxxpx<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<h3> Javascript: </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: #003366; font-weight: bold;">function</span> alignThis<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#box&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">vAlign</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;outerBox&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;display&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;block&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p> End of story. </p>
<p>
And for the other more compatible browsers you can put this in another <acronym title="Javascript">JS</acronym> file. The previous one was inserted in the <acronym title="HyperText Markup Language">HTML</acronym> using conditional comments <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #808080; font-style: italic;">&lt;!--[if IE lte 7]&gt; &lt;script src=&quot;./../js/biteMe.js&quot; type=&quot;text/javascript&quot;/&gt;&lt;![endif]--&gt;</span></span></code> </p>
<p> <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#box&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">vAlign</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code> and just use Conditional comments to put the <acronym title="Internet Explorer">IE</acronym> specific things in so they wont see them, and since you are linking 2 different <acronym title="Javascript">JS</acronym> files, (again with conditional comments) you script WONT JAM.
</p>
<p> Complex solution for an ancient problem. </p>
<p> Cheers </p>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/YK80zdj4rac" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/08/nifty-vertical-height-javascript-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/04/08/nifty-vertical-height-javascript-jquery/</feedburner:origLink></item>
		<item>
		<title>Variable Width/Height Box with CSS</title>
		<link>http://feedproxy.google.com/~r/AlexDsThoughts/~3/M7eEgFAcTk8/</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>
<img src="http://feeds.feedburner.com/~r/AlexDsThoughts/~4/M7eEgFAcTk8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/02/variable-widthheight-box-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://alexdweb.com/blog/2009/04/02/variable-widthheight-box-with-css/</feedburner:origLink></item>
	</channel>
</rss>
