开发者

How can I style an ASP.NET Radio List so that the label appears before the input?

开发者 https://www.devze.com 2023-02-04 22:07 出处:网络
I want to style an ASP.NET RadioList so that the list is horiz开发者_Go百科ontally oriented, with two rows, the first of labels, and the second of inputs, for example:

I want to style an ASP.NET RadioList so that the list is horiz开发者_Go百科ontally oriented, with two rows, the first of labels, and the second of inputs, for example:

A B C D

o o o o


Just set the radio list text value to empty (that is "") Right above your radio list create labels that correspond to each radio list button.

Similiar to this question vb.net checkbox label position


Use two lists and style them horizontally in your CSS

The CSS: .answerL { list-style-type: none;

} .answerL { display: block; }

0

精彩评论

暂无评论...
验证码 换一张
取 消