This example demonstrates the use of box - structural - elements
|
|
The assignment requires that you create four boxes - you will have to use the
information in this example and the skills that you have gained in this
course to complete the assignment.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Using Box Structures for Web Page</title> <link rel="stylesheet" type="text/css" href="layout.css" /> </head> <body> <div class="area00"> <div class="area01"> </div> </div> </body> </html>
.area00 { position: absolute; left: 50px; top: 200px; width: 750px; height: 350px; border: thin solid #ff0000; background-color: #feff66; } .area01 { position: absolute; left: 20px; top: 20px; width: 350px; height: 100px; border: thin solid #000055; background-color: #ffffff; }
|
|