CSS grid-auto-columns Property

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





googletag.cmd.push(function() googletag.display('div-gpt-ad-1422003450156-2'); );




CSS grid-auto-columns Property



Previous
Complete CSS Reference
Next



Example


Set a default size for the columns in a grid:



.grid-container
  display: grid;
  grid-auto-columns: 50px;

Try it Yourself »


Definition and Usage


The grid-auto-columns property sets a size for the columns in a grid container.


This property affects only columns with the size not set.













Default value: auto
Inherited: no
Animatable: yes. Read about animatable
Try it
Version: CSS Grid Layout Module Level 1
JavaScript syntax: object.style.gridAutoColumns="120px"
Try it


Browser Support


The numbers in the table specify the first browser version that fully supports the property.















Property
grid-auto-columns 57 16 52 10 44







googletag.cmd.push(function() googletag.display('div-gpt-ad-1493883843099-0'); );





CSS Syntax



grid-auto-columns: auto|max-content|min-content|length;


Property Values



















Value Description Play it
auto Default value. The size of the columns is determined by the size of the
container
Play it »
max-content Sets the size of each column to depend on the largest item in the column Play it »
min-content Sets the size of each column to depend on the largest item in the column Play it »
length Sets the size of the columns, by using a legal length value. Read about length units
Play it »


Related Pages


CSS Tutorial: CSS Grid Layout


CSS Reference: The grid-auto-rows property




Previous
Complete CSS Reference
Next

Popular posts from this blog

WWE Night of Champions

Poznań

Kaliningrad