-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
images just won't display #144
Comments
Hello, Do you have any error in the devtools console ? |
yeah of course. Sorry for the delay, I'm more of a graphic* designer that a programer, i'm learning. I replaced it with images from the web so that it works: https://jsfiddle.net/alesinho/zqagmc7w/8/ Also the "chocolate" files are files i copied and pasted from the chocolat.js page The error i do get is in chocolate.css: |
Thanks, the jsfiddle fails because of this css rule : *{
margin: 0 auto;
} You shouldn't apply horizontal centering to evey elements of the page. Here is the working jsfiddle, |
thank you so so so so much. I'm sorry for the trouble, I'm new to coding so i apologize if this was too obvious. You saved me. Thank you💖 |
I'm testing it before adding it to my website. I don't know what I'm doing wrong:
I added the .js and the .css, liked them properly, added the call after the script:
document.addEventListener("DOMContentLoaded", function(event) { Chocolat(document.querySelectorAll('.chocolat-parent .chocolat-image'), { loop: true, // Other options here }); });
what am i missing?
The text was updated successfully, but these errors were encountered: