5月14日 テスト
<?xml version="1.0" encoding="UTF-8"?> <!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" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <title>テスト</title> <style type="text/css"> <!-- * { margin: 0px; padding: 0px; } body { background-color: #ccc; } #container { background-color: #fff; width: 800px height: auto; margin: 5px auto; padding: 10px; } #wrapper: { width: 800px; height: auto; background-color: white; margin: 20px auto; } #header { background-color: #a3bed5; height: 100px; text-align: center; margin: 10px 0; } #content { background-color: #dcd78a; height: 310px; float: raight; margin: 0 0 20px 0; } #sidebar { background-color: #9cc56e; width: 220px; height: 280px; float: left; margin: 0 10px 0 0; border: 2px solid #9cc56e;; } #footer { background-color: #e0b9d2; height: 50px; padding: 10px; } .nav ul{ list-style-type: none; padding: 10px; } .nav li { width: 200px; height: 80px; display: block; } .nav li{ border-bottom: 10px solid #9cc56e; } .nav li a:link { display: block; background-image:url("btn_c.jpg"); text-decoration: none; width: 200px; height: 80px; text-align: center; } .nav li a:hover { background-image:url("btn_a.jpg"); } --> </style> <body> <div id="container"> <div id="header">ここにサイトのタイトル</div> <div id="wrapper"> <div id="sidebar"> <div class="nav"> <ul> <li><a href="#" alt="">メニューのリンク</a></li> <li><a href="#" alt="">メニューのリンク</a></li> <li><a href="#" alt="">メニューのリンク</a></li> </ul> </div> </div> <div id="content">content<br>日々、心新たに客人を迎え、</br>その度ごとの出会いを大切にする。<br>ひと時を心ゆくまで楽しんでいただくために、<br>味わいの空間をいかに演出するかも、<br>料理の次ぐもてなしと心得ます</div> </div> <div id="footer">ここに連絡先のテキストが入る</div> </div> </body> </html>
サイドバー→コンテント駄目!!!(情報の優先順位を守る)
回答
<?xml version="1.0" encoding="UTF-8"?> <!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" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <title>【確認テスト05月14日】</title> <style type="text/css"> <!-- * { margin: 0; padding: 0; } ul { list-style-type: none; } img { border: none; } body { color: #FFF; font-size: 1.0em; font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "MS Pゴシック", "MS PGothic", sans-serif; background-color: #CCC; } #container { width: 800px; height: auto; margin: 0 auto; padding: 10px; background-color: #FFF; overflow: hidden; } #header { width: auto; height: 100px; margin: 0 0 10px 0; background-color: #A3BED5; } h1 { color: #FFF; font-size: 1.6em; font-family: serif; padding: 20px 0 0 20px; } #content { float: right; width: 540px; height: 290px; margin: 0 0 10px 0; padding: 10px; background-color: #DCD78A; } #sidebar { float: left; width: 200px; height: auto; padding: 10px 10px 0 10px; background-color: #9CC56E; } #sidebar li { height: 80px; margin: 0 0 10px 0; } #footer { clear: both; width: auto; height: 50px; background-color: #E0B9D2; } address { font-style: normal; text-align: center; padding: 15px 0 0 0; } --> </style> </head> <body> <div id="container"> <div id="header"> <h1>ここにサイトタイトルが入る</h1> </div> <div id="wrapper"> <div id="content"> <h2>ここに見出しが入る</h2> <p>ここに本文が入る</p> </div> <div id="sidebar"> <ul> <li><img src="images/banner.jpg" width="200" height="80" alt="" /></li> <li><img src="images/banner.jpg" width="200" height="80" alt="" /></li> <li><img src="images/banner.jpg" width="200" height="80" alt="" /></li> </ul> </div> </div> <div id="footer"> <address>ここに連絡先のテキストが入る</address> </div> </div> </body> </html>