February 8, 2009

Trying to Add Sidebar Stuff

I deleted the Wordpress sidebar, but I decided that I did want some stuff there.

A few days ago, I wrote my own mini links dropdown (click Links to see them).

Then I got the code for a weather box from weather.com.

Now I’m trying to scrape the dining menu from HUDS. This is harder than I expected. Damn HUDS, why can’t they set up an RSS feed? So Web 1.0.

editicon Post/View Comments

feedicon Subscribe - RSS Feed



October 6, 2008

Wordpress Transfer Complete

Filed under: CodingTags: , — darrenhe @ 2:51 AM

This is my first new post on my hosted wordpress blog. My website is now entirely hosted by dreamhost, including the blog, which was previously a free-hosted wordpress.com blog. The transfer process was pretty simple, and the theme integration was straightforward, since this is the second time I am doing it.

Overall, a success!

editicon Post/View Comments

feedicon Subscribe - RSS Feed



Using divs vs tables

Filed under: CodingTags: , — darrenhe @ 2:25 AM

I’ve been working on some websites lately, and I’ve been pleasantly surprised by how efficient <div /> is compared to <table />. In the example below, my home page condensed from over 80 lines of code to a mere 29. Of course, this was aided by better use of CSS, but I feel that it was easier to use CSS once I had divs in. There are some things that table do better though, and for me it is the vertical-text align. Trying to center align some text vertically involves creating multiple nested divs, alignment of the first inner div to 50% of the outer div, and then alignment of the second inner div to go up 50% of the text! Nonetheless, it’s a sacrifice worth making. See below for before and after screen shots.

Tables

Before: Tables, 80+ lines of code

Divs

After: divs, 29 lines of code

In theory, I suppose I could discount the meta tags to get an even lower line count.

editicon Post/View Comments

feedicon Subscribe - RSS Feed