Relative Content

Tag Archive for javascripthtmlcsssvg

svg stops working when position in html page changes

I am using the svg widget below from this answered question
Capture Signature using HTML5 and iPad
to create a capturable signature. The code as is works but when I put content above it such as text in a <p> tag it’s stops working, which is problematic as I need it at the bottom of a document. Does anyone know why it stops working and how to make it work no matter where it is positioned in the html page?

SVG in Firefox render different color

I am working with few SVG icons, within symbol. When I open website in Firefox it has different color unlike Chrome (black vs white). Why is that ?
This is my code :

how to add an svg image to the middle of a html/css website, but have it also mask a gallery of images

I want to add a gallery to my website but unsure of where to start. The idea is that there is an ipod in the middle and if you click on the left and right ‘buttons’ it will act as the arrows in the gallery to change the pictures. the ipod therefore acts as a mask for the pictures, but it in itself is static in the middle of the screen. How would I go about doing this? for a project I am working on. Not allowed to use any libraries, has to be pure html/css and javascript only if absolutely necessary.