You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#100337 There is a problem with the JCE Mediabox pop-ups plugin

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by erwinds on Monday, 24 June 2019 11:08 BST

erwinds
Hi
There is a problem with the JCE Mediabox pop-ups plugin:
the link covers the entire breette of the pagethe image is centered with a width of 400px

Attachments

Ryan
Please post a link to an example.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
When an image is centred, it is done so by making it a block element, and adding a margin value of "auto" using inline css styles. The "margin:auto" style will then create a margin on the left and right of the image big enough to center the image. As the link tag wraps the image, it then inherits the total size of the image, including the margin, and so the active, or click area of the link is set as this total size.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

erwinds
hi Ryan,

I try this and it's okay

Thanks,
Erwin

Ryan
An alternative is to apply the Align center to the paragraph the image is in, rather than the image itself. This will align without using a margin.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

erwinds
thanks this is a perfect alternative