Search
 
SCRIPT & CODE EXAMPLE
 

CSS

responsive css grid

@supports (display: grid) {
  main { 
    max-width: 10000px;
    margin: 0;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    grid-gap: 1rem;
  }
}
Comment

very responsive grid layout

.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
Comment

css grid responsive

  grid-template-columns: repeat(auto-fill, minmax(value, 1fr));
Comment

Smol Responsive CSS Grid

.smol-css-grid {
  --min: 15ch;
  --gap: 1rem;

  display: grid;
  grid-gap: var(--gap);
  /* min() with 100% prevents overflow
  in extra narrow spaces */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));
}
Comment

PREVIOUS NEXT
Code Example
Css :: install cors 
Css ::  
Css ::  
Css :: tablet screen size css 
Css :: background gradient problem 
Css :: centrer un élément absolute 
Css :: add alpha value to css color variable 
Css :: how to set font max width in css 
Css :: hover button scss 
Css :: how to gain full width of a phone website in html and css 
Css :: div fit content height 
:: css limit text length 
Css ::  
Css ::  
Css :: slickjs height 
Css :: media max width css 
Css :: css hover transition 
Css :: placeholder css 
Css :: text glow 
Css :: why css does not apply when complete url is entered home/index 
Css :: how to put the input box and the label on top of input 
Css :: style scroll bar css 
Css :: vertically center div inside div 
Css ::  
Css :: need short long paragraph css 
Css :: css position sticky 
Css :: css width: 50% 
Css :: css backdrop filter blut 
Css :: how to add text stroke in css 
Css :: text-overflow: ellipsis; 2 line 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =