The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Z-Index <img> and <svg>, Layer an image over an svg
MLove
post Dec 29 2020, 02:43 PM
Post #1





Group: Members
Posts: 3
Joined: 29-December 20
Member No.: 27,700



I am trying to overlay a static image over an svg. I wrapped the image and the svg into a div and tried using z-index but have been unsuccessful. The image is the NOWI logo in the lower right corner that I want to place over the moving wave svg. Thanks in advance for your help.

I have been previewing from a local html.index so I can't provide a URL.

I've attached a screenshot of the preview and the css.


Attached thumbnail(s)
Attached Image Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
MLove
post Dec 30 2020, 01:51 PM
Post #2





Group: Members
Posts: 3
Joined: 29-December 20
Member No.: 27,700



YAY!!!

It works! Thank you so much for your help, and the education.

Much appreciated.

-Michael
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 30 2020, 01:58 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



You're welcome. Positioning is tricky at first. Takes more than one read to get one's head around it. There are tutorials, but I don't know which are up to date.

BTW here's how it looked without z-index. Strange, huh?

Attached Image

The red is my dummy image.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 06:46 AM