WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
Lightbox plus add additional padding (4 posts)

  1. brokerobot
    Member
    Posted 1 year ago #

    I am currently bringing in a Brightvcove video and need to add some additional padding around the entire video. Right now it is positioned to Top Left corner.

    Is there a easy way to add padding? When I target a element it also increases the #cboxContent height/width and then has scrollbars. Any idea on a easy way to center the video in the modal window or add padding to it?

    http://wordpress.org/extend/plugins/lightbox-plus/

  2. tizoast
    Member
    Posted 1 year ago #

    Here's an example of how I did it (with images, mind you—I haven't tried video yet):

    #cboxLoadedContent{margin-top:15px; margin-left:10px; margin-right:10px; margin-bottom:15px;}

  3. brokerobot
    Member
    Posted 1 year ago #

    thanks! I was sort of on the right track, one thing I was missing was changing the Size > inner width/height

    In the size settings is it best to control the inner width/height? Just curious as I am new to this plug in.

  4. tizoast
    Member
    Posted 1 year ago #

    I honestly haven't messed with that setting at all. I just checked "Use Custom Styles" under the Styles tab, and then edited the stylesheet (called "colorbox.css") for the style that I'm using (which is called "Fancypants").

    The stylesheets that are generated after you check the "Use Custom Styles" box and then save all settings will be located at wp-content/lbp-css.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.