I'm having trouble placing three different images in front of some list points on my website. It doesn't seem to be working the way I intended. Can anyone offer some assistance? Currently, it appears like this: CSS content
Despite using :before, the images are not aligning properly next to the text, and they appear larger than I would like. How can I make them smaller and position them correctly?
Here is the CSS code I have implemented:
a[href*="bron.pdf"]:before {
content: url("PDF%20img%20.gif");
}
a[href*="bron.vcf"]:before {
content: url("vcard-icon.png");
}
a[href*="bron.jpg"]:before {
content: url("adobe%20img%20.png");
}
This is the HTML code being used:
<section>
<h4>Downloads</h4>
<ul>
<li><a href="bron.pdf" data kb="1267">project_CMDA_Moet_ik_rennen.pdf</a> (1.3MB)</li>
<li><a href="bron.vcf">Contactgegevens_CMDA_Moet_ik_rennen.vcf</a></li>
<li><a href="bron.jpg" data-kb="569">Poster_CMDA_Moet_ik_rennen.jpg</a> (569KB)</li>
</ul>
</section>
Can anyone point out what I might be doing incorrectly?