I am trying to override the input type
input[type="number"] {
width: 100px;
}
with the following css classes.
.choice_num{
width: 83px;
text-align:right;
padding: 2px;
font-weight: bold;
}
.choice_num_1{
width: 82px;
text-align:right;
padding: 2px;
font-weight: bold;
margin-right: 2px;
}
.float_nums{
width: 62px;
text-align:right;
padding: 2px;
font-weight: bold;
}
but it doesn't seem to work. Any ideas?
This is the code that you asked (sorry it didn't occur to me to add it.)
<input type="number" class="choice_num" step="<?php echo $epilogi['posotita']; ?>" min="<?php echo $epilogi['posotita']; ?>" value="<?php echo $epilogi['posotita']; ?>" onchange="calculate()" id="a1" name="posotita">
<input type="text" class="tmxs" value="KG" readonly="readonly" name="monmetr">
<input type="number" class="choice_num_1" value="<?php echo $epilogi['timi']; ?>" id="a2" readonly="readonly">
<?php } ?>
<input type="number" class="float_nums" value="<?php echo number_format((float)$sum, 2, '.', ''); ?>" id="a3" readonly="readonly">