WordPress.org

Ready to get started?Download WordPress

Forums

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

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

  4. viitoria
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.