GRID in html....
Grid in html

GRID in html....

#html #css #grid

GRID in html: -

The CSS Grid Layout Module offers a grid-based layout system, with rows and columns, making it easier to design web pages without having to use floats and positioning.

First of all we have to use parent element and then add child to our basic structure of html. There are number of tags under grid such as: -

gird-template, dispay:grid, grid gaps, grid lines, grid container, align content, grid items, grid row span, grid column span, grid area and many other so let us discuss these: -

1; grid-template: - it is used to tell css about the number of columns you want.

No alt text provided for this image

As you can see in the above picture how to use grid- template:- we can also use grid-template-row in a similar way. But when you run this code you will find outcome in a simple manner without any column, like this: -

No alt text provided for this image

This is just a simple representation why this happens because we didnot use display: grid which a very important property.

No alt text provided for this image


As you can see in the above picture right side is our code as we texted display: grid you can find your output in the form of columns, if you noticed then in the above picture 1,2,3...8 are arranged in columns for more clarification, let's add background color and border to the css.

No alt text provided for this image

Here is our next code and you can see the numbers properly now.

Hope you got this and now we will proceed this further soon. Thank you.

要查看或添加评论,请登录

Ashishdeeep kaur的更多文章

  • Basic HTML code.

    Basic HTML code.

    #html #elements #websitedesigining What is HTML? 1) HTML stands for Hyper Text Markup Language. 2) HTML is the standard…

  • Multitasker:- FPGA D-series.

    Multitasker:- FPGA D-series.

    This new FPGA and SoC family incorporates many new features such as an upgraded hard processor system (HPS), enhanced…

社区洞察

其他会员也浏览了