CSSgrid-template-columnsプロパティ
grid-template-columnsプロパティは、グリッド内の列数を設定するために使用されます。
例
次のコードを実行して、grid-template-columnsプロパティを実装してみてください-
<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: grid;
background-color: blue;
grid-template-columns: auto auto;
padding: 20px;
grid-gap: 20px;
}
.container > div {
background-color: orange;
border: 2px solid gray;
padding: 35px;
font-size: 30px;
text-align: center;
}
</style>
</head>
<body>
<h1>Game Board</h1>
<div class = "container">
<div class = "ele1">1</div>
<div class = "ele2">2</div>
<div class = "ele3">3</div>
<div class = "ele4">4</div>
<div class = "ele5">5</div>
<div class = "ele6">6</div>
</div>
</body>
</html> -
CSSのカーソルプロパティ
カーソル CSSのプロパティを使用すると、ユーザーに表示するカーソルの種類を指定できます。 例 <html> <head> </head> <body> <p>Move the mouse over the words and see the changes in cursor:</p> <div style = "cursor:auto"
-
CSSワードブレイクプロパティ
word-breakプロパティは、行を分割するために使用されます。 例 次のコードは、単語分割のサンプルコードを示しています。 <html> <head> <style> p.text1 { width: 140px; border: 1px solid #