前提
ここに質問の内容を詳しく書いてください。
(例)
HTML CSS の模写コーディングをしています。
CSSのエラーが消せなくて困っています。
実現したいこと
エラーを消す。
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>課題テンプレ</title> <link rel="stylesheet" href="css/style.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inview/1.0.0/jquery.inview.min.js"></script> <script src="js/script.js"></script> </head> <body> <header id="header"> <div class="logo"> <h1 class="title">CCC</h1> <span>英会話スクール</span> </div> </header> <main> <div id="mainvisual">```HTML コード
</body> </html><ul class="fade"> <li><img src="../web3/img/mainvisual1.jpg" alt="main1"></li> <li><img src="../web3/img/mainvisual2.jpg"alt="main2"></li> <li><img src="../web3/img/mainvisual3.jpg " alt="main3"></li> </ul> <div class="text"> <P>話して学ぼう<br> CCC英会話スクール </P> <p><a class="btn" href="#">無料体験はこちらから </a></p> </div> </div> <section id="reason"></section> <section id="voice"></section> <section id="summary"></section> <div id="entry"></div> </main> <footer></footer>
CSS
1コード 2```*{ 3 margin:0; 4 padding:0; 5} 6.logo{ 7 color: red; 8 vertical-align: bottom; 9} 10.title{ 11 vertical-align: bottom; 12 font-size: 40px; 13 font-weight: 600; 14} 15.logo span{ 16 vertical-align: bottom; 17 font-size: 15px; 18} 19#mainvisual{ 20 height: 720px; 21 position: relative; 22 margin-bottom: 120px; 23} 24.text{ 25 position: absolute; 26 top: 280px; 27 left: 10%; 28 z-index: 10; 29 } 30 .text p { 31 font:-size: 30px; 32 font-weight: bold; 33 margin-bottom: 30px; 34 text-shadow: 0 4px 6px #fff; 35 } 36.fade{ 37 height: 300px; 38 margin-top: 10px; 39 position: relative; 40 } 41 .fade li { 42 width: 75%; 43 position: absolute; 44 top: 0; 45 right: 0; 46 /* 最初は3枚の画像を非表示にしておく */ 47 opacity: 0; 48 animation: fade 1s infinite; 49 } 50 .fade li:nth-child(1) { 51 animation-delay: 0s; 52 } 53 .fade li:nth-child(2) { 54 animation-delay: 2s; 55 } 56 .fade li:nth-child(3) { 57 animation-delay: 2s; 58 } 59.text p{ 60 font-size: 25px; 61 font-weight: 500; 62 text-shadow: 0 4px 6px #fff; 63 margin-bottom: 30px; 64 65} 66 67.btn{ 68 width: 820px; 69 text-align: center; 70 margin: 0 auto; 71 background-color: red; 72 color: white; 73 padding: 15px; 74 border-bottom: 6px solid #9a0413; 75 border-radius: 10px; 76 text-decoration: none; 77} 78 79 80 81 82 83 /* スマホ時 */ 84@media screen and ( max-width:640px ) 85{ 86 87 88 89}
cssのエラーというのは,
どこにどのようなものが出ているのでしょうか?
回答1件
あなたの回答
tips
プレビュー