Tag: CSS

  • CSS3 font embedding made easy by Google

    CSS3 font-face is great, but Google Font API is greater. It efficiently removes the need of defining different font files for both IE and the rest (IE wants .eot while others wants .ttf IIRC). Simply add: <link href=”http://fonts.googleapis.com/css?family=[font names here]” rel=”stylesheet” type=”text/css” /> … immediately after <head> (as said by Google to prevent some unexpected weirdness),…

  • Div horizontal centering when there’s more than one of it

    We know about margin: 0 auto; that will center a div horizontally. It works by setting up an equal left and right margin to the div. But I never find an easy way to do this when there’re 2 or more consecutive divs on the “same line” because: Using margin auto will push the next…

  • Safe Web FontsJenis Huruf untuk Halaman Web

    Jenis huruf (font) yang dimiliki oleh setiap sistim operasi berbeda-beda. Seorang web developer harus mempertimbangkan hal ini agar halaman web yang dibuat dapat tampil dengan baik. Terdapat beberapa buah cara untuk menampilkan huruf-huruf yang persis sama di berbagai macam perambah (browser) dan sistim operasi. Namun yang paling mudah dan paling efisien dari sisi penggunaan sumberdaya…