Jump to content

Archived

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

Eugenio

Margin in MediaBox

Recommended Posts

Eugenio+    1
Eugenio

Hello, I´m trying to modify the 21px margin in this header (mediabox) http://gruposilva.com.ar/

I inspected with firebug, but when i change the #21, immediately return to 21.

What should i modify? and where? directly in the Custom LESS/CSS window or creating a class and calling in Styling Classes (inside the mediabox)?

Thanks, Eugenio

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

Hello Eugenio 

 

Create a custom class for the media box in the DMS settings panel. You can apply styling to this. 

 

You can see information on where to place your styling here http://docs.pagelines.com/customize/overriding-default-css 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
Eugenio+    1
Eugenio

Thanks Martin Davies, I´ve trying but there is something that i couldn´t see.

 

In the "custom less/css" window, I´ve created the class ".margenheader" and inside i added, for example, the line "margin-top: 0px;" etc

Then in the "mediabox / edit / styling classes" i´ve put "margenheader". It didn´t work. Actually it works, because if i put a margin of 100px, for example, it add 100 px to the margin of 21 that is in onother div or wherever.

So, how could i identified the lines that manage that margin to put into the custom css area?

 

I´ve inspected with firebug, I see the margin of 25 top ((<div class="the-media fitvids pl-centered textleft alignleft hentry" style="margin-top: 25px;">)), but i dont know what should i put in custom css area. 

 

Thanks

Share this post


Link to post
Share on other sites
Rob    547
Rob

Eugenio,

 

If you go to the Header Section, click the little pencil icon. I think you're going to find there's a min-height setting of 200px, which is making your MediaBox very high.  Adjust that down to 100.

 

Additionally, in your MediaBox settings, you also have a min-height set.  You could make that 10. Make sure all the padding settings are set to 0 or any desired padding.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • lbhansen
      By lbhansen+
      I am slowly getting closer to something I like for the general appearance of my site. What's currently nagging me is trying to remove the top and bottom padding/margin from the image in the header. It seems that I've done what I want with the menu but there was dead space above the image and between the image and menu.
      Trying out padding and margin settings, I got something that came close to what I want but saw odd behavior along the way. Changing either the top or bottom padding to 0 (from blank), removed all padding from the top and sides but left a small band between the image and menu.
      Setting all eight padding and margin settings to 0 removed all except the band between image and menu. (But it seems that entering 0 in only the top or bottom padding option is all that was needed.)
      So, heading into the twilight zone, I changed the bottom margin to -1. That removed the band but allowed the menu to slightly overlap the image. AND, narrowing the browser, or viewing on a phone, caused the band to reappear.
      Perhaps there's also a problem with the menu but I don't see it.
      So that's where it stands at the moment: http://756.a44.myftpupload.com 
      I seems to me that if there is a default padding value, setting it to 0 should be all that's needed to get the two sections to meet perfectly on any device/browser width.
    • Perry
      By Perry+
      Hello There, 
      I am working with Platform 5 and have run into an unnerving problem. I am trying to position my clients picture along the bottom of the container, so that it sits right on the bottom. After a good hour of googling and messing with the CSS I figured I would ask the question here. Below is my screenshot displaying my problem. I will need to do this frequently in the future. 
      My Problem Image
      Unlike in DMS, when I add a margin to an embed or image box it simply makes the container larger while keeping the padding, I cannot have any padding or any space whatsoever on the bottom of my clients image.  Is there a way to remove all padding from the container so I can have this work across screen sizes? If not is there anyway to position an element directly at the bottom of another element in Platform 5? This seems like a basic feature and was easily attainable within DMS. 
      I cannot create an image combining all these elements as it will not scale well on mobile and will make my clients logo unreadable and her face incredibly small. 
       
      Thank you for any help,
      Perry
    • chamois_blanc
      By chamois_blanc+
      Hello,
      I am a bit confused about the usage of percentages for section padding/margin settings in the PL5 UI. Percentages don't scale well for mobile devices (especially in height), so those settings are pretty much useless. Case in point, the defaults are expressed in rem units, not percentages:
      .pl-sn-pad { padding: 1rem; ... } Why force the user to use percentages in the PL5 section UI when it would have been as easy to let the user specify the unit?
    • janpeeters
      By janpeeters+
      I've searched the forum but couldn't find any other reports.
      When I enlarge the margin-top in the editor of a text box also margin-left gets enlarged. I would think that's an unwanted behaviour. You can see this here:
      https://goo.gl/OzMA7Z
      Jan
    • Mats
      By Mats
      Hi,
       
      I have used the following code in the customize plugin style.css to adjust my typography however there seems to be a lot of padding on top and below my headings as you can see in the link below and attached screenshot.
       
      h1 {
      padding:0;
      margin-bottom: 0px;
      margin-top: 0px;
      line-height: 1;
        !important;

       
      h2 {
      padding:0;
      margin-bottom: 0px;
      margin-top: 0px;
      line-height: 1,2;
       !important;
        }
       
      h3 {
      padding:0;
      margin-bottom: 0px;
      margin-top: 0px;
      line-height: 1,2;
       !important;
        }
       
      However there still seems to be a lot of padding on the top and the bottom of my headings. See webpage and attached screenshot.
       
      http://www.stallhultman.se/traningskoncept/
       
       
       
       
       
×