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>
1

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

4 Comments

still same issue, not returning anything
Ok ok done. it was my mistake, I have palced a space before :checked
Thanks for kind quick reply and help
I have also added a fiddle for the same.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.