Deprecated: Assigning the return value of new by reference is deprecated in /membri2/asbruff/flatpress/comments.php on line 213
TheJoe » CSS: Reset CSS
2010
Apr
2

CSS: Reset CSS


Deprecated: Non-static method StringParser_Node::destroyNode() should not be called statically, assuming $this from incompatible context in /membri2/asbruff/flatpress/fp-plugins/bbcode/inc/stringparser.class.php on line 358

css.jpg La tecnica dell’azzeramento degli stili CSS è stata introdotta per la prima volta da Eric Meyer allo scopo di avere uno spazio di lavoro idealmente bianco dove definire da zero tutti gli stili necessari senza dover tener conto della formattazione di default di un dato stile.

Perché il reset.css funzioni è necessario includerlo prima del CSS principale. Vediamo come:

<link rel="stylesheet" type="text/css" href="reset.css" media="screen" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />

Ed ecco cosa dovremo inserire nel “reset.css”:

/* v1.0 | 20080212 */

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,
b, u, i, center,
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-size: 100%;
    vertical-align: baseline;
    background: transparent;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

/* remember to define focus styles! */
:focus {
    outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
    text-decoration: none;
}
del {
    text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

Strict Standards: Only variables should be passed by reference in /membri2/asbruff/flatpress/fp-includes/core/core.fpdb.class.php on line 268

Deprecated: Non-static method StringParser_Node::destroyNode() should not be called statically, assuming $this from incompatible context in /membri2/asbruff/flatpress/fp-plugins/bbcode/inc/stringparser.class.php on line 358

Calendario

  • April 2010
    SunMonTueWedThuFriSat
     123
    45678910
    11121314151617
    18192021222324
    252627282930 

Strict Standards: Only variables should be passed by reference in /membri2/asbruff/flatpress/fp-includes/core/core.fpdb.class.php on line 256

Tags

  Symbian     Xfce4     SivamDesign.com     OpenVZ     Linux4one     GoogleBuzz     ChromeOS     Dyne|bolic     Software     Linutop     Google     Ajax     GoogleVideo     Sourceforge     Audio     StyleShout.com     Ubuntu     Firefox     CentOS     AspirOne     Fotoxx     Linux     Meebo     htaccess     Jack     TrueCrypt     Gmail     Pidgin     Sicurezza     Video     Pure|dyne     Php     Html     Global menu     Blog     Nokia     WebArchive     VHosting     Flatpress     Javascript     Tutorial     Gimp     HowTo     Samba     Alien     Social Network     Tilda     Prey     Tech     Mencoder     Grafica     Gnome     MPD     Distribuzioni     hoster     Aruba     mac4lin     Tips     Hydrogen     Css     SplitToning     Audacity     rSync     Shell     Stampa     SongBird     Mac OS X     Youtube     Fedora     Web         Open Source     Brushes     GnomeMusicPlayerClient     Netbook     Ardour     Siti  

Admin area