David Morales Posted March 26, 2018 Share Posted March 26, 2018 Hello, Where might I find a way to add a piece of code for a Shopify store's Product Liquid page where I added a Badge to the site and like to add a little pop-up to it so when one hovers their mouse over it it increases it's size so that it could be read - almost like adding a magnifier to the badge? Link to comment Share on other sites More sharing options...
dsonesuk Posted March 26, 2018 Share Posted March 26, 2018 1)You need a parent container element using position: relative; 2) A child container using position: absolute, and top: left: properties to position to required position on hover. 3) set the parent element so when it is hover over :hover that it should use transform: scale() to increase size to requirements of child element which is the pop-up. https://www.w3schools.com/cssref/css3_pr_transform.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now