初めて質問させていただきます。
現在某スクールにて演習課題を進めているのですが、boxタグ内の箇条書きリストに画像を位置をずらしながら配置していきたいのですが、うまくいかず苦戦しています。。。
スタイルシート内の記述がちがっているようなんですが、自分では見つけることができず、周りに聞けるような人もいないため困っております。
スクールの講師からはセレクタとかが違っている可能性もあります。練習のため自分でみつけてみてと言われていますが、初心者のため、検索をかけても思うような答えがえられませんでした。
どなたかご教授お願いいたします。
必要であればほかの情報も提供いたします。
【8/20追記】cssを誤って違うものを載せてしまったため、質問を編集させていただきました。
再度よろしくお願い致します。
###発生している問題・エラーメッセージ
エラーメッセージ
css body{ background-size: 100%; display:block; line-height: 1.4; background-color: #ffffff; background-image: url(img/head-bg.jpg); background-repeat: repeat-x; margin: 0px; padding: 0px; } a{ text-decoration: none; display:block; text-indent:-9999px; background-image :url(img/head-menu.jpg); height:49px; width:100%; background-position: 0 top; } #globalnav .idea a{ background-image :url("img/head-menu.jpg"); backgroud-repeat: no-repeat; background-position: -150px top; } #globalnav .service a{ backgroud-image :url("img/head-menu.jpg"); background-repeat: no-repeat; background-position: -300px top; } #globalnav .company a{ background-image :url("img/head-menu.jpg"); background-repeat: no-repeat; background-position: -450px top; } #globalnav .FAQ a{ background-image :url("img/head-menu.jpg"); background-repeat: no-repeat; background-position: -600px top; } #globalnav .access a{ backgrond-image :url("img/head-menu.jpg"); background-repeat: no-repeat; background-position: -750px top; } .box { margin: 10px 0; float: left; width: 100%; background: #ffffff ; } .box img { max-width: 100%; float: right; margin: 0; } .box p { margin: 0; padding: 0px; } #sidebar a { text-decoration: none; float: left; display:block; width: 255px; height: 60px; background-image :url(img/top-menu.jpg); background-repeat: no-repeat; background-position: 0 left bottom; } #sidebar ul { display: block; height: 300px; } #sidebar ul li { display: block; height: 60px; } #sidebar ul .careplan a { background-image: url(img/top-menu.jpg); background-repeat: no-repeat; background-position: 0px left bottom; } #sidebar ul .grouphome a { background-image: url(img/top-menu.jpg); background-repeat: no-repeat; background-position: -60px left bottom; } #sidebar ul .service a { background-image: url(img/top-menu.jpg); background-repeat: no-repeat; background-position: -120px left bottom; } #sidebar ul .homehelp a { background-image: url(img/top-menu.jpg) ; background-repeat: no-repeat; background-position: -180px left bottom; } #sidebar ul .daycare a { background-image: url(img/top-menu.jpg) ; background-repeat: no-repeat; background-position; -240px left bottom; } .left { float: left; } h1{ color:#ffffff; margin:0px; } h2{ height:80px; padding-top:24px; padding-left:20px; margin:0px; color:#black; clear:both; } dl{ background-color:#white; width:680px; margin-top:0px; list-style-image: url(img/top-li.jpg); } ul#globalnav li{ float:left; width:150px; list-style-type:none; background-color:#ff9fbf; } ul{ padding:0px; margin:0px; } div#left{ float:left; width:680px; background-color#ffffff; } div#right{ float:right; width:220px; padding-left:0px; } div#right img{ margin:0px; } div#footer p{ text-align:center; color:#black; background-color:#ff9fbf; clear:both; background-image: url(img/foot-bg.jpg); background-repeat: repeat-x; height: 140px; padding: 0; background-position: bottom; margin: 0px; } div#wrapper{ width:900px; margin:0 auto; }
HTML
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="UTF-8"> <title>東京都板橋区のグループホーム・サービス付き高齢者向け住宅・デイサービスのサンベストビレッジ浮間公園</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <a id="top"></a> <div id="wrapper"> <h1><img src="img/logo.jpg" /></h1> <ul id = "globalnav"> <li class="home"><a href="html.html">HOME</a></li> <li class="idea"><a href="html.html">理念</a></li> <li class="service"><a href="html.html">サービス</a></li> <li class="company"><a href="html.html">会社概要</a></li> <li class="FAQ"><a href="html.html">良くある質問</a></li> <li class="access"><a href="html.html">アクセス</a></li> </ul> <div class="box"> <img src="img/icatch.png"> <div class="left"> <p> <ul id = "sidebar"> <li class="careplan"><a href="html.html">ケアプラン</a></li> <li class="grouphome"><a href="html.html">グループホーム</a></li> <li class="service"><a href="html.html">サービス付き高齢者向け住宅</a></li> <li class="homehelp"><a href="html.html">ホームヘルプサービス</a></li> <li class="daycare"><a href="html.html">デイサービス</a></li> </ul> </p> </div> </div> <div id= "left"> <h2><img src="img/top-news.jpg" /></h2> <dl> <dt>2016.01.01</dt> <dd>今年もサンベストビレッジ浮間公園を<br /> よろしくお願いします。</dd> <dt>2015.11.22</dt> <dd>第五回介護甲子園の決勝大会に<br /> 出場しました。結果は惜しくも優秀賞でした。<br /> 応援の方、ありがとうございました。</dd> <dt>2015.09.13</dt> <dd>第五回介護甲子園決勝進出!!<br /> 11月23日に日比谷公会堂にて<br /> 決勝大会を行います。</dd> <dt>2015.08.30</dt> <dd>サービス付き高齢者向け住宅 残り3室となっております。<br /> (お問い合わせを多数いただいております。)</dd> <dt>2013.08.20</dt> <dd>サービス付き高齢者向け住宅 残り3室</dd> <dt>2013.06.01</dt> <dd>グループホーム 満室となりました。待機者募集中です。</dd> <dt>2012.09.25</dt> <dd>ホームページリニューアルしました。</dd> <dt>2012.09.25</dt> <dd>サービス付き高齢者向け住宅 残り8室</dd> <dt>2012.09.25</dt> <dd>グループホーム 残り2室</dd> <dt>2012.09.25</dt> <dd>求人募集中(来年度新卒含む)</dd> </dl> </div> </div> <div id = "right"> <img src ="img/top-bn-kamifukuoka.jpg" /> <img src ="img/top-bn-confirm.jpg" /> <img src ="img/top-bn-reserve.jpg" /> <img src ="img/top-bn-staff.jpg" /> </div> </div> <div id = "footer"> <p>会社概要 プライバシーポリシー</p> <p>copyright © 2012 サンベスト浮間公園 All rights reserved</p> </div> </div> </body> </html>
###補足情報(言語/FW/ツール等のバージョンなど)
html css
回答4件
あなたの回答
tips
プレビュー