Archive for the ‘Web Development’ Category

Rails reference for PHP programmers

Wednesday, April 16th, 2008

Back when I first started with Rails, I noticed there were a lot of times I just needed to know the Ruby/Rails equivalent of some PHP function. It started me thinking that it would be great to have a resource similar to PHP.net where you could just append the function name to the end of a url, and get some relevant Ruby/Rails examples. Well, somebody beat me to it.

The folks over at Rails for PHP Developers have a pretty good start on content, especially for Array, String and Filesystem functions. The feature I was planning on, which I am not seeing their site, is a way for the community to contribute. Even if it were heavily moderated, I think it would be a boon for the site to flesh out its reference much more quickly.

Hide those ugly lines with new and improved overflow:hidden!

Friday, August 10th, 2007

Ok, so let’s say you’re doing image replacement on an unordered list. Since we’re all good boys and girls here, we include the actual text inside the link tag and spin it off the left of the screen with text-indent. Well if you’re a Firefox user (or test with it), then you may recall seeing the border generated around the navigation and going off the left of the screen (see below).

example.png

It’s one of those things that I never really thought much about. But last week a co-worker of mine showed me a really simple way of getting rid of those lines. Enter “overflow: hidden”.

For those of you using Firefox, I have two examples below. The first is without the overflow attribute, the second is with.

Without overflow:hidden

With overflow:hidden

Special thanks to Chaz for the tip.