RSS

Custom Select (dropdown) change Arrow

16 May

<label>

    <select>
        <option>Sushi</option>
        <option>Blue cheese with crackers ggjgjgj jgjgjg jgjff</option>
        <option>Steak</option>
        <option>Other</option>
    </select>
</label></p>

CSS

 

 

label.custom-select {
    position: relative;
    display: inline-block;
width:100px;
}

    .custom-select select {
        display: inline-block;
        padding: 4px 3px 3px 5px;
        margin: 0;
        font: inherit;
        outline:none; /* remove focus ring from Webkit */
        line-height: 1.2;
        background: #000;
        color:white;
        border:0;
    width:100px;
    }

    /* Select arrow styling */
    .custom-select:after {
        content: “*”;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        font-size: 60%;
        line-height: 30px;
        padding: 0 7px;
        background: #000;
        color: white;
    }
    
    .no-pointer-events .custom-select:after {
        content: none;
    }
http://www.javascriptkit.com/script/script2/dhtmlcombo.shtml

 

 

Advertisements
 
Leave a comment

Posted by on May 16, 2013 in Uncategorized

 

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

 
%d bloggers like this: