I have CSS code like this
div ul li input{ width:70%}
What to do if I want this style applicable Only to the input elements of type=text ?
CSS can be added to HTML documents in 3 ways: Inline - by using the style attribute inside HTML elements. Internal - by using a <style> element in the <head> section. External - by using a <link> element to link to an external CSS file.
Definition and Usage. The <input type="color"> defines a color picker. The default value is #000000 (black). The value must be in seven-character hexadecimal notation.
Use an attribute selector
div ul li input[type=text] { width: 70%; }
div ul li input[type=text]
{
width:70%
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With