How to apply style to autocomplete textbox

How to apply style to autocomplete text box.
Jquery provided style to autocomplete text box but if you want to modify style as per your requirement then just add below.
Add style block on the page where autocomplete text is placed

<style>
        .ui-corner-all
        {
            -moz-border-radius: 4px 4px 4px 4px;
        }
        .ui-widget-content
        {
            border: 1px solid #848484;
            color: black;
            
        }
        .ui-widget
        {
            font-family: Verdana,Arial,sans-serif;
            font-size: 13px;
        }
        .ui-menu
        {
            display: block;
            float: left;
            list-style: none outside none;
            margin: 0;
            padding: 0px;
        }
        .ui-autocomplete
        {
            cursor: default;
            position: absolute;
        }
        .ui-menu .ui-menu-item
        {
            clear: left;
            float: left;
            margin: 0;
            padding: 0;
            width: 100%;
        }
        .ui-menu .ui-menu-item a
        {
            display: block;
            padding: 2px;
            text-decoration: none;
            cursor: pointer;
            
        }
        .ui-menu .ui-menu-item a:hover
        {
            display: block;
            padding: 2px;
            text-decoration: none;
            color: #4488F6;
            cursor: pointer;
            background-color: #F1F1F1;
        }
        .ui-widget-content a
        {
            color: black;
        }
</style>
Advertisements
This entry was posted in css and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s