Forums

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

Home Forums CSS [Solved] Image center in list

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #180839
    Romchick
    Participant

    Here is the deal How to center image in this way? Any ideas?

    #180850
    Paulie_D
    Member

    To start with don’t use tables for layout

    #180861
    Mikko Laine
    Participant

    image (inline-element) can be centered with text-align. or you can make the image block-element and use auto margins on left and right (margin: 0 auto)

    but the problem you’re having is that table (and tr/td/whatever elements)
    the image is centered… to that table cell, which has the width of that image.
    remove the table elements and it works.

    now it seems that you’re trying to make those equal height? you don’t have unit on the width/height (inline css)
    and you probably should use something like flexbox anyway… or just forget the idea of equal height blocks.

    #180903
    Romchick
    Participant

    Yeah, thanks guys for ideas. The matter is that my arms are cuffed by the template. Well, was cuffed. Now, completely remaking it, cuz of these dummy tables in it.

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