Changes

Jump to navigation Jump to search
312 bytes added ,  20:19, 4 March 2023
no edit summary
Line 1: Line 1:  
{{#CSS:
 
{{#CSS:
<style>
  −
* {
  −
  box-sizing: border-box;
  −
}
     −
/* Create two equal columns that floats next to each other */
+
<!DOCTYPE html>
.column {
+
<html>
   float: left;
+
<head>
   width: 50%;
+
<style>
   padding: 10px;
+
.newspaper {
   height: 300px; /* Should be removed. Only for demonstration */
+
   column-count: 3;
 +
   column-gap: 40px;
 +
   column-rule-style: solid;
 +
   column-rule-width: 1px;
 
}
 
}
 +
</style>
 +
</head>
 +
<body>
   −
/* Clear floats after the columns */
+
<h1>Set the Rule Width</h1>
.row:after {
  −
  content: "";
  −
  display: table;
  −
  clear: both;
  −
}
  −
</style>
  −
}}
     −
<h2>Two Equal Columns</h2>
+
<div class="newspaper">
<div class="row">
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.
  <div class="column" style="background-color:#aaa;">
  −
    <h2>Column 1</h2>
  −
    <p>Some text..</p>
  −
  </div>
  −
  <div class="column" style="background-color:#bbb;">
  −
    <h2>Column 2</h2>
  −
    <p>Some text..</p>
  −
  </div>
   
</div>
 
</div>
 +
 +
</body>
 +
</html>
 +
}}

Navigation menu

GCwiki