@shake88junt
Posted
Good job. An improvement would be to set the background color of the music icon to same color of the Annual plan background. (Ex. white to light blue).
A way to create background images that properly scale would be to create a div with the img inside of it ->
<div> <img src = "./example_img.png"/> </div>
then set the img visibility to hidden with 100% width->
<styles> img{ visibility: hidden; width: 100%; } </styles>
then set the background url ->
<styles> div{ width: 100%; background: url('example_img.png') no-repeat; background-size: 100% 100%; } </styles>
CODEPEN EXAMPLE => Codepen Link
Marked as helpful
@VihagaYohan
Posted
@shake88junt Thank u for u feedback :)
@Gaurav-Shekhawat
Posted
@shake88junt Can you please tell me what are you trying to achieve with that codepen. I mean which problem were you facing??
@shake88junt
Posted
@Gaurav-Shekhawat It just shows how to create scale-able background images. In that example the image container has a fixed width, but you could use that method to create background that maintain their dimensions.
@Gaurav-Shekhawat
Posted
@shake88junt oh, nice