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

How to use css grid-columns property

silencement
Release: 2019-06-05 14:37:32
Original
2568 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template