CSS Tip for debugging positioning

almost 5 years ago from Darren Parker, Lead PHP Developer

  • Max StoiberMax Stoiber, almost 5 years ago (edited almost 5 years ago )

    I made a GitHub repository out of this snippet for even easier usage. You can now either put it into a link tag on your website

    <link href="https://rawgithub.com/mxstbr/debug.css/master/debug.css" media="all" rel="stylesheet" type="text/css" />

    or add it as a bookmarklet to your browser:

    javascript:(function(){var e=document.createElement("link");e.setAttribute("href","https://rawgithub.com/mxstbr/debug.css/master/debug.css");e.setAttribute("rel","stylesheet");e.setAttribute("type","text/css");e.setAttribute("media","all");document.head.appendChild(e)})();

    Thanks for the great tip! :-)

    P.S. I couldn't find your twitter/linkedin/facebook/... profiles Darren, so I linked to this post in the credits. Do you want me to link to something else?

    2 points