No replies
remmarg
remmarg's picture
Offline
newbie
Last seen: 18 weeks 2 days ago
Timezone: GMT-5
Joined: 2020-03-26
Posts: 2
Points: 4

I am using an asp:RadioButtonList. I want to format Labels based on there content.
I can easily change the format of the entire list with these statements
.RadioButtonList
{
width: 30px;
Height: 30px;
margin-top: 19px;

}

}
.RadioButtonList:first-child {
color: red;
font-size: 130%;
}
but to look at the value or the text in the

I can’t seem to figure out how to use DataTextField or the DataValueField.
The data text field is the field where I show my description of the link so I thought I would precede any description with a ~ and use that to turn it bold
For example the label might be “Printers” but to make it bold I would call it “~Printers~”
Or I could possible use the Data Value Field which I am currently entering the index
For example “1” I could possibly change it to “~”.

Someone suggested
a:not([href]) {
font-weight: bold;
}

But I don't have Href in any of the records.

If I could do
.radiobutonList :not(~) {
font-weight: normal;
}
but that doesn't work.

AttachmentSize
Annotation 2020-03-26 102158.png353.01 KB