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

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

Admin area