Reply To: Set Left and right Padding to 0

Your Account / Forums / Easy FancyBox Pro / Set Left and right Padding to 0 / Reply To: Set Left and right Padding to 0

December 30, 2019 at 7:24 pm #18254

but now on desktop is aligned on left…

Yes, that is what I meant with “Changing it through CSS will move the frame out of center position, leaving a larger margin on the right side.”

What you could do is bypass the 20px minimum limit on your Settings > Media admin page by doing this:
1. Go to Settings > Media and find the field Margin in the Window > Appearance section.
2. Right-click the input field and select “Inspect” (or similar, it depends on your browser)
3. In the developer tool box that now opens (usually on the right side) you will see the part of the page source code that matches this input field. It should look like this:
<input type="number" step="1" min="20" max="80" name="fancybox_margin" id="fancybox_margin" value="0" class="small-text">
4. Change the element attribute min="20" to min="0" by double-clicking it and then manually removing the 2, then hit the Enter key.
5. Now back on the settings page itself, you can lower the Margin to 0
6. Hit the Save Changes button at the bottom.
7. Remove the style rule #fancybox-wrap { padding: 0 !important; left:0 !important; } because that will only confuse the script.

Now you should get a better result…