[resolved] Changing Attributes of Active Input Boxes (4 posts)

  1. viitoria
    Posted 10 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.

  2. masquerade
    Posted 10 years ago #

    Its done via CSS, look up resources on stylinging form elements, they should show you how to do most of it.

  3. TreoRenegade
    Posted 10 years ago #

    example from my style.css:
    input, textarea {
    border: 1px solid #A1A19F;
    margin: 1px 2px;
    -moz-border-radius: 4px;
    background-color: #FFFFCC;
    color: #000000;

  4. viitoria
    Posted 10 years ago #

    I've solved my problem with the :focus attribute.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.