EDIT: I realized that because I did not give out the complete code (I wrote a lot because it was for the final project, but I just had a question with this tiny thing), my question was a bit confusing. The answers are below, but I realized that when I compiled the image data from the request, I assigned it a class, so I just used it for editing, using the answers below to resize the image. Thank!
I am doing this project where we are analyzing data from a query. I am currently using the SoundCloud Stratus API to create a very rudimentary soundcloud webpage.
$.each(data.slice(0,10), function(index, value) {
var icon = value.artwork_url;
if (icon == null) {
icon = 'assets/blacksoundcloud.png'
}
};
Is there a way to edit the blacksoundcloud.png image in CSS? In particular, I just want to edit the icon image size.
<header>
<img id="main-logo" src="assets/soundcloud.png">
</header>
<section class="search">
<input type="text" id="input" placeholder="Search for a song or artist">
<button id="searchButton">Search</button>
</section>
<section>
<div class="results-playlist"></div>
</section>
<script src="https://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="startercode_HW4_skeleton.js"></script>
<script src="http://stratus.sc/stratus.js"></script>
Run codeHide resultHTML. . , , "blacksoundcloud.png". -, , .
, .
: 