Topic: Input colors
Nikola Zoric pro asked 8 years ago
Josip Tomašev pro premium priority answered 8 years ago
input[type=date]:focus:not([readonly]), input[type=datetime-local]:focus:not([readonly]), input[type=email]:focus:not([readonly]), input[type=number]:focus:not([readonly]), input[type=password]:focus:not([readonly]), input[type=search-md]:focus:not([readonly]), input[type=search]:focus:not([readonly]), input[type=tel]:focus:not([readonly]), input[type=text]:focus:not([readonly]), input[type=time]:focus:not([readonly]), input[type=url]:focus:not([readonly]), textarea.md-textarea:focus:not([readonly]) {
border-bottom: 1px solid #4285F4;
box-shadow: 0 1px 0 0 #4285F4;
}
Put this code in your CSS, and just change border-bottom color in what you want
Chris Sweeney pro premium answered 8 years ago
Marta Szymanska staff pro premium answered 8 years ago
Chris Sweeney pro premium answered 8 years ago
<li class="nav-item hidden-sm-down">
<a href="../clublogin.php" class="nav-link"><i class="fa fa-sign-in" title="members login"></i> Members</a>
</li>
</ul>
<form class="navbar-form hidden-sm-down" method="post" action="pages_results.php?ClubID=<?php echo($rsMenu->getColumnVal("ClubID")); ?>">
<input type="text" placeholder="Search" name="fmSearch" id="fmSearch"> <input name="ClubID" type="hidden" id="ClubID" value="<?php echo($rsMenu->getColumnVal("ClubID")); ?>"></form>
Cheers
Chris Marta Szymanska staff pro premium answered 8 years ago
.form-control {
color: #fff;
}
.form-control:focus {
color: #fff;
}
Best,
Marta Chris Sweeney pro premium answered 8 years ago
Chris Sweeney pro premium answered 8 years ago
Marta Szymanska staff pro premium answered 7 years ago
Chris Sweeney pro premium answered 7 years ago
ABELARDOLG pro answered 6 years ago
Hi, How could I set the color of the "placeholder" text at input items?
Thanks in advance!
Brs.
Bartłomiej Malanowski staff pro premium commented 6 years ago
Just use the ::placeholder
pseudo-element as described here: https://developer.mozilla.org/en-US/docs/Web/CSS/::placeholder
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No