Hello, dear experts, help with the problem, it is very necessary. There is a table of div in it, one column and several lines, here is a simplified view:
.vcom_tab {display:table; border-collapse: collapse;} .vcom_tab > div {display: table-row; border: dashed 1px #ddd; padding:5px;} <div class="vcom_tab"> <div>Комментарии</div> <div> <div>Арсен</div> <div>Спасибо</div> </div> <div> <div>Михаил</div> <div>Незачто</div> </div> </div> How to apply padding property to table-row ?
I know from the manual that this property does not apply to tr , how to get out of the situation?
table-row? May still need atable-cell. Or, alternatively, the contents of the divs to which thetable-rowis applied, wrap them back into blocks and assign spaces to them - HamStertable-rownot necessary, just if you change it totable-cell, then all the rows are converted into columns and the whole table rushes to the right like this: jsfiddle.net/dgfk2L3z/36 and I need to go down if I don’t find a simple solution I will use your second sentence. - Igor Salamov