Jump to content

css table-cell width ignored

Recommended Posts

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.





Share this post

Link to post
Share on other sites

Could you include the stylesheet with this? I'm not able to recreate the issue with what you've shown.

Share this post

Link to post
Share on other sites

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 by dsonesuk
fix auto correct I'd to id

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...