ElfUrl Sidebar Enhancement

October 18th, 2005 2005-10-18T17:02:23-0700

ElfUrl is a service that generates short urls for long and unwieldy urls. Anything with a whopping great query string (Amazon search results, for example) can be converted into a short code that’s easier to recite and won’t break in email.

ElfUrl is preferable to the ubiquitous TinyUrl.com simply because it has a cleaner homepage, it does some trickery with del.icio.us and it’s green.

The homepage mark-up is still bad though. table layout is present, which is a shame, because that prevents it being squashed into a limited horizontal space like, say, the Firefox sidebar (which you can invoke from the properties dialog of the ElfUrl bookmarklet, or any other bookmark).

To fix it, and enable a whole box of sidebar joy, here’s some Firefox 1.5 and Camino compatible user-css. It uses Gecko’s new url media selector to avoid breaking other pages.
/* ElfUrl.com */
@-moz-document url-prefix(http://elfurl.com/) {
    #headercontainer, #header
    {
      height: auto !important;
    }
    #logo
    {
      position: static !important;
    }

    #logo img
    {
     max-width: 99% !important;
    }

    #toplinks
    {
    text-align: left !important;;
    }

    #maincolcenter, #maincol, #container
    {
      margin-left: 0; margin-right: 0;
      padding-left: 0; padding-right: 0;
    }

    #maincolcenter > table,
    #maincolcenter > table tr,
    #maincolcenter > table td
    {
     display: block;
     text-align: left;
     margin: auto;
     padding: 0;
     width: 95%;
    }

    div
    {
     max-width: 99% !important;;
    }

    input[type=text] {
    width: 95% !important;;
    }

    input[type=submit] {
    margin: 0 !important;
    }

    /* ads will be beyond the vertical scroll anyway, so just  hide them rather than fixing the layout */
    #container > #maincolcenter > table + table *
    {
      display: none;
    }
}

Tagged

Posted in

3 Responses to “ElfUrl Sidebar Enhancement”

  1. Comment by Dave

    October 26th, 2005 at 10:22 pm 2005-10-26PDT22:22:12-0700

    Yes, elfurl uses tables.
    But the most short-url service pages are with tables.
    I know only one short url service which uses no tables.
    http://yatuc.com (my preferred tiny url creator :-) ) is tableless, but it also doesn’t fit into the sidebar.

  2. Comment by http://www.m-ven.com Alexander Muse

    October 29th, 2005 at 6:26 pm 2005-10-29PDT18:26:52-0700

    Our guys are redoing elfURL – I think they are going to build it in Rails. If you have any cool ideas, suggestions or desires for the program please email. I wil make sure they are included. Hurry… amuse@m-ven.com

  3. Comment by http://texasvc.weblogswork.com/?p=337 Texas Venture Capital Web 2.0 Blog » Blog Archive » Request for comments: elfURL.com

    October 30th, 2005 at 3:29 pm 2005-10-30PST15:29:00-0800

    [...] Use CSS for the site and dump the tables. [...]

Ben Michael Ward.

Ben is a 24 year old Web Developer from Cambridge and is a computing graduate of the University of Manchester.

Talk to me

Email

IM

AIM
iChat
Skype
Yahoo! Messenger
BenWardcouk
Google Talk
Jabber
MSN Messenger
talk@ben-ward.co.uk

Add me to your Address Book

  • Links