I have successfully incorporated collapsible functionality on my page. I would like to display a down arrow image instead of the default '+' symbol on the right side of the collapsible section.
To achieve this, I can use the following CSS code snippet with the url() function:
button.accordion:after {
content: url("download.jpg");
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
My question now is, how can I adjust the width and height of the image when using the url() method in CSS? Any insights or suggestions would be greatly appreciated. Thank you in advance!
Just to clarify, I want to set the image directly and not as a background-image. Therefore, I do not consider this query a duplicate question.