``<!DOCTYPE>
<html lang="ja"> <head> <meta charset="UTF-8"> <title>EXAMPLE</title> <style> body{font-family: "Century Gothic", 'Lato', sans-serif;} a {text-decoration: none;} .et-hero-tabs, .et-slide { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; position: relative; background: #eee; text-align: center; padding: 0 2em;h1{font-size: 2rem; margin: 0; letter-spacing: 1rem;} h3 {font-size: 1rem; letter-spacing: 0.3rem; opacity: 0.6;}
}
.et-hero-tabs-container {
display: flex;
flex-direction: row;
position: absolute;
bottom: 0;
width: 100%;
height: 70px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
background: #fff;
z-index: 10;
&--top { position: fixed; top:0; }}
.et-hero-tab {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
color: #000;
letter-spacing: 0.1rem;
transition: all 0.5s ease;
font-size: 0.8rem;
&:hover { color:white; background: rgba(102,177,241,0.8); transition: all 0.5s ease; }}
.et-hero-tab-slider {
position: absolute;
bottom: 0;
width: 0;
height: 6px;
background: #66B1F1;
transition: left 0.3s ease;}
@media (min-width: 800px) {
.et-hero-tabs,
.et-slide {
h1 { font-size: 3rem;} h3 {font-size: 1rem;}
}
.et-hero-tab {font-size: 1rem;}
}
尚、<style>の中身はhttps://lab.sonicmoov.com/markup/css/image-slider/のスライド型ナビゲーション Sticky Slider Navigation (Responsive)をコピーし使わせて頂いています。
使用:Visual Studio Code
〚エラー箇所〛
(htmlには左に????をつけています)
――――――――――――――――――――――――――
h1{font-size: 2rem; ????(ここの{と2remにエラー「colon expected」) margin: 0; ????(ここの:にエラー「semi-colon expected」) letter-spacing: 1rem;} ????(ここの:と}にエラー「{expected」) h3 {font-size: 1rem; letter-spacing: 0.3rem; opacity: 0.6;}
} ????(ここの}にエラー「{expected」)
.et-hero-tabs-container {
display: flex;
flex-direction: row;
position: absolute;
bottom: 0;
width: 100%;
height: 70px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
background: #fff;
z-index: 10;
&--top { ????(ここの&にエラー「at-rule or selector expected」) position: fixed; top:0; ????(ここの0にエラー「at-rule or selector expected」) }} ????(ここの}にエラー「}expected」)
.et-hero-tab {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
color: #000;
letter-spacing: 0.1rem;
transition: all 0.5s ease;
font-size: 0.8rem;
&:hover { ????(ここの&にエラー「identifier expected」) color:white; background: rgba(102,177,241,0.8); ????(ここの:にエラー「at-rule or selector expected」) transition: all 0.5s ease; ????(ここの:にエラー「}expected」) }} ????(ここの}にエラー「{expected」)
.et-hero-tab-slider {
position: absolute;
bottom: 0;
width: 0;
height: 6px;
background: #66B1F1;
transition: left 0.3s ease;}
@media (min-width: 800px) {
.et-hero-tabs,
.et-slide {
h1 { ????(ここの{にエラー「」) font-size: 3rem;} ????(ここの3remにエラー「」) h3 {font-size: 1rem;}
} ????(ここの}にエラー「」)
.et-hero-tab {font-size: 1rem;}
} ????(ここの}にエラー「」)
回答1件
あなたの回答
tips
プレビュー