Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
main
Breadcrumbs
2026-css-column-rule
/
multicol-basic.html
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
27 lines (26 loc) · 924 Bytes
main
Breadcrumbs
2026-css-column-rule
/
multicol-basic.html
Copy path
Top
File metadata and controls
Code
Blame
27 lines (26 loc) · 924 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<link rel="stylesheet" href="style.css">
<style>
.article {
column-count: 3;
column-gap: 2rem;
column-rule: 2px solid #c00;
}
.article p {
margin: 0 0 1em;
}
</style>
</head>
<body>
<div class="article">
<p>段組みは、column-countやcolumn-widthを指定すると作れます。段と段のあいだの隙間はcolumn-gapで調整します。</p>
<p>この隙間に線を引くのがcolumn-ruleです。線の太さ、種類、色をまとめて指定できるショートハンドになっています。</p>
<p>線は隙間の中央に描かれ、レイアウト上の幅を取りません。そのため、線を引いても段の幅や位置は変わりません。</p>
</div>
</body>
</html>
You can’t perform that action at this time.