user3754674
user3754674

Reputation: 125

Drop Down CSS is not working

This is my code Link

Label {
    float: left;
    width: 150px;
    text-align: right;
    padding-right: 15px;
    margin-top: 15px;
    clear: left;      
}

input, textarea{
    margin-top: 15px;
}

#submit{
    margin-left: 150px;
    padding: 15px;
}   

CSS is working fine on textboxes but dropdown boxes are not aligned properly. Can anyone tell me what i am doing wrong?

Upvotes: 0

Views: 45

Answers (3)

Weafs.py
Weafs.py

Reputation: 22992

Add margin-top: 10px to select:

Demo

input:not(:last-child), textarea, select {
    width: 200px;
}
select {
    margin-top: 10px;
    width: 210px;
}

Upvotes: 0

Nilesh Thakkar
Nilesh Thakkar

Reputation: 1459

Just add select in your class

input, textarea, select{
    margin-top: 15px;}

Upvotes: 1

Rolo
Rolo

Reputation: 3413

You are not including the "select" element in the style.

This will fix it:

input, textarea, select{
margin-top: 15px;}

I have edited your fiddle here.

Upvotes: 1

Related Questions