Within the CSS code below, I am seeking to vary the size of a square randomly. This can be achieved using the Math.random() property in Javascript, but I am uncertain how to apply it to define the size in CSS.
#square {
width: 100px;
height: 100px;
background: red;
}
Instead of fixed values for width and height, I desire them to be randomized. Additionally, I would like the position/orientation of the square to be random as well. This goes beyond simply generating random numbers; while that is part of the solution, it does not encompass the entire approach.