AmitDiwan has Published 11365 Articles

Declaring a Fallback Color in CSS

AmitDiwan

AmitDiwan

Updated on 01-Nov-2023 14:04:05

4K+ Views

The Fallback color is used to specify the color for a situation when the browser doesn’t support RGBA colors. Some browsers that don’t support fallback colors are Opera. Specify a solid color before a RGBA color so the solid color can still work if the browser doesn’t support the RGBA ... Read More

Custom Radio Buttons with CSS appearance Property

AmitDiwan

AmitDiwan

Updated on 01-Nov-2023 14:01:18

847 Views

We use the appearance property to style an element according to the platform-native style of the user’s operating system. Syntax The syntax of CSS appearance property is as follows − Selector { appearance: /*value*/; -webkit-appearance: /*value*/; /*for Safari and Chrome */ ... Read More

Custom Checkbox with CSS appearance Property

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 14:16:58

2K+ Views

We use the appearance property to style an element according to the platform-native style of the user’s operating system. The custom checkbox looks different from the default checkbox, and after selecting it the appearance will change. Syntax The syntax of CSS appearance property is as follows − Selector { ... Read More

CSS3 Transparency and Gradients

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 12:03:12

3K+ Views

Linear gradients are used to arrange two or more colors in linear formats like top to bottom. To add transparency, use the RGBA() function and define the color stops. At least two color stops should be mentioned. Let us first see the syntax. Syntax The following is the syntax to ... Read More

CSS3 Transition Shorthand Property

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 11:59:26

379 Views

The transition shorthand property allows us to specify transition-property, transition-duration, transition-timing function and transition-delay as values to transition property in one line − transition-duration − Specifies how many seconds or milliseconds a transition effect takes to complete transition-property − The name of the property the effect is on transition-timing ... Read More

CSS3 RGBA, HSL and HSLA Color Values

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 11:56:24

159 Views

CSS3 has support for RGBA, HSL, HSLA, and other color values. Additionally, more than 100 color names are also provided. CSS3 RGBA The CSS3 RGBA color value is for Red, Green, Blue and Alpha. The alpha is the color opacity i.e., a number between 0.0 and 1.0. Here, 1.0 would ... Read More

CSS3 Flexible Box Layouts

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 11:55:07

136 Views

CSS3 provides a layout mode Flexible Box, commonly called as Flexbox. Flexbox (flexible box) is a layout mode of CSS3. Using this mode, you can easily create layouts for complex applications and web pages. It includes the container, flex items, etc. The container has the following properties − flex-direction ... Read More

CSS Updates - New Properties for Styling Text Decorations & Underlines

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 11:45:26

101 Views

With the introduction of the following text-decoration properties, we can now style text in more ways than before. The text-decoration is the shorthand for text-decoration-thickness, text-decoration-color, text-decoration-line and text-decoration-style. text-decoration-skip, text-decoration-skip-ink, text-decoration, text-underline-offset and text-underline-position need to be specified explicitly. Syntax The syntax of CSS text-decoration is as follows − ... Read More

CSS Transparency Using RGBA

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 11:42:46

1K+ Views

Use the RGBA() values for CSS transparency. Set the alpha channel parameter to specify the opacity for color − .transparent { background-color: rgba(0, 0, 255, 0.582); } RGBA color value includes the rgba(red, green, blue,  alpha). Here, the alpha is to be set for transparency i.e. ... Read More

CSS to put icon inside an input element in a form

AmitDiwan

AmitDiwan

Updated on 31-Oct-2023 11:40:21

4K+ Views

To show how to put an icon inside an input element in a form using CSS, use the Font Awesome. For adding the font awesome icons on a web page, include the CDN − Place Icons Inside an Input Element We have used the Font Awesome icons ... Read More

Advertisements