Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Ankith Reddy
Page 17 of 73
Style the document's root element with CSS
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 MoreCreate a transparent box with CSS
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 MoreUse CSS max-width property for responsive image
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 MoreAnimate CSS word-spacing property
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 MoreStacked-to-horizontal Bootstrap Grid
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 MoreUsage of CSS grid-gap property
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 MoreUsage of Bootstrap previous class to left align the links
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 MoreNesting Columns in Bootstrap
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 MoreWith CSS set the element to retain the style values that is set by the first keyframe
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 MoreBootstrap class to emphasize text
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