Hi all,
What does my title mean ?
I find this in an ID = btn_map, inside the logic block to fix the size of a button...
Thanks for your help,
Regards,
clamp(370px, 30%, 1000px)
- dePassage66
- Posts: 86
- Joined: Mon Mar 20, 2023 11:19 am
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
(sorry, no translation available yet!)
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Can you show a screenshot to put it into context?
If it has a yellow triangle, then mouse over it to see a tooltip that will give you more information.
Regards,
If it has a yellow triangle, then mouse over it to see a tooltip that will give you more information.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- dePassage66
- Posts: 86
- Joined: Mon Mar 20, 2023 11:19 am
Here it is Hopki, and thanks for your answer.
This logic block impresses me terribly
But after a while I'd like to understand how it works
Regards,
This logic block impresses me terribly
But after a while I'd like to understand how it works
Regards,
- Attachments
-
- Capture d'écran 2023-10-10 111352.png (106.74 KiB) Viewed 1856 times
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
(sorry, no translation available yet!)
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
what the "clamp" does is set limits.
For example, a width set to: clamp(370px, 30%, 1000px)
This is saying the element can change width by 30% but must not go under 370px or over 1000px, but can scale in between these limits.
So if you had a side menu, setting to use percentage at some point it will become either to wide or to narrow, this ensures that it can not get to narrow or to wide.
Regards.
what the "clamp" does is set limits.
For example, a width set to: clamp(370px, 30%, 1000px)
This is saying the element can change width by 30% but must not go under 370px or over 1000px, but can scale in between these limits.
So if you had a side menu, setting to use percentage at some point it will become either to wide or to narrow, this ensures that it can not get to narrow or to wide.
Regards.
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- dePassage66
- Posts: 86
- Joined: Mon Mar 20, 2023 11:19 am
Great, thank you Hopki, I better understand this logic now.
Just one more question please:
How do I have to interprete the hight code below:
Does it mean that the hight can be 50% of the screen minus 160px ?
Regards,
Just one more question please:
How do I have to interprete the hight code below:
?calc(50% - 160px)
Does it mean that the hight can be 50% of the screen minus 160px ?
Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
(sorry, no translation available yet!)
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi dePassage66,
Yes, you are correct, if you use the skin preview you will see the results.
Regards,
Yes, you are correct, if you use the skin preview you will see the results.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- dePassage66
- Posts: 86
- Joined: Mon Mar 20, 2023 11:19 am
Thanks Hopki !
I prefer to be sure and ask people who are more knowledgeable than me, before trying and wasting some of my hard work on this skin editor.
Regards,
I prefer to be sure and ask people who are more knowledgeable than me, before trying and wasting some of my hard work on this skin editor.
Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
(sorry, no translation available yet!)