AmitDiwan has Published 11365 Articles

Set the color of the text decoration in CSS

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:49:14

123 Views

To set the color of the text decoration, use the text-decoration-color property. To place this color overline, underline, line through, etc, use the text-decoration property. Let us see how to set the color of the text decoration Color the text decoration overline The text is decorated overline and then the ... Read More

writing-mode Property in CSS

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:48:24

100 Views

The writing-mode property is used to set whether lines of text are laid out horizontally or vertically. Let us understand the property with examples. We will begin with the syntax. Syntax The following is the syntax of the writing-mode property − writing-mode: value; The values are − ... Read More

Working with Display Block in CSS

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:45:48

1K+ Views

The CSS Display property with value block renders an element with parent’s full width available, it also forces a line break. An element with display as block renders as a or element. Let us see the syntax with some examples for the display block. Syntax The following is ... Read More

Set areas within the grid layout in CSS

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:44:43

137 Views

To set the areas within the grid layout, use the grid-template-areas Property. With that, first set the display property as grid to create a grid layout. You need to work on the grid-area, grid-gap, and grid-template-areas property. Let us understand them one by one and set areas withing the grid ... Read More

Selecting Sibling Elements with CSS

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:43:13

3K+ Views

To select sibling elements with CSS, we can use the adjacent or the general sibling selectors. Let us understand them one by one with example. Both of them allows selecting sibling elements with HTML and CSS. Adjacent sibling selector Use the adjacent sibling selector (+), if we want to match ... Read More

Selecting Child Elements with CSS

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:41:52

1K+ Views

The CSS child combinator is used to select all child elements of a parent element. The CSS descendant combinator is used to select all descendants of a parent element Child combinator The CSS child combinator is used to select all child elements of a parent element. The syntax of the ... Read More

RGBA Color Values in CSS3

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:40:15

131 Views

The 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 be for full opaque. Here, we can see the difference in opacity created with the Alpha parameter in RGBA. Syntax The following is ... Read More

Revealing Hidden Elements by CSS Animations

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:39:04

746 Views

CSS animations allow us to display hidden elements. The elements can be set hidden using the opacity. Set the opacity to the value 0 and the element will hide. To display it, set the transition property with the opacity and also set the transition duration to make it look like ... Read More

Responsive Web Design with Media Queries in CSS

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:37:09

483 Views

Media Queries is a CSS technique for different style rules for different size devices such as mobiles, desktops, etc. To set the responsiveness, use the Media Queries concept. Let us see how to create responsive column cards on a web page. We will see various examples for responsive web design ... Read More

Reordering Individual Flex Items using CSS3

AmitDiwan

AmitDiwan

Updated on 26-Dec-2023 15:35:30

113 Views

To reorder the individual Flex Items using CSS3, use the order property. Remember, this works only in case of flex items. Let’s say you want to set the 1st flex item as the last, then achieve this using the CSS order property. Set the parent container Set a div container ... Read More

Advertisements