Found 1594 Articles for CSS

CSS grid-template-rows property

Nancy Den
Updated on 03-Jul-2020 10:20:26

80 Views

The grid-template-rows property is used to set the number of rows in the Grid.ExampleYou can try to run the following code to implement the grid-template-rows property −Live Demo                    .container {             display: grid;             background-color: blue;             grid-template-rows: 70px 190px;             padding: 20px;             grid-gap: 20px;          }          .container > div {             background-color: orange;             border: 2px solid gray;             padding: 35px;             font-size: 30px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

Shorthand property to set columns with CSS

Daniol Thomas
Updated on 24-Jun-2020 14:05:09

159 Views

Use the columns property to set columns with CSS. You can try to run the following code to implement the columns property:ExampleLive Demo                    .demo {             column-rule-color: gray;             columns: 100px 4;             column-rule-style: dashed;          }                              This is demo text. This is demo text. This is demo text. This is demo text.         ... Read More

Specify width for the columns with CSS

Krantik Chavan
Updated on 24-Jun-2020 13:53:01

113 Views

Use the column-width property to specify the width of the columns. You can try to run the following code to implement the column-width property −ExampleLive Demo                    .demo {             column-count: 4;             column-rule-color: gray;             column-rule-style: dashed;             column-width: 100px;          }                              This is demo text. This is demo text. ... Read More

Set how many columns an element should span across with CSS

Smita Kapse
Updated on 24-Jun-2020 13:52:02

170 Views

To set how many columns an element should span, use the column-span property. You can try to run the following code to implement the column-span property:ExampleLive Demo                    .demo {             column-count: 4;             column-rule-color: maroon;             column-rule-style: dashed;          }          h1 {             column-span: all;          }                     ... Read More

How to position text to bottom left on an image with CSS

George John
Updated on 24-Jun-2020 13:44:55

2K+ Views

To position text to bottom left, use the bottom and left property. You can try to run the following code to position text to bottom left on an imageExampleLive Demo                    .box {             position: relative;          }          img {             width: 100%;             height: auto;             opacity: 0.6;          }          .direction {             position: absolute;             bottom: 10px;             left: 19px;             font-size: 13px;          }                     Heading One       Below image has text in the bottom left:                          Bottom Left Corner          

Create a disabled look of a button with CSS

Nitya Raut
Updated on 03-Jul-2020 10:24:23

404 Views

To create a disabled button look, use the CSS opacity property.ExampleYou can try to run the following code to create a disabled look of a button −Live Demo                    .btn1 {             color: black;             text-align: center;             font-size: 15px;          }          .btn2 {             color: black;             text-align: center;             font-size: 15px;             opacity: 0.5;          }                     Result       Click below for result:       Enabled       Disabled    

Create a Vertical Button Group with CSS

Chandu yadav
Updated on 24-Jun-2020 13:37:30

1K+ Views

You can try to run the following code to create a vertical button groupExampleLive Demo                    .mybtn .button {             background-color: orange;             border: 1px solid green;             width: 120px;             color: white;             font-size: 14px;             padding: 10px;             text-align: center;             text-decoration: none;             display: block;          }                              Result          Result          Result          Result          

Set the color of the rule between columns with CSS

Vrundesha Joshi
Updated on 24-Jun-2020 13:25:20

133 Views

To set the color between columns, use the column-rule-color property. You can try to run the following code to implement the column-rule-color property.With that, we will also set the style of the column rule:ExampleLive Demo                    .demo {             column-count: 4;             column-gap: 50px;             column-rule-color: orange;             column-rule-style: dashed;          }                              This ... Read More

Shorthand property for setting all the column-rule-* properties

Ankith Reddy
Updated on 24-Jun-2020 13:10:49

123 Views

The shorthand property for column rule is column-rule property. You can try to run the following code to implement the column-rule propertyExampleLive Demo                    .demo {             column-count: 4;             column-gap: 50px;             column-rule: 2px dotted orange;          }                              This is demo text. This is demo text. This is demo text.          This ... Read More

Specify the gap between the columns with CSS

Nishtha Thakur
Updated on 24-Jun-2020 11:50:27

162 Views

Use the column-gap property to set the gap between the columns. You can try to run the following code to implement the column-gap property, with value 50px:ExampleLive Demo                    .demo {             column-count: 4;             column-gap: 50px;          }                              This is demo text. This is demo text. This is demo text. This is demo text.          This is ... Read More

Advertisements