DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

CSSリセット

03.29.2009
| 978 views |
  • submit to reddit
        @charset "utf-8";
 
/*****リセット
************************************************************/
 
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        font-weight: inherit;
        font-style: inherit;
        font-size: 100%;
        font-family: inherit;
        vertical-align: baseline;
}

:focus {
        outline: 0;
}
body {
        line-height: 1;
        color: black;
        background: white;
        font-family:"メイリオ","Meiryo",verdana,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,"MS Pゴシック","MS PGothic",Sans-Serif;
        font-size:78%;
}
ol, ul {
        list-style: none;
}

img{
        vertical-align:bottom;
}

table {
        border-collapse: separate;
        border-spacing: 0;
}
caption, th, td {
        text-align: left;
        font-weight: normal;
}
 
/*****汎用
************************************************************/
 
.png{
        display:block;
        zoom:1;
}

.png a{
        display:block;
        position:relative;
}


.png img{
        _filter: alpha(opacity='0');

}
 
.center{
        text-align:center;
}

.right{
        text-align:right;
}

.fl{
        float:left;
        margin:0 5px 5px 0;
}

.fr{
        float:right;
        margin:0 0 5px 5px;
}
 
img.fl{
        margin:0 5px 5px 0;
}

img.fr{
        margin:0 0 5px 5px;
}
 
.clearfix:after{
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
 
.clearfix{
   zoom:1;
}