Ankith Reddy

Ankith Reddy

730 Articles Published

Articles by Ankith Reddy

Page 17 of 73

Style the document's root element with CSS

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 115 Views

To style document’s root element, use the CSS: root selector.ExampleYou can try to run the following code to implement the: root Selector                    :root {             background: blue;             color: white;          }                     Heading       This is demo text.    

Read More

Create a transparent box with CSS

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 872 Views

To create a transparent box with CSS, you can try to run the following codeExample                    div {             background-color: #808000;             padding: 20px;          }          div.myopacity {             opacity: 0.4;             filter: alpha(opacity=80);          }                     Heading       Check trensparency in the below box:                opacity 0.4                      opacity 1          

Read More

Use CSS max-width property for responsive image

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 388 Views

You can try to run the following code to implement the max-width property for the responsive imageExample                          img {             max-width: 100%;             height: auto;          }                     To check the effect, you need to resize the browser.          

Read More

Animate CSS word-spacing property

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 163 Views

To implement animation on the word-spacing property with CSS, you can try to run the following code −Example                    div {             border: 2px solid blue;             background: orange;             animation: myanim 3s infinite;          }          @keyframes myanim {             50% {                word-spacing: 30px;             }          } ...

Read More

Stacked-to-horizontal Bootstrap Grid

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 446 Views

The following is an example showing stacked-to-horizontal Bootstrap Grid −Example           Bootstrap Example                                          Heading One                                      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do                eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut                enim ad minim ...

Read More

Usage of CSS grid-gap property

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 118 Views

Set gap between Grid rows and columns with CSS. You can try to run the following code to implement the grid-gap property.Example                    .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          

Read More

Usage of Bootstrap previous class to left align the links

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 133 Views

Use the .previous class in Bootstrap to left align the links. You can try to run the following code to implement the .previous class −Example           Bootstrap Example                                 Answers                             ← Older             Newer →              

Read More

Nesting Columns in Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 2K+ Views

To nest your content with the default grid, add a new .row and set of .col-md-* columns within an existing .col-md-* column. You can try to run the following code to learn how to implement nesting columns in Bootstrap −Example           Bootstrap Example                                          Heading                                      Heading                This is demo text.                                        Heading                This is demo text.                                                        This is box 1.                                                          This is box 2.                                                                                          This is box 3.                                                          This is box 4.                                                                  

Read More

With CSS set the element to retain the style values that is set by the first keyframe

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 182 Views

To set the elements to retain the style values set by the last keyframe, use the animation-fill-mode property with the backwards value.Example                    div {             width: 150px;             height: 200px;             position: relative;             background: red;             animation-name: myanim;             animation-duration: 2s;             animation-fill-mode: backwards;          }          @keyframes myanim {             from {left: 0px; background-color: green;}             to {left: 200px; background-color: blue;}          }                        

Read More

Bootstrap class to emphasize text

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 1K+ Views

HTML's default emphasis tags such as sets text at 85% the size of the parent, emphasizes a text with heavier font-weight, and emphasizes a text in italics.You can try to run the following code to an emphasis on text −Example           Bootstrap emphasis tags                                       This content is within tag       This content is within tag       This content is within tag and is rendered as italics       Left aligned text.       Center aligned text.       Right aligned text.       This content is muted       This content carries a primary class       This content carries a danger class    

Read More
Showing 161–170 of 730 articles
« Prev 1 15 16 17 18 19 73 Next »
Advertisements