Jump to content

Archived

This topic is now archived and is closed to further replies.

jacobtippett

Unknown Padding in Mediabox

Recommended Posts

jacobtippett+    1
jacobtippett

Hello,

 

I am trying to get a MediaBox clickable, which I was able to do, but when doing so it added a large amount of unneccesary padding to the top and bottom of the image. I am trying to get it very close to the navigation bar. I can't seem to figure out how to fix this: [attachment=1670:Screen Shot 2013-10-19 at 1.36.19 AM.png]

 

The code I am using is:

 

 

<img border="0" src="[pl_site_url]/wp-content/uploads/2013/10/visionhome.jpg" alt="Our Vision"></a></p>
 
I am putting that code in the embed HTML section of a MediaBox.
 
 
Thanks!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi Jacob,

 

If you look at the MediaBox settings, you're going to see an option for Minimum Height.  The default of this setting is 200px, so if you don't set it to something smaller than the height of your image, it will presume you wanted 200px min-height and it will write min-height: 200px; into the inline styling for the section.

 

Change it to something like 25 (you just need the number, not the 'px'), and you'll see that all that top/bottom extra space will disappear.  Since it's a minimum, anything larger held within the section will show without the extra space.

 

I hope this helps!


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
jacobtippett+    1
jacobtippett

Thanks for the reply, Rob

 

I have tried that and still, the mediabox still stays the same height. Could it have to do with the fact that I am using the HTML area and not the image area? I wonder if the minimum height applies to that...

 

 

http://cl.ly/image/010Y260d1w1x

Share this post


Link to post
Share on other sites
Rob    547
Rob

I'd recommend changing the 150 to 15, and removing that errant </p>. You don't need it.   Also, make the entire string on one line, as in

<a href="URL"><img src="IMAGE URL" border="0"></a>

Where the code is place is not important.  However, just so that you know, it's possible to place that corrected HTML in a TextBox too.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
jacobtippett+    1
jacobtippett

That seemed to solve the problem enough to work! I put the html in a text box. It still has a tad bit of padding on the top and a little more that the top on the bottom, but it looks a lot better. Thank you Rob!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Glad to help Jacob, as always.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
×