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

SVG not fully displayed with lightbox

Started by Jerry Hunt 7 years ago · 2 replies · 814 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 Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago