Skip to primary content

Blog-Tastic

All things Whitstable, Web and Graphic related. And other stuff, tips, tricks, code grabs, etc

Blog-Tastic

Main menu

  • Home
  • Code GRAB
    • A Simple Responsive, Two Line Footer
    • PHP – basics
      • PHP – Passing info to the server
      • Using PHP with MySQL
      • PHP Basics – Structuring files
    • CSS
    • VBA in Excel Basics – Quick Tutorial
    • MySQL & SQL – basics
    • MySQL basics – Table Relationships
    • What are Batch files?
  • Juicy Bits
    • Excel Guide – The juicy Bits
    • Excel Macros – The Juicy Bits
    • Access Basics- The Juicy Bits
    • WordPress Shortcuts
  • Case Studies
    • Martin Dixon Vehicle Inspections, Faversham, Kent. Business card, Letterhead and Compliment Slip Design
  • Me

CSS

Just some CSS snippets and tricks to help you along the way to becoming a CSS guru.

FONT – REM

Make the root font size 62.5% so that it the same as 10px (not 16 as is the default).

html { font-size: 62.5%; } 
body { font-size: 14px; font-size: 1.4rem; } /* =14px */ 
h1   { font-size: 24px; font-size: 2.4rem; } /* =24px */

Courtesy of Mr Snook


 

 

Share this page:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Like this:

Like Loading...
Proudly powered by WordPress
%d bloggers like this: