Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2009
    Posts
    15
    Plugin Contributions
    0

    Default Help with Centering an Image in a Table

    Hi,

    Is there a simple way to center images in a table? I have a table that has images on it that I want to center. I also want to center the table itself. I had it set up the way that I wanted it to look, but I got errors when I went to validate it. Suggestions?

    http://photothrowsandmore.com/index....c61cc00f495490

    I've tried working with the firebug extension, but haven't gotten anywhere with it yet. I was able to get the images to center by changing the stylesheet, but everything else got centered as well.

    Thanks

  2. #2
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Help with Centering an Image in a Table

    I get directed to the Down for Maintenance page

    Are you referring to the Down for Maintenance (Image)?

  3. #3
    Join Date
    Nov 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Help with Centering an Image in a Table


  4. #4
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Help with Centering an Image in a Table

    easiest way would be to add the following to your code in the defines page editor

    <td align="center" valign="middle"> IMAGE </td>

    your table itself appears centered in my browser

    to make both columns the same width add
    <td align="center" valign="middle" width="50%">IMAGE </td>

    hope this helps

  5. #5
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Help with Centering an Image in a Table

    or you could give each tr & td a unique id so you could further style them via your stylesheet

  6. #6
    Join Date
    Nov 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Help with Centering an Image in a Table

    Thanks so much!!! I went with the first suggestion until I can figure out CSS.

  7. #7
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Help with Centering an Image in a Table

    glad this worked for you :-)

 

 

Similar Threads

  1. Help centering main product image!!
    By kcb410 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Sep 2012, 11:09 PM
  2. centering header image with tpl_header.php
    By praiseandplay in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 23 Jan 2010, 04:29 AM
  3. Help with layout centering
    By dpet102 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Jul 2009, 11:12 PM
  4. How to run PHP in a table cell with a BG image..?
    By gemohler in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Feb 2009, 11:12 AM
  5. Please help with centering page- SilverFish template
    By hornsales in forum Addon Templates
    Replies: 14
    Last Post: 9 Nov 2008, 05:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR