LifeRacer Posted August 14, 2019 Share Posted August 14, 2019 Hey guys, I have a website on the Encore template, and I want my homepage to have a CSS logo that scales for the different display sizes (mobile, medium, desktop), but I can't figure out what to do. So far, I've gotten the custom image on the page. Here are the problems: The picture is huge It doesn't scale for the sizes How do I write the CSS to reflect what I want? Here is the code I have so far: <style> #title-area:before { content:url(https://images.squarespace-cdn.com/content/56d21057c2ea51b1520ba420/1565749780067-INFEFL7NRFJUSK6FF6QN/?format=1500w&content-type=image%2Fpng); } #title-area img { display: none; } </style> Here is the URL to my site: http://austinswansonmusic.com/ Thanks for the help! Link to comment
tuanphan Posted August 14, 2019 Share Posted August 14, 2019 you should use background-image: url(logo url); content: ""; width: 50px; height: 50px; display: block; Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
LifeRacer Posted August 15, 2019 Author Share Posted August 15, 2019 Where would I put that within the code I currently have? And is this for a background image or a logo? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.