I am currently working on creating a dynamic style sheet for myself, which I will use in the future, and therefore I want it to be dynamic, not rigid.
I have an image class:
.image-round{ border-radius: 50%; }
This class works fine for all square images, but when I try to use rectangular images, I get an oval.
I tried to get around this using jQuery, wrapping the image in the container that I made, overflowing hidden and setting its height and width equal to the height of the image. This solved the problem, however now I am facing responsive issues.
When I try to scale the window down, the image becomes scratchy.
Now I wonder if there is a solution to solve this problem completely dynamically, without hard coding what ever, creating images in the landscape, as well as around the circle around .
I really want to avoid checking the image size when resizing the window, and then resizing the containers - since I am sure this will require a lot of performance.
Also, you cannot use a background image.
source share