У меня есть определенный дизайн, который мне нужно полностью реализовать с помощью тегов <div>, но я не могу этого сделать, хотя я достиг этого с помощью тегов <table>, которые необходимо заменить. Запросить экспертизу. Ниже представлен дизайн:
Ниже приведен код, с которым я пытался и боролся:
<div>
<div class = "row">
<div class = "col">
<input type = "label" value = "fees">
</div>
<div class = "col">
<input type = "label" value = "1,258">
</div>
</div>
<div class = "row">
<div class = "col">
<input type = "label" value = "cost">
</div>
<div class = "col">
<input type = "label" value = "200">
</div>
</div>
<div class = "row">
<div class = "col">
<input type = "label" value = "Grand Total">
</div>
<div class = "col">
<input type = "label" value = "1,458">
</div>
</div>
</div>

Используйте этот код ниже и примените css, как хотите...
.divTable{
display: table;
width: 400px;;
}
.divTableRow {
display: table-row;
}
.divTableHeading {
background-color: #EEE;
display: table-header-group;
}
.divTableCell, .divTableHead {
border: 0;
display: table-cell;
padding: 3px 10px;
}
.divTableHeading {
background-color: #EEE;
display: table-header-group;
font-weight: bold;
}
.divTableFoot {
background-color: #EEE;
display: table-footer-group;
font-weight: bold;
}
.divTableBody {
display: table-row-group;
} <div class = "divTable">
<div class = "divTableBody">
<div class = "divTableRow">
<div class = "divTableCell" style = "text-align:right;"> Fees</div>
<div class = "divTableCell"> 1258</div>
</div>
<div class = "divTableRow">
<div class = "divTableCell" style = "text-align:right;"> Cost</div>
<div class = "divTableCell"> 20k</div>
</div>
<div class = "divTableRow">
<div class = "divTableCell" style = "text-align:left; border-top: 1px solid #000;"> Grand Total</div>
<div class = "divTableCell" style = "border-top: 1px solid #000;"> 1458</div>
</div>
</div>
</div>
Только html, вы не добавляете css?