Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Centering pop up images

    I have a grid of 20 images - 4 across and 5 down.
    When you click on an image, it opens as an enlarged pop up as it's supposed to BUT....
    If you click on the top LH image, it opens on the left of the pop up page.
    If you click the second image in the top row, it opens just to the left of centre.
    3rd image - opens just to the right of centre and the 4th image - on the RHS of the page.
    As you move down the rows, the same thing happens and they open up lower down on the pop up page.

    Is there a way simply to get any image that is clicked on to open in the MIDDLE of the page?
    Let's face it, this is a whole lot nicer.

    Thanking you in advance....

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

  3. #3

    Default Re: Centering pop up images

    In versions 7 and 8, there's no longer any need to name an object <head>
    Just place the code into the HTML code (head) section in the Website tab of Web Properties.

    <script type="text/javascript">hs.align = "center";</script>

  4. #4
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: Centering pop up images

    Thanks gwpriester and sledger - works perfectly!
    Much appreciated!

  5. #5
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Centering pop up images

    There are also some useful tweaks here

  6. #6
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: Centering pop up images

    Thanks Drwyd - very helpfull!

 

 

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
  •