Skip to content

Instantly share code, notes, and snippets.

@justindmartin
Created September 2, 2012 20:29
Show Gist options
  • Save justindmartin/3604272 to your computer and use it in GitHub Desktop.
Save justindmartin/3604272 to your computer and use it in GitHub Desktop.
These are some Global CSS rules that I use to maintain identical feel across all browsers
/* Global */
*{padding:0px; margin:0; border:none; outline:none; color:#333; font-family:Arial,Helvetica,sans-serif;}
*:focus{border:none; outline:none;}
html,body{height:100%;}
h1{font-size:32px !important;}
h2{font-size:24px !important;}
h3{font-size:19px !important;}
h4{font-size:16px !important;}
h5{font-size:13px !important;}
h6{font-size:11px !important;}
p{font-size:16px !important;}
a{text-decoration:none; border:none; outline:none;}
a:hover{text-decoration:underline;}
a img{border:none; outline:none;}
b{font-weight:bold;}
li{list-style:none;}
input[type=text],input[type=password]{padding:1px 2px; border-radius:2px; -webkit-border-radius:2px; -moz-border-radius:2px; border:solid 1px #ABABAB;}
input[type=text]:focus,input[type=password]:focus{border:solid 1px #4577ED; box-shadow:0px 0px 2px 1px #4577ED;}
input[type=submit]{padding:5px 10px; border:0px;}
button{padding:5px 10px; border:0px; border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px;}
button:hover{cursor:pointer;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment