PassMark Logo
Home » Forum

formatting results of block images

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trew
    Member
    • Jul 2009
    • 21

    #1

    formatting results of block images

    I get uneven formatting due to sizes of found images.
    Could I place each image in a set sized box so as to
    preserve a nice even formatted page.
    Last edited by trew; Jul-15-2009, 07:54 AM.
  • Ray
    Administrator
    • Dec 2004
    • 4357

    #2
    You can force the image size by setting width and/or height attributes to the .result_image class in the CSS. For example,

    .result_image img { width: 100px; height: 100px; }

    The above will make all images displayed in the search results to be 100x100.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    • David
      Administrator
      • Dec 2004
      • 4714

      #3
      Another solution would be to make all the thumbs the same size (e.g. pad them out white pixels if required, to make their native resolution 100x100).

      Failing that you could start customising the script, to output the results in a true HTML table.

      Comment

      Working...