Custom properties (--*): CSS variables

Custom properties (--*): CSS variables


CSS Layout

CSS Flex+

A very basic flex layout with 6 div box.

1
2
3
4
5
6

A guide to Flexbox - css-tricks.com


yoksel.github.io/flex-cheatsheet


Video Tutorial Bangla -Flexbox Part1


Learn CSS FLEXBOX in 20 Minutes



CSS Grid+

developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Realizing_common_layouts_using_grids


web.dev/learn/css/grid/


codepen.io/abbeyjfitzgerald/pen/qjZNpz


codepen.io/mozilladevelopers/pen/Xejyed


codepen.io/lcolsant/pen/yLypWaB


yoksel.github.io/grid-cheatsheet/


chriskonings.com/side/grid-cheat-sheet/


w3schools.com/css/css_grid.asp


CSS Grid Layout - MDN


CSS Grid Layout

gridbyexample.com/learn/


learncssgrid.com


https://css-tricks.com/snippets/css/complete-guide-grid/


grid-template-columns - MDN


https://grid.malven.co/ - Grid cheatsheet


developer.mozilla.org/en-US/docs/Web/CSS/minmax


tympanus.net/codrops/css_reference/grid


learn-the-web.algonquindesign.ca/topics/css-grid-cheat-sheet/


Learn CSS Grid in 20 Minutes

Video Tuts by codeSTACKr - Aug 2, 2019


CSS Grid Layout - Rachel Andrew | February 2017

Video Tuts by Frontend NE - Feb 16, 207


Responsive CSS Grid with NO MEDIA QUERIES!


Video Tuts by DesignCourse - May 13, 2019


The Magic of CSS Grid AUTO-FIT vs AUTO-FILL


Video Tuts by DesignCourse - Feb 27, 2020


Responsive CSS Grid Tutorial

Video Tuts by Angela Delise - Apr 1, 2020


CSS Grid complete Bangla (বাংলা) Tutorial - যেমন খুশি তেমন layout বানাও

Video Tuts by Learn With Sumit- Mar 26, 2021


Create A Dynamic Layout With CSS Grid Using Auto Fit And Minmax

Video Tuts by Coding Tech - Sep 24, 2017




CSS Grid Examples+

grid-item 1
grid-item 2
grid-item 3
grid-item 4
grid-item 5
grid-item 6
grid-item 7
grid-item 8
grid-item 9
grid-item 10
grid-item 11
grid-item 12
display:grid 
display:inline-grid 
display: subgrid;

grid-template-columns:1fr 1fr 1fr; 
grid-template-columns: auto auto auto;
grid-template-columns: auto 1fr auto;
grid-template-columns: 1fr auto 50px;
grid-template-columns: 200px auto 50px;
grid-template-columns: repeat(4, 1fr); /* this is the same as grid-template-columns: 1fr 1fr 1fr 1fr; */

grid-template-rows:1fr 1fr 1fr 1fr; 
grid-template-rows: repeat(2, 300px); /* this is the same as grid-template-rows: 300px 300px; */
grid-template-rows: auto auto auto;

grid-auto-rows /* Use the grid-auto-rows property to set a default size (height) for all rows. */
grid-auto-columns /* Use the grid-auto-columns property to set a default size (width) for all columns. */

grid-area: 1/2/3/4  ( grid-row-start, grid-column-start, grid-row-end, grid-column-end)

grid-column-gap:10px;
grid-row-gap:10px;
grid-gap: 10px;
grid-gap: 10px 20px;

// Grid Lines
// The lines between columns are called column lines.
// The lines between rows are called row lines.

grid-row-start: 1;
grid-row-end: 5;

grid-column-start: 1;
grid-column-end: 3;

// For grid column item
grid-column: 2/4 
grid-row: 1/3
grid-column: 1 / span 3;


grid-template-areas 

// The justify-content property is used to align the whole grid inside the container.
// Note: The grid's total width has to be less than the container's width for the justify-content property to have any effect.
// w3schools.com/css/css_grid_container.asp
justify-content: space-evenly
justify-content: space-between;
justify-content: space-around;
justify-content: center;
justify-content: end;
justify-content: start;

// The align-content property is used to vertically align the whole grid inside the container
align-content: center;
align-content: space-evenly;
align-content: space-around;
justify-content: space-between;
align-content: start;
align-content: end;

It is possible to name the grid lines so you don’t have to count which grid line you need to reference. These names can be declared as optional parameters in the grid-template-columns and grid-template-rows property.

.grid-container {
  display: grid;
  grid-template-columns: 150px [col-foo] 150px 150px [col-bar];
  grid-template-rows: 150px [row-foo] 150px [row-bar];
}

.item {
  grid-column-start: col-foo;
  grid-column-end: col-bar;
  grid-row-start: row-foo;
  grid-row-end: row-bar;
}
.grid-container {
  display: grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  grid-gap: 10px;
  background-color: #2196F3;
  padding: 10px;
}
.grid-container {
  display: grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr) minmax(70px, 1fr));
  grid-gap: 10px;
  background-color: #2196F3;
  padding: 10px;
}

w3schools.com/css/tryit.asp?filename=trycss_grid_grid-area_named


w3schools.com/css/tryit.asp?filename=trycss_template1_grid


w3schools.com/css/tryit.asp?filename=trycss_template2_grid


codepen.io/antonietta/pen/OezGyG



Tips & Articles +

Auto-Sizing Columns in CSS Grid: `auto-fill` vs `auto-fit`

css-tricks.com/auto-sizing-columns-css-grid-auto-fill-vs-auto-fit/


css-tricks.com/introduction-fr-css-unit/


CSS Grid: Understanding grid-gap and fr vs. auto units

www.rawkblog.com/2018/03/css-grid-understanding-grid-gap-and-fr-vs-auto-units/


css-tricks.com/auto-sizing-columns-css-grid-auto-fill-vs-auto-fit/


tympanus.net/codrops/css_reference/grid/#section_grid-template-columns-rows


css-tricks.com/look-ma-no-media-queries-responsive-layouts-using-css-grid/


min(), max(), and clamp() are CSS magic!

Video Tuts by Kevin Powell - Apr 21, 2020


CSS/Selectors/pseudo-classes/

Article from w3.org


developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes


developer.mozilla.org/en-US/docs/Web/CSS/:target


w3schools.com/css/css_attribute_selectors.asp


w3schools.com/css/css_pseudo_classes.asp




Tailwind CSS +

tailwindcss.com


Just-In-Time: The Next Generation of Tailwind CSS

Video Tuts by Mar 15, 2021 - Tailwind Labs


00: Course Intro – Tailwind CSS: From Zero to Production


Video Tuts by Tailwind Labs - Feb 16, 2021


© 2024 My CSS collection by Mizanur Rahman