Rajan, täytteen ja marginaalin ominaisuudet

Tämän dokumentin erilaisia rajan, täytteen ja marginaalin ominaisuuksia on muutettu esimerkissä olevilla tyylimäärittelyillä.

h1 {
        margin-top: 2em;
        margin-right: 3em;
        margin-bottom: 4em;
        margin-left: 5em;
        padding: 2em;
        border-color: red;
        border-style: dashed;
        border-width: thin;
        color:black;
        background-color:yellow; 
}  
   
p {
        padding: 1em 2em 3em 4em;
        border-color: red;
        border-style: solid; 
        border-width: medium;
}
 
pre{
        border-color: blue;
        border-style: double;
        border-width: thick medium thin thin;
}