CSS11 ボックスモデル
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>ボックスモデル(11)</title> <style type="text/css"> <!-- p { color:#fff; font-family:sans-serif; line-height:1.6em; font-weight: bold; background-color:#00bfff ; margin-top: 50px; margin-left: 50px; width: 340px; padding:5px; } --> </style> </head> <body> <p>BOX and margin<br> この領域はボックスといいます。テキストなどのコンテンツ内容を表示する領域です。マージンはこのボックスの余白のことをいいます。</p> </body> </html>