Added mime. Added css fallback for browsers.

Mime is used to get the file extension to add to content type. The css
fallback is mainly for safari. It can't handle calc() so I put in
percentages instead.