• Resolved viitoria

    (@viitoria)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Its done via CSS, look up resources on stylinging form elements, they should show you how to do most of it.

    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

    Thread Starter viitoria

    (@viitoria)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing Attributes of Active Input Boxes’ is closed to new replies.