Latest Updates: html RSS

  • Standards mode and css link

    lowmagnet 21:03 on 2009/06/27 | 0 Permalink | Reply
    Tags: css, html

    Interesting trick with standards mode. Given you have a correct doctype entry (I’m using html5’s <!doctype html>) and your link to stylesheet is ambiguous (going bleeding edge here by calling my stylesheet ’s’, instead of ’s.css’ and you leave off the type=”text/css”, Firefox 3.0.x won’t render your sheet.

    Even though the default document type for a style link is “text/css”, it doesn’t work. The reason, I think, is in the server sending ’s’ as text instead of ‘text/css’. The cool thing is a file named s.css means the server will send the file as mime type text/css thanks to ‘magic’ and you can leave off the type in the link element.

     
  • tagged appliance, dryer, ...

    lowmagnet 22:08 on 2009/06/20 | 3 Permalink | Reply
    Tags: anti-semantic, html, sqsp, tag

    Seriously? span.tagged-with?


    tagged
    ,
    ,

    Better:



    ul.tags li {
    display:inline;
    list-style: none;
    }
    ul.tags li a {
    padding-left: 18px;
    background:transparent url(/universal/images/core-resources/icons/dark/category.png) no-repeat scroll left top;
    }


    $(document).ready(function() {
    $(".tags a").attr("title", "View all posts with this tag" );
    });

    title is only added when JS is supported by the user’s browser.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
esc
cancel