I have an image that has a border-radius making it circular. I have had to set a width and height the same to make it circular.
Is there a way to make it circular without a set width and height so that it then become responsive as at the moment when I resize my browser, it pushes the window’s width out.
I’m sure @PaulOB will have a much more elegant method, but if you set a height/width to the container, and then set the height/width of the image to 100%; it becomes responsive (the hard coded sizes guarantees it’s not responsive).
Hello,
Simply make it a background image and have a div. when the div is made smaller on various screen sizes so will the image. If you have running bootstrap, your divs are auto responsive. Here’s the code