Front End Technology Articles

Page 473 of 652

Role of CSS: disabled Selector

Chandu yadav
Chandu yadav
Updated on 30-Jun-2020 259 Views

Use the CSS :disabled selector to style every disabled element. You can try to run the following code to implement the :disabled selectorExampleLive Demo                    input:enabled {             background: blue;          }          input:disabled {             background: red;          }                              Subject          Student:          Age:          

Read More

CSS Child Selector

Chandu yadav
Chandu yadav
Updated on 30-Jun-2020 446 Views

Use the child selector, if you want to select all elements immediate children of a specified element.div > pExampleYou can try to run the following code to implement CSS Child SelectorLive Demo                    div > p {             background-color: orange;          }                              Para 1 in the div.                    Para 2 in the div.             Para 3 outside the div.     Output

Read More

CSS overflow-x

Chandu yadav
Chandu yadav
Updated on 30-Jun-2020 346 Views

The CSS overflow-x allows you to decide what to do with the left right edges of the content.ExampleYou can try to run the following code to implement the overflow-x propertyLive Demo                    div {             background-color: orange;             width: 250px;             height: 45px;             border: 2px solid blue;             overflow-x: hidden;             overflow-y: scroll;          }                     Heading       Overflow property used here. This is a demo text to show the working of CSS overflow-x and overflow-y.     Output

Read More

Create a link button with borders using CSS

vanithasree
vanithasree
Updated on 30-Jun-2020 3K+ Views

To create a link button with borders, you can try to run the following code −ExampleLive Demo                    a:link, a:visited {             background-color: white;             color: black;             border: 1px solid blue;             padding: 30px 30px;             text-align: center;             text-decoration: none;             display: inline-block;          }          a:hover, a:active {             background-color: red;             color: white;          }                     Demo Link    

Read More

Is it possible to change the HTML content in JavaScript?

vineeth.mariserla
vineeth.mariserla
Updated on 30-Jun-2020 2K+ Views

Yes, it is possible to change the content of the HTML in javascript. Usually HTML content will be in HTML tags such as , , etc. In javascript, we have DOM methods that have an ability to access the HTML tags. Those methods, such as document.getElementById(), document.getElementByTagName(), etc., make use of tags to change the HTML content.Example-1In the following example, the content in the span tag is changed using a javascript DOM method document.getElementById(). Live Demo    Is javaScript is java.     Once the above code is executed, we will get the following on the screen If we click ...

Read More

Overlap Elements with CSS

Arjun Thakur
Arjun Thakur
Updated on 30-Jun-2020 372 Views

To overlap elements, use the CSS z-index property. You can try to run the following code to implement the z-index property and set image behind the textExampleLive Demo                    img {             position: absolute;             left: 0px;             top: 0px;             z-index: -1;          }                           This is demo text.    

Read More

Show the background image only once with CSS

Giri Raju
Giri Raju
Updated on 30-Jun-2020 857 Views

Use the background-repeat property to display the background image only once. You can try to run the following code to implement the background-repeat property −ExampleLive Demo                    body {             background-image: url("https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg");             background-repeat: no-repeat;          }                     Background Image    

Read More

Set Responsive Font Size using CSS

radhakrishna
radhakrishna
Updated on 30-Jun-2020 366 Views

To set the responsive font size, use the ‘viewport width’ and set it to ‘vw’ unit. You can try to run the following code to use ‘vw’ unit −ExampleLive Demo                    h1 {             font-size:8vw;          }                     This is demo heading       This is demo text.    

Read More

Role of CSS :hover Selector

varma
varma
Updated on 30-Jun-2020 357 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.    

Read More

Role of CSS :focus Selector

Chandu yadav
Chandu yadav
Updated on 30-Jun-2020 175 Views

Use the :focus selector to select the element that has focus. You can try to run the following code to implement the :focus selectorExample                    input:focus {             background-color: green;          }                              Subject          Student:          Age:                    

Read More
Showing 4721–4730 of 6,517 articles
« Prev 1 471 472 473 474 475 652 Next »
Advertisements