James D Posted February 12, 2021 Share Posted February 12, 2021 Hi, I have a table with images on my website (www.jamesdurling.ca) everything works fine except the images are sorting vetical. So the dates shown on the images are not in order. Any suggestions on how this can be corrected? This is the CSS code I am using: #tr-photogallery{line-height:0;-webkit-column-count:auto;-webkit-column-width: 200px;-moz-column-width:200px;column-width: 200px;-webkit-column-gap:0;-moz-column-count:auto;-moz-column-gap:0;column-count:auto;column-gap:0} #tr-photogallery img{width:100%!important;height:auto!important;padding:2px} Thanks, James Link to comment Share on other sites More sharing options...
Ingolme Posted February 13, 2021 Share Posted February 13, 2021 Using columns will always order things vertically. If you want them lines up horizontally try a flex-box instead of columns. W3Schools has a few tutorial pages describing how to use flexbox: https://www.w3schools.com/css/css3_flexbox.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