Saturday, July 22, 2006

 

Floated Nested Divs

Wow, this has been a stinking pain! I was trying to do something like the following:

<div id="container">
<div id="float_right">
</div>
</div>

When the float_right div had content that made its height greater than the container div, Firefox would not auto-encase it, but it would overflow the container div. IE, auto-encases.

Well, after struggling with this problem for some time -- and realizing that I've run into this problem before, I ran into a good forum post.

The key for Firefox is to put an element after the floated div, but before the end of the container div that has the CSS clear:both tag. So, my solution was something like this:

<div id="container">
<div id="float_right">
</div>
<br style="clear:both;" />
</div>

And it worked like a charm. Happy day.

Sunday, July 16, 2006

 

CS is Fun


Yes, life won't always be as carefree as to allow my construction of such an informative, yet overly involved table of information. Go CMM... my new slogan C-oding M-oves M-e. Hehe.

Check it out, yo.

And if you don't know what CMM is, Wikipedia it.

Monday, July 10, 2006

 

Trouble with Technology


If you've been to jtsnake.com lately, you've seen that I'm pulling in the blog headlines through RSS feeds. As of now, the XML document is being parsed purely by PHP and being applied to an HTML template. But, I didn' write the PHP script, and it's a mess. I only wished to make minor modifications. So, naturallly I wanted more control and got an XSLT style sheet to transform the XML according to and wrote the PHP to do it. But, wouldn't you know it, my host, godaddy.com, doesn't support XSLT for their current deployment of PHP. So, I thought, well, to the next solution I go. And so I went. I got the client to determine which XSLT the XML file should use, but I could only get a version to work in IE, not Firefox. So then I finally wrote one in Java, uploaded that to the server (after a crazy time finding the write JAR file to compile my servlet), only to find out that my godaddy.com hosting account (the cheapest) doesn't have Java enabled. Argh! I need a good, free Java host. Good luck, Jake!

This page is powered by Blogger. Isn't yours?