There are options how to impose this inside the table cell?
Closed due to the fact that it is off topic by participants aleksandr barakin , user300000, Air , 0xdb , user192664 11 Oct '18 at 3:45 .
- Most likely, this question does not correspond to the subject of Stack Overflow in Russian, according to the rules described in the certificate .
- fiveWelcome to Stack Overflow in Russian! This question in the form of a picture should be closed, because it is useless for the knowledge base (the one who has a similar question cannot find this question and answers to it) - aleksandr barakin
|
2 answers
.cell { display: inline-block; text-align: center; } td { text-align: center; } <table border="1"> <tr> <td> <div class="cell"> <input type="radio" checked/><br/> <input type="radio" checked/> <input type="radio" checked/><br/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/><br/> </div><br/> <div class="cell"> <input type="radio" checked/><br/> <input type="radio" checked/> <input type="radio" checked/><br/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/><br/> </div> <div class="cell"> <input type="radio" checked/><br/> <input type="radio" checked/> <input type="radio" checked/><br/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/><br/> </div> </td> </tr> </table> Without css:
<table border="1"> <tr> <td> <input type="radio" checked/><br/> <input type="radio" checked/> <input type="radio" checked/> <br/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/> <br/> <input type="radio" checked/> <input type="radio" checked/> <br/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/> <br/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/> <input type="radio" checked/> <br/> </td> </tr> </table> |
In cell 3 of the div . In the first 1 input , in the second - 2 and the third - 3. Further alignment of the text-align: center cell
<table> <tr> <td style="text-align: center;"> <div> <input type="radio"> </div> <div> <input type="radio"> <input type="radio"> </div> <div> <input type="radio"> <input type="radio"> <input type="radio"> </div> </td> </tr> </table> - Well, how to impose 1 block is clear, but how to place 2 more under it, and what would be the first to remain in the center. without using css - Helmoz
- one@Helmoz "without using css" - maybe also without html, and without a computer? You tell me right away what else can not be used. - Igor
- If you can without html, go ahead. Simply, there is a task that I am trying to solve, but a table layout is some kind of horror, if you don’t have a solution, why write useless comments? - Helmoz
- @Helmoz My comments have brought (and continue to bring) benefit and joy to thousands of visitors ru.stackoverflow.com . - Igor
- @Igor I am very happy for you, I hope there will be a solution to this problem, because I could do it myself using blocks using css, but without using css and a div it does not work. - Helmoz
|
