AmitDiwan has Published 11365 Articles

Change Image Opacity on Mouse Over

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:39:30

1K+ Views

Use the opacity property with the :hover selector to change the opacity on mouse-over. The following is the code to change image opacity on mouse over. Change the image Opacity The following is the image we need to change the opacity on mouse over. We have used the element ... Read More

Change Cursor Color with CSS caret-color

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:37:25

718 Views

The cursor can be easily changed in CSS. For that, use the caret-color property. This will allow you to change the color in textarea, input, etc. The following examples illustrate the CSS caret-color property to change the cursor color on a web page. Change the Cursor Color of the ... Read More

Change Bullet Color for Lists with ::marker CSS Selector

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:34:44

933 Views

The ::marker selector is used to select the marker of a list item in CSS. It updates the marker properties on bullets or numbers i.e., unordered or ordered lists. We will use the ::marker selector with the color property to change the bullet color. Syntax The syntax of CSS ::marker ... Read More

Center image using text-align center with CSS

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:31:57

2K+ Views

The text-align center is generally used to center text of an element. However, we can also center an image using the same text-align property. First, let us see how to center align a text, then we will center an image using the text-align. Additionally, we will also align an image ... Read More

Center alignment using the margin property in CSS

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:25:16

2K+ Views

We can center horizontally a block-level element by using the CSS margin property, but CSS width property of that element should be set. The auto value is set for the margin property. Let’s see some examples to center an element using the CSS margin property − Create a Symbol and ... Read More

Building Tooltip using CSS

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:22:30

142 Views

A tooltip is used to set extra information. This is visible on the web page when visitor moves the mouse pointer over an element. The tooltip text can be given directions such as top, bottom, right, and left. Create a Tooltip To create a tooltip, create a Tooltip container and ... Read More

Controlling the Dimensions of Flex Items in CSS

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:19:24

86 Views

To control the dimensions of Flex Items in CSS, use the flex property. Consider flex as the length on flexible items. The flex includes the following properties − flex-grow − A number is set for the flex grow factor i.e., how much the item will grow relative to the ... Read More

Controlling the Visibility of elements Working with CSS

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:12:27

382 Views

CSS visibility property is used to specify a value corresponding to whether the element will be visible or not in the document. Though the element is rendered but if CSS Visibility is set to hidden then it is not made visible. The following are the CSS Visibility values used to ... Read More

Changing the Position of List Markers in CSS

AmitDiwan

AmitDiwan

Updated on 30-Oct-2023 14:03:31

5K+ Views

The CSS list-style-position property is used to set the marker position of list items. The default value for this property is outside which sets the marker outside the list item. It is having the following values − inside − The bullet points are positioned inside the list item outside ... Read More

Block-level Elements and Block Boxes in CSS

AmitDiwan

AmitDiwan

Updated on 27-Oct-2023 14:43:09

1K+ Views

Block-level elements have their CSS display property set to either ‘block’, ‘list-item’, or ‘table’ and these elements force a line break above and below themselves. Block-level boxes are generated by each block-level element which is a part of the positioning scheme as well as contains child boxes. Block container boxes ... Read More

Advertisements