Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design How to select 1 of 2 or more input selectors in CSS? Reply To: How to select 1 of 2 or more input selectors in CSS?

#280547
Shikkediel
Participant

You don’t actually need to add a class, if the attribute values are unique for the page you could also do this:

[name^="first"] {
  height: 30px;
}

[name^="last"] {
  height: 35px;
}

https://www.w3schools.com/css/css_attribute_selectors.asp