Home  >  Article  >  Web Front-end  >  How to use css grid-columns property

How to use css grid-columns property

silencement
silencementOriginal
2019-05-28 09:27:182466browse

How to use css grid-columns property

css grid-columns attribute definition and usage

In css, the grid-columns attribute is used to set each column in the grid width, using a grid system can be of tremendous value to print designers. The same changes are now being applied to online content. Grid properties provide the ability to adjust the size and position of titles, text, and images in a scalable grid.

css grid-columns attribute is a new attribute in CSS3. Currently, mainstream browsers do not support this attribute.

css grid-columns attribute syntax format

css syntax: grid-columns: length|%|none|inherit;

JavaScript syntax: object .style.gridColumns="50% * * 200px";

css grid-columns attribute value description

length: Reference to the grid containing blocks

%: Reference to the width of the containing block

none: None

inherit: Inherit the attribute value of this attribute from the parent element

The above is the detailed content of How to use css grid-columns property. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn