I want to know how to center this lightbox. Here is a link to the code - https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_js_lightbox . I scaled the image down by changing the width of the column class from 25% to 15% and the lightbox floats to the left. I want it to be centered. Thanks
Asked
Active
Viewed 26 times
0
-
Try display: block; margin-left: auto; margin-right: auto – nourza Aug 10 '18 at 09:23
-
This works when i type it into the column class and get rid of the float tag but now all the images have a new row. How do i keep them in the same row? – user3619057 Aug 10 '18 at 09:27
-
Do for each image – nourza Aug 10 '18 at 19:26
-
That requires bootstrap. Do you think you could add in the bootstrap code for me because it didn't work when i tried it. – user3619057 Aug 11 '18 at 04:58