• Bizzare Firefox 3 HR Tag Rendering

    I stumbled across this bizare new rendering bug in Firefox 3.

    CSS:

    hr {
    	background: url("bar.gif") no-repeat;
    	width: 385px; height: 15px;
    	border: 0;
    }

    HTML:

    <hr noshade="noshade" />

    Here’s what it looks like in Firefox 2.

    Now Firefox 3.

    It would appear that Firefox 3 is adding a border-radius value to all <hr/> tags. Removing the noshade=”noshade” property, or adding -moz-border-radius: 0 in the css will remove the rounded edges.

    Check it out.


  • How To Round Unixtime To Midnight

    This might be pretty obvious to anyone with basic math skills. It took me a few minutes to figure out, so I thought I’d share with the world. To round a unix timestamp to the previous midnight (UTC) use the following function:

    function unixtime_round_to_midnight ($t) {
    return $t – ($t%86400);
    }

    Thanks to Ian for pointing out my math ineptitude.


  • CushyCMS Adds Pro Version

    CushyCMS, the free content management system, is now launching a Pro version of its service. For $28 per month, CushyCMS will provide branding support, a custom logo, colors and domain settings for web publishers that use its tools.

    via mashable

    Kinda thought that’s what they where going to do. Still a dumb product, IMHO.