-
AuthorPosts
-
November 13, 2024 at 4:34 pm #1471252
Hi,
The script Ismael sent me for sizing the .svg seemed to work and I was very happy with it.
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
.av-4htruh-aeabf568c97bc031467ccc24ed3ff2ab, .av-31x6k1-7fb95fe73764fba5b214f313d3f98aa7, .av-2b5ymp-559c7e72ca93c0db26ae73506c5bb616, .av-jmo1d-2e71f49f79ce34153a1617f697fe4d5a {
max-width: 50%;
}
}However I had to add one more Icon and since then some icons are big and some are small. The items are built in a content section in where there is a column of 20% In that column is a picture element in where the icon.svg are. All icons are 282 X 204 px. Even when I copy a good one it is displayed wrong. I checked everything over and over again and even tried a new page. Nothing seemes to work.
On a normal size screen it works fine but as soon as I see it on a telephone I see different sizes of the icons
Please help me out,
Cheers Woutski
November 13, 2024 at 4:54 pm #1471256declare an absolute Value – for width f.e.: 40px and then your max-width value
November 13, 2024 at 8:57 pm #1471273Thank you Guenni
Changed it to:
/* Add your Mobile Styles here */
.av-4htruh-aeabf568c97bc031467ccc24ed3ff2ab, .av-31x6k1-7fb95fe73764fba5b214f313d3f98aa7, .av-2b5ymp-559c7e72ca93c0db26ae73506c5bb616, .av-jmo1d-2e71f49f79ce34153a1617f697fe4d5a {
width: 200px;
max-width: 300px;
}
}Has no effect. 3 icons are big and two are small
November 13, 2024 at 10:43 pm #1471277As a participant as you i can not see private content – may we others see the page it concerns?
November 13, 2024 at 11:37 pm #1471280Yes of course: The page it concerns is https://claritymatters.nl/2024/
November 13, 2024 at 11:42 pm #1471281it concerns the “how i add value” icons ?
@media only screen and (max-width: 767px) { #top.page-id-289 img[src*=".svg"] { width: 150px; } }
another hint:
i wouldn’t have for each an own color-section.
You can do that all “how i add value” in one color section. To better select the color section give a custom class to it and tell the img to have a specific width.
___________________this is a bit offtopic
because you do not have a script that converts img svgs to inline svgs – the following does not affect you directly. But if you also work with svgs as inline svgs, you have to think about the graphic styles:btw: as inline svg files this would not work – because all these svg files got the same classes inside – but with different declarations!
( new illustrator standard class: cls-index ) so they will disturb each other/***** claritymatters-icons_icon-compelling-story.svg *****/ .cls-1 { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4px; } .cls-2 { fill: #2ec4ed; } /***** claritymatters-content-roadmap.svg *****/ .cls-1 { fill: #fff; } .cls-2, .cls-3 { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4px; } .cls-4 { fill: #2ec4ed; } .cls-3 { stroke-dasharray: 12; }
November 14, 2024 at 4:39 am #1471289Hi,
Thank you for the inquiry.
You can also assign custom cssclass names to the Image element, allowing you to target them specifically. Please check the documentation below for more info: https://kriesi.at/documentation/enfold/add-custom-css/#enable-custom-css-class-name-support
Best regards,
IsmaelNovember 22, 2024 at 12:46 pm #1471915Thank you Ismael and Guenni007,
I have it working. After I found that I used wrong classes for the container I chanced that into the right ones.Thank you for thinking with me.
Regards Woutski
November 22, 2024 at 3:44 pm #1471942Hi,
Thanks for the update. Should we close this thread for now then?
Best regards,
RikardNovember 22, 2024 at 5:37 pm #1471966Yes le’s close close this thread.
Regards Woutski
November 23, 2024 at 1:20 pm #1472002Hi,
Thanks for letting us know. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘sizing .svg on telephone’ is closed to new replies.