I recently came across a snippet of Javascript and CSS code.
Here is the Javascript:
$('.item-card').css("width", $('.item-card').width() + "px");
$('.item-card').css("font-size", $('.item-card').width() * .13 + "px");
And here is the CSS:
margin-left: 1vw;
margin-top: 0;
margin-bottom: 0;
margin-right: 0;
right: -15%;
width: 10vw;
display: inline-block;
position: relative;
white-space: normal;
While this CSS creates a visually appealing box for displaying items, I am facing a challenge. I want to make the box bigger by adjusting the width, but changing the width value seems to have no effect. How can I successfully increase the size of the box while maintaining its current stylistic attributes?