Image Unavailable
Click to view in closer detail!

Description »

The HTML <body> tag that contains everything

Details »

body relates to the HTML <body>. It is the base level and contains everything you can see on the page. Changes made to body are reflected in all other areas unless that area has it's own CSS which "overrules" that of the body.

This allows you do set defaults for the way your wiki looks. For example, you can set the color of the text in body for the overall color of the text. Then, you can change the color separately in the side bar using the id selector #side-bar.

Examples »

body is good for changing the global background color/image or setting the font for the document. For instance, this particular page is currently using the Comic Sans MS font (or Times New Roman if you don't have that) with the following code:

    font-family: 'Comic Sans MS','Times New Roman';
    font-size: 13px;

Try It on the CSS Zone Sandbox!

Base CSS »

    margin: 0px;
    padding: 0px;
    font-family: verdana,arial,helvetica,sans-serif;
    font-size: 0.82em;

Not defined in Base CSS.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License