Raam Dev » thoughts essays journal notes contact about subscribe rss

Prevent Long URLs From Running Wild

When Raf commented on one of my recent posts by pasting a URL into the comment box, the Recent Comments widget didn’t handle the long URL properly:

The fix was simpler than I’d imagined. By adding the following CSS style to the

  • tag that contained the recent comments,

    style="overflow:hidden!important;"

    I was able to prevent the URL from breaking out of the box:

    Of course this doesn’t fix the problem in Internet Explorer 6 (go figure), but I’m sure there’s a way of fixing it with some Javascript. If you happen to know how, please leave the solution in the comments.

    1. find a fix yet?
      Sorry for all the posts.. but, I HAVE to use IE6 at work, they won’t let me upgrade to anything else and I’m trying to knock RAFS post down…. :lol:

    2. LOL. No, I haven’t fixed it for IE yet. If you have some free time, maybe you can scour the web for a Javascript fix I can use. :)

    3. You saying I spend too much time browsing and not enough time working 8) ….. eh… you’re right. :oops:
      I’ll see if I can find something…

    Leave a Reply

    Subscribe without commenting.

    Other posts you may enjoy:

    Where in the world is Raam?

    Join the Facebook Community

    Raam Dev » thoughts essays journal notes contact about subscribe rss

    Powered by WordPress and other Open Source Software
    Uncopyright by Raam Dev