Script/code to center the landing page in PPV window?

3 replies
So my landing page is mostly just a big image/banner type of thing, but it's smaller than the PPV windows of most networks, so I was wondering what's the code that I need to put it in order for it to automatically center itself when the pop window opens?
#center #landing #page #ppv #script or code #window
  • Profile picture of the author Greedy
    Just place it in the upper left corner and it will show up in the pop-up.

    Or where you trying to center the browser window on the screen?
    {{ DiscussionBoard.errors[8643611].message }}
    • Profile picture of the author QtoBrooklyn
      Originally Posted by Greedy View Post

      Just place it in the upper left corner and it will show up in the pop-up.

      Or where you trying to center the browser window on the screen?
      No, i'm not trying to center the pop-up, i'm trying to center the banner within the pop-up. It's about 2/3rds of the size of the pop-up window, so now when it loads, it doesn't look good because it just stays in the upper left corner. I want it to center itself when the pop-up window loads.
      Signature

      "I don't care to belong to a club that accepts people like me as members."

      {{ DiscussionBoard.errors[8643824].message }}
  • Profile picture of the author webapex
    One clumsy example that centers the background image, to maintain alignment of an overlaid button some tricky css would be called for, (background-attachment:fixed; is required for Mozilla, Firefox)

    <body style="background-image: url(yourimage.jpg); background-attachment:fixed; background-repeat: no-repeat; background-position:center center;" >
    </body>
    Signature

    “An expert is a person who has made all the mistakes that can be made in a very narrow field” Niels Bohr

    {{ DiscussionBoard.errors[8647735].message }}

Trending Topics