Difference between revisions of "M365/test"

From wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{#CSS:
 
{{#CSS:
.newspaper {
+
    <style>
  column-count: 3;
+
      /* Set up the three columns */
  column-gap: 40px;
+
      .container {
  column-rule-style: solid;
+
        display: flex;
  column-rule-width: 1px;
+
        flex-wrap: wrap;
}
+
        justify-content: space-between;
 +
      }
 +
      .column {
 +
        flex-basis: calc(33.33% - 20px);
 +
        margin-bottom: 20px;
 +
      }
 +
 
 +
      /* Style the content inside the columns */
 +
      .content {
 +
        background-color: #f2f2f2;
 +
        padding: 20px;
 +
      }
 +
 
 +
      /* Responsive design for small screens */
 +
      @media only screen and (max-width: 768px) {
 +
        .column {
 +
          flex-basis: 100%;
 +
        }
 +
      }
 +
    </style>
 
}}
 
}}
  
<h1>Set the Rule Width</h1>
+
    <div class="container">
 
+
      <div class="column">
<div class="newspaper">
+
        <div class="content">
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.
+
          <h2>Column 1</h2>
</div>
+
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit enim, non ultrices dolor scelerisque id. Integer auctor nunc purus, ac suscipit lectus tristique eu.</p>
 +
        </div>
 +
      </div>
 +
      <div class="column">
 +
        <div class="content">
 +
          <h2>Column 2</h2>
 +
          <p>Phasellus accumsan lobortis magna, a ultricies sapien hendrerit id. Vestibulum sed lorem id libero lobortis aliquam in vitae enim. Ut ornare dapibus velit, eget egestas enim bibendum ac.</p>
 +
        </div>
 +
      </div>
 +
      <div class="column">
 +
        <div class="content">
 +
          <h2>Column 3</h2>
 +
          <p>Curabitur vel neque vel tortor accumsan bibendum. Nullam a mauris ipsum. Nullam ullamcorper, mauris ac vehicula varius, turpis purus aliquet est, eget pretium odio urna eu enim.</p>
 +
        </div>
 +
      </div>
 +
    </div>

Revision as of 09:25, 5 March 2023


Column 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit enim, non ultrices dolor scelerisque id. Integer auctor nunc purus, ac suscipit lectus tristique eu.

Column 2

Phasellus accumsan lobortis magna, a ultricies sapien hendrerit id. Vestibulum sed lorem id libero lobortis aliquam in vitae enim. Ut ornare dapibus velit, eget egestas enim bibendum ac.

Column 3

Curabitur vel neque vel tortor accumsan bibendum. Nullam a mauris ipsum. Nullam ullamcorper, mauris ac vehicula varius, turpis purus aliquet est, eget pretium odio urna eu enim.