Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2008
    Posts
    174
    Plugin Contributions
    0

    Default Centering Images

    I have added images to my "page 4". How do I center them?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Centering Images

    Using CSS in your stylesheet, but it's difficult to be more specific without seeing how you have added them.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Centering Images

    If you are using the default HTMLarea for a text editor, click the image so it is highlighted (shows the corner handles), then click the text alignment icon on the toolbar. It is usually the second icon from the left just below where the font name is displayed. Click once will center the image on the line.

    Another way, if the image is displayed on a line by itself without text on either side is to change to the source code display in the text editor and make sure the <p> tag for line associated with the image has align="center" included. Example <p align="center"><img src="/images/myimage"></p>

    If your image is contained within a table then you need to add "align="center" to the td tag (example: <td align="center">"><img src="/images/myimage"></td>)

    Ron

  4. #4
    Join Date
    Jan 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Centering Images

    Using the TOOLS Define Pages Editor, I added the following to my page:

    <p TEXT ALIGN="CENTER"><strong><font face="verdana,arial,helvetica,sans-serif" SIZE=+2>BIG E WINE COMPETITION</font></strong></p><BR>
    <p TEXT ALIGN="CENTER"><FONT SIZE=+1>HOT SINŽ - DOUBLE GOLD MEDAL<BR>SUMMER'S ECSTASY - GOLD MEDAL<BR>EDEN'S PLEASURE - SILVER MEDAL<BR><BR><BR>
    <FONT SIZE=+2><strong>INTERNATIONAL SCOVIE AWARDS<BR><BR>
    <FONT SIZE=+1>HOT SINŽ</p><BR>
    <IMG SRC="/images/SCOVIES/sc2008winner1.jpg"><BR><BR><p TEXT ALIGN="CENTER">DRAGON FIRE ROSE'</p><BR><IMG SRC="/images/SCOVIES/sc2008winner.jpg"></p>

  5. #5
    Join Date
    Jan 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Centering Images

    Thanks, the <p align="center"><img src="/images/myimage"></p> worked.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Centering Images

    It's a shame you are using outdated code. Nobody uses Captial letters in their Tags anymore, the Font tag was outdated 4 or more years ago and your <br> tag should be <br />.

    All of the above needs to be applied in order for your code to be correct for the version of HTML used within Zen Cart.

    You could have also put all the HTML code within a Div tag, with a few declarations, and used a lot less coding.

    Just a thought.

 

 

Similar Threads

  1. Centering product images....
    By Music Man in forum Customization from the Admin
    Replies: 1
    Last Post: 12 Feb 2010, 07:49 AM
  2. Centering Images
    By JuzJoJo in forum General Questions
    Replies: 2
    Last Post: 4 Apr 2009, 05:20 PM
  3. Centering images
    By crabdance in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 Sep 2007, 06:28 PM
  4. Centering additional images
    By raskayu in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 30 May 2006, 02:26 AM

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