Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

SVG not fully displayed with lightbox

Started by Jerry Hunt 7 years ago · 2 replies · 869 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 complanar, 6 days ago
6 135 11 hours ago
Support · by Rick Beebe, 6 days ago
2 99 2 days ago
Support · by blu3prince, 3 days ago
0 50 3 days ago
Support · by alex, 4 days ago
2 91 3 days ago
Support · by Marcel, 2 weeks ago
1 142 3 days ago