Input[Type=Select] Doesn't Work for Me [Duplicate]

Input[Type=Select] Doesn't Work for Me [Duplicate]

Possible Duplicate:
CSS Select Selector

I'm trying to add space on the left of my dropdownlist without success.

Here is what I tried:

.editor-field input[type=select]
{
    margin-left: 250px;
}

Any idea?

2

3 Answers

There is no input[type=select]. You probably meant select, as in

.editor-field select
{
    margin-left: 250px;
}
0

A <select> box isn't an <input type="select" />. It's a <select>;

.editor-field select {
    margin-left: 250px;
}

should work.

4

Your "dropdown list" is surely a <select> element, not an <input type="select" />, which doesn't exist.

Try using .editor-field select instead.

1
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.