I want to know how can I achieve an arithmetic operation in CSS.
For example: I want to align two divs side by side each having width of 50% and I want to give border on these divs. I want to write my rule like this.
#container {
width: 50% - 1px; // I know this does not work.
}
Why do browsers not support such arithmetic operations in CSS ?
And, How can I get this to work ?
question from:https://stackoverflow.com/questions/16160806/how-to-perform-arithmetic-operations-in-css