footerタグを書く
footerタグの内側にulタグ、liタグ、aタグでメニューを書く
ulタグの下にsmallタグでコピーライト表記を書く
bodyタグに以下のCSSを付加する
margin | 0 |
---|
footerタグに以下のCSSを付加する
background-color | #f77237 |
---|---|
padding | 20px 0 |
aタグに以下のCSSを付加する
text-decoration | none |
---|---|
color | #fff; |
aタグにマウスが乗った時に以下のCSSを付加する
opacity | 0.6 |
---|
ulタグに以下のCSSを付加する
list-style | none |
---|---|
text-align | center |
ulタグの中のliタグに以下のCSSを付加する
display | inline |
---|---|
margin | 0 20px |
smallタグに以下のCSSを付加する
color | #fff |
---|---|
display | block |
text-align | center |
https://www.youtube.com/embed/MI54a9ttlhE?si=NJeF2v8MLvkfZ31K
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<footer>
<ul>
<li><a href="#">HOME</a></li>
<li><a href="#">会社概要</a></li>
<li><a href="#">アクセス</a></li>
</ul>
<small>© xxx Corporation</small>
</footer>
</body>
</html>
body {
margin: 0;
}
footer {
background-color: #f77237;
padding: 20px 0;
}
a {
text-decoration: none;
color: #fff;
}
a:hover {
opacity: 0.6;
}
ul {
list-style: none;
text-align: center;
}
ul li {
display: inline;
margin: 0 20px;
}
small {
color: #fff;
text-align: center;
display: block;
}