Front End Technology Articles - Page 638 of 860

Add a color to the shadow with CSS

Daniol Thomas
Updated on 23-Jun-2020 15:44:27

306 Views

To add a color to the shadow, use the box-shadow property and set the color, with the height and width.You can try to run the following code to set the color to shadow:ExampleLive Demo                    h2 {             box-shadow: 10px 10px green;             height: 70px;             background-color: red;          }                     Heading Two       Above heading has shadow.    

Selects all elements with a lang attribute value starting with "en" with CSS

Arjun Thakur
Updated on 23-Jun-2020 15:43:53

231 Views

Use the [attribute|=”value”] selector to select elements with the specified attribute starting with a specified value.You can try to run the following code to implement CSS [attribute|=”value”] Selector,ExampleLive Demo                    [lang| = en] {             border: 5px solid orange;             border-radius: 5px;          }                     Hello       Hei    

How to create fading effect with CSS

radhakrishna
Updated on 23-Jun-2020 15:41:57

398 Views

To create a fading effect with CSS, use the c You can try to run the following code for fading effect:ExampleLive Demo                    #demo {             height: 100px;                background: linear-gradient(to right, rgba(255,50,30,0), rgba(255,50,30,1));             }                           Linear Gradient       Fading Effect    

Style input type reset with CSS

varma
Updated on 23-Jun-2020 15:30:52

3K+ Views

The input type button can be a submit button or reset button. With CSS, we can style any button on a web page.You can try to run the following code to style input type button:ExampleLive Demo                    input[type = submit], input[type = reset] {             background-color: orange;             border: none;             text-decoration: none;             color: white;             padding: 20px 20px;             margin: 20px 20px;             cursor: pointer;          }                     Fill the below form,                Subject                    Student                                        

Add a background color to the form input with CSS

Arjun Thakur
Updated on 23-Jun-2020 15:29:53

8K+ Views

To add background color to the form input, use the background-color property.You can try to run the following code to implement the background color property to formExampleLive Demo                    input[type=text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;             background-color: gray;          }                     Fill the below form,                Subject                    Student                    

Style select options with CSS

Nishtha Thakur
Updated on 23-Jun-2020 15:28:35

2K+ Views

To style the options in , you can try to run the following code,ExampleLive Demo                    select {             width: 100%;             padding: 10px 15px;             border: 1px dashed blue;             border-radius: 4px;             background-color: orange;          }                     Learn,                             Java             Ruby             Oracle             Tableau                    

Set Bordered Form Inputs with CSS

Chandu yadav
Updated on 23-Jun-2020 15:27:59

175 Views

To set border to form inputs, use the CSS border property.You can try to run the following code to add borderExampleLive Demo                    input[type = text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;             border: 3px inset orange;          }                     Fill the below form,                Subject                    Student                    

Style Input Fields of a form with CSS

Smita Kapse
Updated on 23-Jun-2020 15:25:45

370 Views

To style the input field of a form, you can try to run the following code. Style the :ExampleLive Demo                    input {             width: 100%;          }                     Fill the below form,                Subject                    Student                    

Add space inside a form’s text field with CSS

Prabhas
Updated on 23-Jun-2020 15:26:31

10K+ Views

To add space inside a form’s text field, use the CSS padding property.You can try to run the following code to achieve this:ExampleLive Demo                    input[type = text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;          }                     Fill the below form,                Subject                    Student                    

Selects all elements with rel=”nofollow” with CSS

usharani
Updated on 23-Jun-2020 15:25:05

343 Views

Use the [attribute = ”value”] selector to select elements with a specified attribute and value.You can try to run the following code to implement the CSS [attribute="value"] Selector. Here, we have considered the attribute as rel,ExampleLive Demo                    a[rel = nofollow] {             border: 3px solid blue;          }                     Uber's Business Model       Share          Market    

Advertisements