I have CSS code like this
div ul li input{ width:70%}
What if I want this style to apply only to input elements of type = text ?
Use attribute selector
div ul li input[type=text] { width: 70%; }
div ul li input[type=text] { width:70% }
Source: https://habr.com/ru/post/1380417/More articles:millisecond javascript countdown - javascriptHow does one project load tests for a website? - performance-testingLinux Power Management Notifications - c ++SQLite Interop DLL missing method - Windows Mobile CF - c #UI Automation Command Line Configures Which Simulator For Universal App - iosHow can I evaluate the result of a logical expression in a string format at runtime in C #? - c #How can I reference two stylesheets using ASP.Net MVC 3? - cssReplication of cascading dropdowns when updating / reverse navigation with autocomplete - javascriptCan Scala apply multiple implicit conversions in a single expression? - scalaHow can I create my own form or page in an installer based on the Inno installation? - inno-setupAll Articles