Skip to content
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

Change spacing between images #34

Open
slapovski opened this issue Feb 20, 2014 · 4 comments
Open

Change spacing between images #34

slapovski opened this issue Feb 20, 2014 · 4 comments

Comments

@slapovski
Copy link

Hello!
You've made a great plugin with an easy customizing but I can't find how to change spacing between images. I can increase it by using margins in CSS but I can't reduce it to 0. Is it possible to delete spacing?

Thank you

@abhiomkar
Copy link
Owner

Portfoliojs doesn't have this option. However, you can adjust the spacing between images by manually editing the source code of js/portfolio.pack.min.js file. Please replace all 5px with 0.

Hope this helps.

@slapovski
Copy link
Author

Hi!
Thank you for your answer.
I've tried this approach but it didn't help. I can't imagine where in the code I can manage the spacing. I've inspected css properties of images and gallery div but I couldn't see any properties which are responsible for spaces (I mean margins, padding and etc.).
Could you please give me a clue where I can try editing the code to adjust the spacing? My wife's site myendlessbook.com implies no spaces between images. It would be great if I could solve this issue.

@CHEWX
Copy link

CHEWX commented Apr 30, 2014

Images add default spacing. You can set the font-size on #gallery to 0px. This will fix your problem. Usually you would do img { display:block; } and then float, but float doesn't seem to work with this plugin.

@transoptic
Copy link

Why not set margins in CSS to a negative value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants