I'm trying to code a theme for tumblr, I'm happy with the layout, however, I'm not sure if the coding is the most efficient way to insert images. I'm using html to insert decorative elements into my background, like so:
<div style="width:321px;
height:513px;
background:url(https://static.tumblr.com/rcvxpmk/a1Cqbosyt/left_img_for_gctita_theme.png);
z-index:2;
top:120px;
left:48px;
position:fixed;">
</div>
It gets the job done and as I said, it looks how I want it to - my problem though, is that I notice that inserting images in this way isn't done that often? ( i could be wrong please feel free to correct me ) — I'm trying to instill good coding practice, and so if this isn't the proper way to do it, I'd wish to know. Other than what I'm doing right now, I'm unsure how to insert images and get them to look the way I want them to. Is it better to make a class for it and then insert it into html?
img
tag? – Daniel A. White