4
I have a style I use for the fields of form:
.inputTextMedio {
border: 1px solid rgb(0,0,0);
border-radius: 10px;
width: 250px;
height: 30px;
padding: 3px;
display: inline-block;
}
The problem is I’m also using it for Select Options
.
However, the Select Options
end eating the pixels of margin
and padding
and in the end, instead of
width: 250px;
height: 30px;
They end up with
width: 242px; + 6 do padding + 2 do border = 250
height: 22px; + 6 do padding + 2 do border = 30
Is there a way to make up for that loss?
For example:
select {
width += 8px;
height += 8px;
}
thank you, that’s right!
– Carlos Rocha
Really the border-box "didn’t work" as expected! Good uncle tip!
– hugocsl