Set size of lightbox for inline content
-
How do I set the width for the lightbox when I use inline content? The height seems to detect my content height but the width is fixed at about 640px.
Also is there any documentation for overriding its CSS generally? I see it uses inline styles so CSS in my style.css will not override this.
In this example my content is 800px wide and is wider than the lightbox.
<style type="text/css"> .colorbox-panel { width: 800px; height: 400px; background-color: silver; padding: 25px; } </style> [wp_colorbox_media url="#thumb_1" type="inline" class="my-custom-class" hyperlink="/wp-content/uploads/path/to/my-thumbnail-300x300.jpg"] <div style="display: none;"> <div id="thumb_1" class="colorbox-panel"> <h2 class="lb-heading">This is a heading/h2> <p>Duis pulvinar ornare congue. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus nec tempor felis.</p> </div> </div>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Set size of lightbox for inline content’ is closed to new replies.