Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css row column grid

Here is an example from https://www.w3schools.com/css/tryit.asp?filename=trycss_grid 

<!DOCTYPE html>
<html>
<head>
<style>
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto;
  background-color: #2196F3;
  padding: 10px;
}
.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  padding: 20px;
  font-size: 30px;
  text-align: center;
}
</style>
</head>
<body>

<h1>Grid Elements</h1>

<p>A Grid Layout must have a parent element with the <em>display</em> property set to <em>grid</em> or <em>inline-grid</em>.</p>

<p>Direct child element(s) of the grid container automatically becomes grid items.</p>

<div class="grid-container">
  <div class="grid-item">1</div>
  <div class="grid-item">2</div>
  <div class="grid-item">3</div>  
  <div class="grid-item">4</div>
  <div class="grid-item">5</div>
  <div class="grid-item">6</div>  
  <div class="grid-item">7</div>
  <div class="grid-item">8</div>
  <div class="grid-item">9</div>  
</div>

</body>
</html>


Comment

PREVIOUS NEXT
Code Example
Css :: how to make the select box font size small in css 
Css :: css select text inside div 
Css :: bootstrap mb 
Css :: animation left to right css 
Css :: hide in css 
Css :: media breakpoints 
Css :: Capitalise all first letters of words in a sentence with css 
Css :: how to change button border color in css 
Css :: Overflow-y scroll always show even it not overflow 
Css :: how to make bold text css 
Css :: css focus-within 
Css :: text shadow css 
Css :: jquery css unset(remove) certain style 
Css :: background single line property css 
Css :: hide image title on hover css 
Css :: for...of...loop and NodeLists 
Css :: line icon cdn 
Css :: :not(:hover) 
Css :: how to apply css when not on hover 
Css :: make text available only to screen reader 
Css :: add background in text 
Css :: css line-through with words 
Css :: summation in jupyter markdown 
Css :: sass compiler script 
Css :: position absolute and relative css 
Css :: filter array by keyword 
Css :: style input number css 
Css :: photo dropdown html 
Css :: mixed-blend-mode css all properties 
Css :: overflow touch smooth 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =