Columns
.content-services-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr 1fr;
text-align:center;
align-items:center;
grid-gap:1rem;
}
/* Grid column Syntax*/
grid-column: auto;
/* with line numbers */
grid-column: 1;
grid-column: 1 / 3;
grid-column: 1 / span 2;
/* with line names */
grid-column: main-start;
grid-column: main-start / main-end;
/* Global values */
grid-column: inherit;
grid-column: initial;
grid-column: revert;
grid-column: unset;
.hero {
/* Photo by mnm.all on Unsplash */
background: url('https://images.unsplash.com/photo-1518176258769-f227c798150e') center;
background-size: cover;
padding: 4rem 2rem;
/* Grid styles */
display: grid;
align-items: center;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
Code Example |
---|
Css :: show existing virtualenvs |
Css :: css transform border radius |
Css :: css rotate 3d |
Css :: text in centre table css |
Css :: cursive css |
Css :: how to make border for letters in css |
Css :: vue v-cloak not working |
Css :: css text properties |
Css :: css padding |
Css :: css how does hsl work |
Css :: convert image in rounshape in css |
Css :: border-box css |
Css :: blink css |
Css :: css text spacing |
Css :: spaces between letters css |
Css :: css calc |
Css :: how to set text in center in flex item |
Css :: css background transparency or alpha mode |
Css :: scss !default |
Css :: change placeholder color |
Css :: css filter color |
Css :: how to add a photo using css beside a paragraph in html |
Css :: how to round the edges of a box html |
Css :: css transform size |
Css :: css font |
Css :: box model properties |
Css :: how to make text transparent with stroke in css |
Css :: center css |
Css :: how to make background image responsive in css |
Css :: how to add a vertical line in html |