-2

How can add input properties to select also? Something wrong with this syntax.

.nestedContainerForContactForm {
    div {
        input {
            width: 100%;
        }
        &select {
            outline: none;
            -webkit-appearance: menulist-button;
        }
    }
}
jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
János
  • 32,867
  • 38
  • 193
  • 353

1 Answers1

0

The most efficient way to write it would be like this:

.nestedContainerForContactForm {
  div {
    input,
    select {
      width: 100%;
    }
    select {
      outline: none;
      -webkit-appearance: menulist-button;
    }
  }
}
Sean
  • 6,873
  • 4
  • 21
  • 46