Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

SVG not fully displayed with lightbox

Started by Jerry Hunt 7 years ago · 2 replies · 685 views
7 years ago

I am trying to use lightbox with triangle.svg, when using

<p>Triangle</p>
the small version just shown an SVG box icon svg|91x90,50%
When you click on the icon the large overlay displays the correct picture
FYI The following 2 versions work perfectly
<p> Triangle<br>
or<br> Triangle</p>

A mouse over the svg icon shows the path
'user/pages/01.testpage/triangle.svg' whereas if the jpg is used the path is cached image folder '/images/ ....etc.'
Thanks in advance for your help

last edited 04/17/19 by Andy Miller
7 years ago

SVGs are not standard images, they don't have built in dimensions, and when you set dimensions, you really are only setting canvas dimensions. That said, i'm not suprised you have issues, but as it's vector anyway, a lightbox is not really a common scenario.

7 years ago

Thanks for that, it's not a real problem. It was a potentially simple solution to show the diagram in more detail.
There are other ways I can get the same result.

I'd just like to add, I love Grav, I'm still trying to get my head around the various aspects
but it makes creating my site so simple.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago