0

Ss this allow in CSS, if not then how to achieve this criteria. I want to get specific input to be modified for this CSS.

CSS

<style>
input[type=radio name=rbl value=1]{
//something here
}


</style>

HTML

<body>
<input type="radio" name="rbl" value="1" />One // I want this to be modified
<input type="text" name="txt" />

</body>
Mangrio
  • 1,000
  • 19
  • 41
  • 1
    This post already handles this question: http://stackoverflow.com/questions/12340737/css-multiple-attribute-selector – Peter Dec 29 '15 at 10:13

1 Answers1

1

Multiple attribute selector can be done like this:

input[type="radio"][name="rbl"][value="1"]{
  margin-left:100px;
}

Here, the CSS will be applied to input type radio which has name rbl and value 1

Here is a Demo for the same.

Senjuti Mahapatra
  • 2,570
  • 4
  • 27
  • 38