Best CSS reset technique

Out of context: Reply #5

  • Started
  • Last post
  • 9 Responses
  • Stugoo0

    something like this :

    * {margin:0; padding:0;}

    body {
    font-size: 62.5%;
    font-family: Helvetica, Arial, Helvetica, sans-serif;
    background:#fff;
    color:#6a6a6a;
    }

    .skipto { position:absolute; top:0; left:-100000px; width:0; height:0; overflow:hidden;}
    div { z-index:0;}

    /* standard*/

    h1, h2, h3, h4{ text-align: left; color:#2e2e2e;font-weight:normal...

    p {font-size:13px;line-height:17px... 0 17px 0;} /*line-height: 1.30769231em / margin 2em */
    ul {margin:0 0 18px 0;list-style: none; }
    ul li {margin:0 0 0 0;list-style: none; font-size:13px; }
    a { outline:none; color: #0090ca; text-decoration: none;}
    a:hover { outline:none; color: #0090ca; text-decoration: underline;}
    img {border:0; margin:0px; padding:0px;}
    address{ font-style:normal;}
    textarea { font-family:Arial, Helvetica, sans-serif;}

    input.focus, input:focus,
    textarea.focus, textarea:focus,
    select.focus, select:focus{ color:#0090ca; background:#ededed; }

    /** generic layout styles **/
    .row{width:100%;}
    .left{float:left;}
    .right{float:right;}
    .spanclear{display:block;clear:b...
    .clear{clear:both; line-height:0px;font-size:0px;he...
    .hide{display:none;}
    .rel{position:relative;}
    img{border:none;}
    .hr {clear:both; line-height:0px; font-size:0px; height:0;padding:0px; margin:0px; border:0; border-top:1px solid #c3c3c3; }
    .no_margin { margin:0}
    .no_border { border:0 !important;}

    • base css starting pointStugoo
    • literally copied and pastetd from a build im doing now. an usually use em'sStugoo

View thread