2カラムレイアウト(1)
- ロゴは、幅300pxで作成する
- テキストは、架空
- コンテンツ幅「960px」
unsplash.com
ウェブサンプル株式会社
ホーム
会社概要[f:id:web-0220:20230206233859j:plain]
事業内容
アクセス
お問い合わせ
私たちはWebで価値を想像する会社です。
ウェブサンプルについて
ウェブサンプルは、世界のサンプルサイト制作をリードしつづける日本発のグローバルカンパニーです。「サンプル・シンプル・ヨクワカル!」をモットーに、今後もわかりやすく利用価値の高いサンプルづくりに邁進してまいります。
お知らせ
2022年03月23日
メディア掲載のお知らせ
2022年02月14日
サンプル2022出展のお知らせ
2022年01月25日
スタッフブログを更新しました
2022年01月10日
サンプルワークショップ開催
Copyright © 2022 websample
HTML記述例
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2カラムレイアウト</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<header class="header">
<h1><img src="img/logo.png" alt="ウェブサンプル株式会社"></h1>
<nav class="gnav">
<ul>
<li><a href="#">ホーム</a></li>
<li><a href="#">会社概要</a></li>
<li><a href="#">事業内容</a></li>
<li><a href="#">アクセス</a></li>
<li><a href="#">お問い合わせ</a></li>
</ul>
</nav>
</header>
<main class="main-content">
<h2>私たちはWebで価値を想像する会社です。</h2>
<div class="wrapper">
<div class="content">
<h3>ウェブサンプルについて</h3>
<p>ウェブサンプルは、世界のサンプルサイト制作をリードしつづける日本発のグローバルカンパニーです。「サンプル・シンプル・ヨクワカル!」をモットーに、今後もわかりやすく利用価値の高いサンプルづくりに邁進してまいります。</p>
</div>
<div class="news">
<h3>お知らせ</h3>
<dl>
<dt>2022年03月23日</dt>
<dd><a href="#">メディア掲載のお知らせ</a></dd>
<dt>2022年02月14日</dt>
<dd><a href="#">サンプル2022出展のお知らせ</a></dd>
<dt>2022年01月25日</dt>
<dd><a href="#">スタッフブログを更新しました</a></dd>
<dt>2022年01月10日</dt>
<dd><a href="#">サンプルワークショップ開催</a></dd>
</dl>
</div>
</div>
</main>
</div>
<footer class="footer">
<p><small>Copyright © 2022 websample</small></p>
</footer>
</body>
</html>
@charset "UTF-8";
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
ul, li {
list-style: none;
}
a {
color: inherit;
text-decoration: none;
}
img {
max-width: 100%;
vertical-align: bottom;
}
body {
color: #222;
font-size: 16px;
font-family:
"Helvetica Neue",
Arial,
"Hiragino Kaku Gothic ProN",
"Hiragino Sans",
Meiryo,
sans-serif;
line-height: 1.0;
}
.container {
max-width: 960px;
margin: 0 auto;
}
.wrapper {
display: flex;
justify-content: space-between;
margin-bottom: 40px;
}
h3 {
margin-bottom: 16px;
color: #388f70;
font-size: 24px;
}
p {
letter-spacing: .1em;
line-height: 1.6;
}
.header {
padding: 30px 0 20px;
text-align: center;
}
.header h1 > img {
width: 300px;
margin-bottom: 20px;
}
.gnav > ul {
display: flex;
justify-content: center;
}
.gnav li {
padding: 10px 20px;
}
.gnav li + li {
border-left: 1px solid #aaa;
}
.main-content > h2 {
display: flex;
justify-content: center;
align-items: center;
height: 400px;
margin-bottom: 40px;
background: url(../img/h2_bg.jpg) no-repeat center -300px;
background-size: cover;
color: #fff;
font-size: 32px;
font-family: serif;
font-weight: bold;
text-shadow: 0 0 4px #000;
}
.content {
width: 530px;
padding-right: 30px;
border-right: 1px solid #aaa;
}
.news {
width: 400px;
}
.news > dl {
display: flex;
flex-wrap: wrap;
}
.news dt {
width: 9em;
line-height: 1.6;
}
.news dd {
line-height: 1.6;
}
.news dd a {
color: #214ce6;
text-decoration: underline;
}
.footer {
padding: 20px 0;
background-color: #62ba9b;
color: #fff;
text-align: center;
}