Why is there no dimension css attribute?
css
Solution
Given we work in a 2 dimensional space then there will only ever be 2 attributes, namely Width and Height. Compare this with margin that has four possible parameters.
You save very little typing using your proposed dimension attribute, but run the risk of adding in mistakes. For instance, you could easily make the mistake of getting height and width mixed up - in `dimension: 150px 200px;` then is `150px` the height or width? How would the browser interpret `dimension:200px` would it mean just 200 width, or would it mean 200 x 200px ? Or something else?
Problem
In CSS we can define: ``` margin-top: 10px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; ``` or just short: ``` margin: 10 1 1 1; ``` we also can define: ``` border-left -right -bottom -top ... ``` or short: ``` border:1px solid black; ``` for defining the dimensions of an element we need: ``` width: 150px; height: 200px; ``` why isn't there something like: ``` dimension: 150px 200px; ``` or does something similar exist and i just dont know it? (the reason why i ask: i always misstype 'dth' -> 'dht' and 'ght' -> 'gth' and want to blame someone)