PickleRick Posted March 21, 2020 Share Posted March 21, 2020 Hi im really struggling here. I use a css table with rows and cells to display images in a website. Each cell contains 1 image. Every cell is generated by a php loop. So they all should be equal - except they are not. Whysoever css is making the first cell wider than the rest. Although i got table-layout:fixed on table, rows and cells and have defined width and max-width on cells. I am really desperate. The loop recognises, if there are less pictures in a row and makes extra cells to fill up that row. Theese extra generated cells are there and are all ok with width and everything - just hidden. But the first cell in every row is totally messed up and i have no idea why. Please help. Greetings Ed Link to comment Share on other sites More sharing options...
Funce Posted March 29, 2020 Share Posted March 29, 2020 Could you include the stylesheet with this? I'm not able to recreate the issue with what you've shown. Link to comment Share on other sites More sharing options...
dsonesuk Posted March 30, 2020 Share Posted March 30, 2020 (edited) To me it looks like the class and id have been merged together, but it's not that clear. class="table-cell id+" 1" when should be class="table-cell" id="1" ALSO you never start class/id with a number. Edited March 30, 2020 by dsonesuk fix auto correct I'd to id 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