Having issues with vertical+horizontal alignment

Kristopher's Avatar


04 Jan, 2011 01:11 AM

I cannot figure out why it won't center the image vertically as well as horizontally. I'm trying to do a weird crop effect using hor/ver centering. Here's my code...


jQuery("a.post-image-container img").imgCenter({
    parentSteps: 2,
    centerVertical: true,
    scaleToFit: false


and the website demo-ing: http://whatmakesyousmile.org/wp

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac