viitoria
Member
Posted 7 years ago #
I noticed that the developers of WordPress are very fond of making the input box that the user clicks on/types into have different boder colors and/or background colors. (Exanple: post new thread form, WordPress Announcemts subscritption at bottom of page, wp-admni, etc.)
Can someone explain to me how this is done? I think it would be a neat feature to implement into any site. Thanks in advance.
Its done via CSS, look up resources on stylinging form elements, they should show you how to do most of it.
TreoRenegade
Member
Posted 7 years ago #
example from my style.css:
code
input, textarea {
border: 1px solid #A1A19F;
margin: 1px 2px;
-moz-border-radius: 4px;
background-color: #FFFFCC;
color: #000000;
}
/code
viitoria
Member
Posted 7 years ago #
I've solved my problem with the :focus attribute.