Jump to content

Archived

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

jacobtippett

Unknown Padding in Mediabox

Recommended Posts

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

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

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

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

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

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

    • ideascurator
      By ideascurator+
      Hello Pagelines,   I no longer use pagelines services. I have deactivated the automatic annual payment. But it already charged to my credit card. Since I cancelled my contract before the end, Can I request to refund?
    • Anthony King
      By Anthony King+
      Hello,
      I am wanting to know what the status of the Pagelines Platform.
      I have noticed that there has been absolutely no updates on Platform 5 for over 8 months.
      Please tell me you haven't gone off on another tangent and going to build the next great solution
      and then leave all of us to have to completely rebuild our sites like we did for
      Pagelines, then DMS, then Pagelines Platform.
      I like what you build, but what you need to do is build one product and then make it better, rather than 
      abandoning it and building something else.
      You haven't done anything for so long that even WordPress is providing a warning.
      "Warning: This plugin has not been tested with your current version of WordPress."
      So what is the Status. I mean if I am going to pay a monthly fee for a product, I don't want to pay for one
      that is no longer being supported. You have a great product, I'm not bashing it, I'm just wondering what 
      your next move is because I have business decisions to make for myself, and whether of not this is something
      I should stick with.

      Please be kind enough to respond.

      Thank You,
      Anthony
    • Steve Webb
      By Steve Webb+
      I am having an issue with DMS editor not loading.  Just keeps spinning and spinning.
      Have tried several things - Logged in and out, cleared cache, deactivated all plugins, but the issue persists.
      I even had our host restore from a backup a few weeks ago, when I know it WAS working, as I edited a text box on the homepage.  The restore from backup didn't help either.
      Also, the front end of the site shows that the site is framed, or boxed now (whatever you call it), instead of full width as it was previously (last week).
      Dev console shows that there are php errors in Google maps - file is attached.
      Can someone please help?  Not sure what else I can do here...
      Thanks in advance.
      -Matt

    • tuciudadenred
      By tuciudadenred+
      Hi everyone, what happens is that the web page metrosalarmas.com has a google tags which I have not attacked where I can look to remove those tags and be able to locate the correct ones.
×