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.

  • Write a Comment

    Comment

    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…. 😆

    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. 😳
      I’ll see if I can find something…

    • Related Content by Tag