border: thin solid rgb(0, 0, 0) : rgb « Style Basics « HTML / CSS






border: thin solid rgb(0, 0, 0)

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title> exercise 4-2 </title>
        <style type='text/css' media='all'>
            body {
                font-size: 12px;
            }
            h1 {
                font-size: 25px;
                background: rgb(255, 192, 203);
                padding: 25px;
                border: thin solid rgb(0, 0, 0);
            }
            p {
                font-size: 11px;
                padding: 11px;
                border: thin solid rgb(0, 0, 0);
                background: rgb(128, 128, 128);
                color: rgb(255, 255, 255);
            }
        </style>
    </head>
    <body>
        <h1>
            This is a heading
        </h1>
        <p>
            This is a paragraph of text.
        </p>
    </body>
</html>

 








Related examples in the same category

1.Use rgb function to set the color
2.rgb color
3.rgb color with percentage
4.background-color: rgb(128, 128, 128)
5.background-color: rgb(50%, 50%, 50%)