Forum Moderators: not2easy
.myname {
width: 20px;
height: 20%;
}
will work fine.
Even
.myname {
width: 20px;
width: 20%;
}
is deterministic: the browsers will use the second value.
The one thing you cannot do is to use both at the same time. E.g. there's no way to say 20% minus 20px. If you need that, approach the problem from another side and use e.g. a parent to help or a width of 20% and use 20px padding.