I am using the openweathermap api to get my icons. However, they are of a fixed size. How do I enlarge them?
Thanks in advance.
Do you have a CodePen you could link to?
1 Like
I suppose you could add something like: img{ width: 100px; }
or whatever.
1 Like
@PortableStick yes it is http://codepen.io/aks2161989/full/ZOqGGE/
It is still in an initial stage and needs a lot of work.
In the icon’s class in the CSS, put this:
font-size: 2em;
Or any size to replace the 2. For example, the weather icons I used are prefaced with a “wi”, so to change their size you would put:
.wi {
font-size: 2em;
}
I hope this helps!
2 Likes
Thanks for your advice! I will try that, but I hope the icons don’t get blurred.
They shouldn’t, they’re icons not images
1 Like