How can I make multi-line, vertically and horizontally aligned labels for radio buttons in HTML Forms with CSS?

前端 未结 5 1553
广开言路
广开言路 2021-02-04 12:02

Assuming the following markup:

Radio Buttons
5条回答
  •  被撕碎了的回忆
    2021-02-04 12:41

    I believe this does it all. You didn't mention that it has to validate, however, so I used the inline-block (-moz-inline-box) display. One of my favorites, actually.

    Here's a working copy

    Tested in Safari 3, FireFox 3, and IE7.

        
    

提交回复
热议问题