<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Keith's Web Blog RSS Feed</title>
<language>en-us</language>
<link>http://www.keithwatanabe.net/index.php</link>
<description>Keith Watanabe's Website</description>
<item>
<title>Javascript/CSS Display Issue</title>
<link>http://www.keithwatanabe.net/blogs/2008/3/6/49c4ff3f8272ab2df16fcd7af6e13195.html</link>
<description><![CDATA[I ran into a rather frustrating problem that I only solved the other day.  It was that I had embedded a stylesheet within the HTML using the <strong>style</strong> tags.  Inside, I used the ID selector to style a particular div element.  In particular, I used a kind of display: none; thing.<br />
<br />
Well, one of the things I needed was to be able to make that part visible again once a person unchecked that element.  Before I was doing something like $(ele).style.display = '';.  Turns out, that the precedence of Javascript is lower than the one in inline style.  So to rectify this, I had to instead do $(ele).style.display = 'block' (or inline).  Pretty annoying but a nice little fix to this problem.]]></description>
<pubDate>Thu, 06 Mar 2008 09:14:44 -0700</pubDate>
<guid>http://www.keithwatanabe.net/blogs/2008/3/6/49c4ff3f8272ab2df16fcd7af6e13195.html</guid>
</item>
<item>
<title>Internet Explorer Bug Fix For Margins, Floats and Disappearing Backgrounds</title>
<link>http://www.keithwatanabe.net/blogs/2008/3/8/4c8ad283df73bbd43b8be5c133f766a9.html</link>
<description><![CDATA[One of my fears about Yahoo losing the shareholder battle to M$ is that MSIE will become even more dominant, despite the fact that it's a crappy browser and hard to program (well at least for a linux dude like myself :p).  But the main thing I want to share is a few tips on some of the horrible excursions I dealt with in MSIE:<br />
<br />
Float and the Double Margin Bug<br />
<br />
Apparently, MSIE suffers from a nasty little bug where if you float an element and provide a margin, MSIE will double the size of the margin either left or right.  To counter it, you need to add:<br />
<br />
display: inline (or block)<br />
<br />
for your class that you're employing the float.  There's a lot of resources on the web for why this occurs as well as more details on this.<br />
<br />
Next, there's another annoying bug that I encountered and spent hours knocking my head against my table (okay, not literally).  It's where backgrounds disappear if you have numerous div tags and use the background-color attribute.  The quick fix is to trick MSIE into redrawing the section, so you add a height attribute of say 1%.  The code would look like this:<br />
<br />
height: 1%;<br />
<br />
Put that in the class that has the background-color attribute and these should disappear.]]></description>
<pubDate>Sat, 08 Mar 2008 11:20:02 -0700</pubDate>
<guid>http://www.keithwatanabe.net/blogs/2008/3/8/4c8ad283df73bbd43b8be5c133f766a9.html</guid>
</item>
<item>
<title>Messed Up, Frustrating MSIE Quirk With Lists</title>
<link>http://www.keithwatanabe.net/blogs/2008/3/10/e95b214e1705d7a573128227250be1d8.html</link>
<description><![CDATA[If you manage to login to my site (highly recommended!) and check out my list application, you'll see that I'm using html's <strong>ul</strong> and <strong>li</strong> tags to build my lists (well, gee!).  I found a weird <strong>MSIE bug</strong> where if you use <strong>CSS</strong> and designate the list as being <strong>inline</strong>, then you potentially might get some <strong>overflow</strong> problem (looks terrible especially if you use <strong>floats</strong>).  Firefox is pretty much smarter than MSIE, so you don't face this problem.  To fix this issue, you need to add a space before the closing <strong>li</strong> tag.  That's it!  Then <strong>MSIE</strong> will know how to wrap the list correctly.  I labored for a few days over this <strong>bug</strong>.  Fortunately, I stumbled upon the page linked at the bottom.  So credit due to this guy for saving my rear!]]></description>
<pubDate>Mon, 10 Mar 2008 11:03:21 -0600</pubDate>
<guid>http://www.keithwatanabe.net/blogs/2008/3/10/e95b214e1705d7a573128227250be1d8.html</guid>
</item>
</channel>
</rss>
