Varma has Published 54 Articles

Set the coordinates of the area in an image map in HTML?

varma

varma

Updated on 22-Nov-2023 04:32:49

1K+ Views

To set the coordinates of the area in an image map, Use the cords attribute in HTML to set the coordinates of the area in an image map in HTML.ExampleYou can try to run the following code to implement the cords attribute −           HTML coords attribute                                        

Set the flex items horizontally with CSS

varma

varma

Updated on 06-Jul-2020 11:13:41

457 Views

Use the flex-direction property with row value to set the flex-items horizontally.ExampleYou can try to run the following code to implement the row value −Live Demo                    .mycontainer {             display: flex;           ... Read More

Role of CSS position: sticky;

varma

varma

Updated on 01-Jul-2020 11:05:30

291 Views

To create a sticky navbar, use the position: sticky; property. You can try to run the following code to create a sticky navbar, ExampleLive Demo                    ul {             list-style-type: none;         ... Read More

Role of CSS :visited Selector

varma

varma

Updated on 01-Jul-2020 10:49:20

239 Views

Use the CSS : visited selector to style all visited links.ExampleYou can try to run the following code to implement the :visited selector:Live demo                    a:link, a:visited {             background-color: white;           ... Read More

Role of CSS :hover Selector

varma

varma

Updated on 30-Jun-2020 07:46:59

354 Views

Use the CSS :hover selector to style links on mouse over with CSS. You can try to run the following code to implement the :hover selector −ExampleLive Demo                    a:hover {             background-color: orange;          }                     Qries       Keep the mouse cursor on the above link and see the effect.    

CSS3 Linear gradients

varma

varma

Updated on 29-Jun-2020 10:09:50

178 Views

Linear gradients are used to arrange two or more colors in linear formats like top to bottom.ExampleYou can try to run the following code to implement linear gradients in CSS3 −Live Demo                    #grad1 {             ... Read More

Animate CSS column-rule-color property

varma

varma

Updated on 25-Jun-2020 14:11:02

262 Views

To implement animation on the column-rule-color property with CSS, you can try to run the following code:ExampleLive Demo                    div {             width: 600px;             height: 300px;       ... Read More

Set whether the text of the element can be selected or not with CSS

varma

varma

Updated on 25-Jun-2020 13:16:59

150 Views

Use the CSS user-select property to set whether the text of the element can be selected or not with CSS:ExampleLive Demo                    div {             user-select: none;          }                     This is demo heading       This is demo text. You won't be able to select it.    

HTML5/CSS align list-items depending on other columns mutual height

varma

varma

Updated on 24-Jun-2020 13:54:45

235 Views

Align list-item with the help of flex. Flex will make columns flexible according to content. The wrapper will layout columns in a row..wrap{    display : flex }// This will help wrapper to become flexible .wrap.col{    flex: 1 0 33%; }Flex is basically a property which helps in making ... Read More

Selects all elements with class="mydemo" with CSS

varma

varma

Updated on 24-Jun-2020 05:50:55

182 Views

To select all elements with class=”mydemo”, you can try to run the following code. Use the .class CSS selector to achieve this,ExampleLive Demo                    .demo {             border: 2px dashed orange;          }                     Heading 1       Heading 1       Heading 2    

Advertisements