Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 2
How to add color in input tags??
15 ответов
+ 7
input {
background-color: lightblue;
border: darkblue solid 2px;
color: green;
}
+ 5
Lubaina Alifa for some style of your website such as another color, position and more you need ever css. The question is only where you it write. You can implement that in html part of the page or in a extra file.
+ 3
<input type="text" style="color: red; background-color: yellow;">
+ 2
Thank you for your help. I will try this
+ 2
Lubaina Alifa ,
Please show us your attempt here..
https://code.sololearn.com/WK4ntyrH6YK7/?ref=app
Use the style attribute to style the element.
Another way of color the input text: Use the <font> tag. One of its attribute are color, which allows you to color the given text.. But I often using style attribute instead of this.
UPDATE: <font> tag does not work with <input> tag.
+ 2
How TO - Change Placeholder Color
https://www.w3schools.com/howto/howto_css_placeholder.asp
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: red;
opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: red;
}
::-ms-input-placeholder { /* Microsoft Edge */
color: red;
}
+ 1
I want to make this file without using css
+ 1
Lubaina Alifa
Note that If you're having trouble in code, share your code and then describe what error message you're receiving. without watching no one can figure out what's going wrong.
+ 1
I want to color the Login button
+ 1
Lubaina Alifa
Instead of`
<input type = "text" placeholder = Login`
use this correct syntax
`<input type="text" placeholder="Login">`
See this modified code for login button..
https://code.sololearn.com/W1MbJ8f1InFk/?ref=app
+ 1
Lubaina Alifa
"I want to make this file without using css"
That's easy. Just use JS:
https://code.sololearn.com/WK4ntyrH6YK7/?ref=app
But in this situation, CSS is the most convenient way to style your input.
+ 1
You can directly use style attribute in the input tag like below.
<input style="color:red" type="text"/ >
0
I do not no hahah do you now minecraft
0
<input style="color: red;" whatever>