Clawg Blog

Modern CSS techniques

February 18th, 2010

I have updated this site with a few techniques that I have been reading about in the web dev community. Some of them are pretty obvious and others are simply code tweeks. I have took the attitude of using advanced CSS techniques that will only get seen in modern browsers, also known as “too hell with Internet Exporer”. Links to the tutorials I used have been included where appropriate.

Site tweeks include

This is very much a work in progress so I will be adding more things over the next few days and weeks. My blog is my playground and to answer the question “what does it look like in ie”, well I dont know cause I havent tested yet, but I bet its not as good as it looks in FF or Safari.

The links provided allow you to bookmark this page into your favourite social media website. For users with JavaScript disabled copy and paste the URL from the address bar into your chosen social bookmarking site.

4 Responses to “Modern CSS techniques”

  1. poomoo Says:

    Good work Charlie.

    Interesting comments with regard to TypeKit. I’ve not seen that happen elsewhere.

    It would be good to see a post on TypeKit set up and a walk through with the positives and negatives from your point of view.

  2. CharlieLaw Says:

    Hi poomoo,

    In a nut shell the text is rendered before the typekit JS kicks in.
    Typekit relies on JS and the tags they provide write additional JS into the head of the document, these tags contain information related to your fonts and what CSS selectors the font should be applied to. All of this script writting + the call to the typekit server to get your details causes a delay.

    There is a good article on 24Ways which talks about The Flash of Unstyled Text, and possible solutions.

  3. colin clark Says:

    The FOUC or FOUT whatever you prefer isn’t much of an issue for me. Visually i don’t mind as long as the designer has matched the base font as closely as possible to the typekit font. I notice typekit are planning on introducing CSS classes to the body element to indicate whether Typekit fonts have loaded or not.

  4. CharlieLaw Says:

    I know what you are getting at Colin, but like SIFR there will always be slight differences between the default font and the one you are loading in. I can’t help thinking if you can find a font that’s close enough to the one you want from Typekit then why not just use it instead of all the extra hassle.

Leave a Reply

 (will not be published)

About me and contact details

Clawg is proudly powered by WordPress

RSS