CSS Help Background Image URL Parallax
jbriginshawphoto
Registered Users Posts: 34 Big grins
Hi there,
I am trying to Recreate this on my website: https://gallery.imagesinthebackcountry.com/Smugmug-customization/SmugMug-Customization-Demos/Fixed-Scrolling-Demo/n-NHNZ5K
When I work with the CSS code provided from the website and start to recreate it with my own background images, my images won't show up. What am I doing wrong?
p,
h2,
h3 {margin: 0 auto 1.5rem;}
p {line-height: 1.5;}
.sm-page-widget .sm-page-widget-content {margin: 0;}
.container {
position: relative;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
.container--image-01 {
background-image: url ("https://photos.smugmug.com/photos/i-TwrzrmJ/1/14c734b2/M/i-TwrzrmJ-M.jpg");
min-height: 100%;
}
0
Comments
Without seeing your site, I have no idea.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
That would help! Here it is: https://www.jbriginshawphotography.com/New-Homepage/n-dHm7GT
EDIT: Sorry, I had a typo in the code. It should have read
100vh
and not100%
:I assume that photo is just a test because it's too small to display without pixelating.
Also these are not photos:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thank you!! it was totally the 100vh. Much appreciated.