Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design display: table and display: table-cell mobile friendly solution

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #249071
    gucu
    Participant

    Hi

    http://wp.me/p84map-1J

    On the above page, I am trying to replace the image with a css mobile friendly solution. I created a css table using table and table-cell. However, the percentage widths are being ignored when viewed through a mobile. The mobile is varying the cells dependent on the amount of text.

    It looks as if WordPress is displaying it correctly. However, I am writing the code for a different site using a home grown cms. Nothing to do with me and I have limited access. The page is here.

    http://encounterwalkingholidays.com/rich-test-page

    Can anybody point me in the right direction to make it work please?

    Thanks

    Rich

    #249078
    Beverleyh
    Participant

    However, the percentage widths are being ignored when viewed through a mobile. The mobile is varying the cells dependent on the amount of text.

    It looks fine on iOS. Which environment (OS/browser) does the problem occur in?

    It will also be easier for us if you provide a reduced demo in codepen.io, showing just enough markup and CSS to demonstrate the problem.

    #249086
    Shikkediel
    Participant

    Just a shot in the dark but yesterday I happened to notice my ol’ Android 2.3 did not respond to setting widths on table cells, only min-width.

    #249103
    Shikkediel
    Participant

    I’m currently resorting to this, seems to work on early Android as well:

    https://css-tricks.com/fixing-tables-long-strings/

    #249108
    Beverleyh
    Participant

    Interesting. I haven’t explored this property a great deal before. I will play more with it when I’m back in a desktop.

    #249127
    gucu
    Participant

    Hi

    Sorry for the delay in answering. Away for the weekend. Here is the codepen:
    https://codepen.io/gucu/pen/JbxJjQ

    I added code from the link to table: fixed reply.

    Thanks

    Rich

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design’ is closed to new topics and replies.