Found 1594 Articles for CSS

Usage of CSS grid property

George John
Updated on 04-Jul-2020 06:43:52

159 Views

Set the following properties with the grid property: grid-template-rows, grid-template-columns, grid-template-areas, grid-auto-rows, grid-auto-columns, and grid-auto-flow property.ExampleYou can try to run the following code to implement the CSS grid propertyLive Demo                    .container {             display: grid;             grid: 100px / auto auto;             grid-gap: 10px;             background-color: red;             padding: 10px;          }          .container>div {             background-color: yellow;             text-align: center;             padding:10px 0;             font-size: 20px;          }                              1          2          3          4          5          6          

CSS order property

Lakshmi Srinivas
Updated on 25-Jun-2020 07:23:28

102 Views

Use the order property to set the order of the flex itemsYou can try to run the following code to implement the CSS order property −ExampleLive Demo                    .mycontainer {             display: flex;             background-color: orange;             align-content: space-between;             height: 150px;             width: 600px;             flex-wrap: wrap;          }          .mycontainer > div {             background-color: white;             text-align: center;             line-height: 40px;             font-size: 25px;             width: 100px;             margin: 5px;          }                     Quiz                  Q1          Q2          Q3          Q4          Q5          Q6          Q7          Q8          

Perform Animation on CSS font-weight property

Chandu yadav
Updated on 25-Jun-2020 07:24:53

503 Views

To implement animation on font-weight property with CSS, you can try to run the following codeExampleLive Demo                    p {             border: 2px solid black;             width: 400px;             height: 100px;             animation: myanim 5s infinite;          }          @keyframes myanim {             70% {                font-weight: bold;             }          }                     This is demo text    

Animate box-shadow CSS property

karthikeya Boyini
Updated on 25-Jun-2020 07:21:46

1K+ Views

To implement animation on box-shadow property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 200px;             height: 300px;             background: yellow;             border: 10px solid red;             animation: myanim 3s infinite;             bottom: 30px;             position: absolute;          }          @keyframes myanim {             20% {                bottom: 100px;                box-shadow: 30px 45px 70px orange;             }          }                     Performing Animation on box-shadow          

Perform Animation on CSS clip property

Arjun Thakur
Updated on 25-Jun-2020 07:22:35

155 Views

To implement animation on clip property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 200px;             height: 300px;             background: yellow;             border: 10px solid red;             animation: myanim 3s infinite;             bottom: 30px;             position: absolute;             clip: rect(0,100px,50px,0);          }          @keyframes myanim {             20% {                bottom: 100px;                clip: rect(0,150px,40px,0);             }          }                     Performing Animation on clip property          

CSS Grid Lines

Yaswanth Varma
Updated on 08-Jan-2024 14:56:50

1K+ Views

A strong layout framework for web design is offered by CSS Grid Lines, which give accurate control over the arrangement and alignment of elements. These grid lines, which include both rows and columns, provide an organized framework that makes it easier to design complex and flexible layouts. Developers may easily organize content and adjust its size and orientation for different screens by using predefined templates. CSS Grid Lines promote more maintainable code by increasing flexibility and removing the need for complex placement hacks. This adaptable tool allows designers to create aesthetically pleasing and dynamic interfaces, completely changing the way web ... Read More

Define the height of each row in CSS Grid Container

George John
Updated on 04-Jul-2020 06:35:02

149 Views

Use the grid-template-rows property to define the number of rows in CSS Grid Layout.ExampleYou can try to run the following code to set a number of rows.Live Demo                    .container {             display: grid;             background-color: gray;             grid-template-rows: 120px 90px 100px;             padding: 20px;             grid-gap: 20px;          }          .container > div {             background-color: yellow;             border: 2px solid gray;             padding: 35px;             font-size: 30px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

Role of CSS justify-content property center value

Rishi Rathor
Updated on 04-Jul-2020 06:41:35

220 Views

Use the justify-content property with value center to align the flex-items to the center.ExampleYou can try to run the following code to implement the center value −Live Demo                    .mycontainer {             display: flex;             background-color: red;             justify-content: center;          }          .mycontainer > div {             background-color: orange;             text-align: center;             line-height: 60px;             font-size: 30px;             width: 100px;             margin: 5px;          }                     Quiz                Q1          Q2          Q3          Q4          

Usage of CSS grid-gap property

Ankith Reddy
Updated on 25-Jun-2020 07:14:04

109 Views

Set gap between Grid rows and columns with CSS. You can try to run the following code to implement the grid-gap property.ExampleLive Demo                    .container {             display: grid;             background-color: green;             grid-template-columns: auto auto;             padding: 20px;             grid-gap: 20px 20px;          }          .ele {             background-color: orange;             border: 2px solid gray;             padding: 35px;             font-size: 30px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

Define the width of each column in CSS Grid Layout

Nancy Den
Updated on 04-Jul-2020 06:38:28

555 Views

To set the width of each column in Grid Layout, use the grid-template-columns property.ExampleYou can try to run the following code to implement it −Live Demo                    .container {             display: grid;             background-color: gray;             grid-template-columns: 120px 80px 50px;             padding: 20px;             grid-gap: 20px;          }          .container > div {             background-color: yellow;             border: 2px solid gray;             padding: 35px;             font-size: 30px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

Advertisements