Support » Plugin: Atomic Blocks - Gutenberg Blocks Collection » AB Container margin top

  • Resolved mollebjerg

    (@mollebjerg)


    I am using Revolution Pro theme from Genesis. In the frontpage demo the AB container is used. I would like the same effect, but I am not able to set a value below 0 in Margin top (%)

    From demo site: https://d.pr/i/cxghdc
    My live site: https://yndefuld.dk/

    Can you tell, what I am doing wrong?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • detroitwidget

    (@detroitwidget)

    Hi,

    You’re not doing anything wrong.

    When Revolution Pro was first introduced, setting a negative margin was possible. For whatever reason, it no longer is — An Atomic Blocks version change perhaps.

    The problem can be corrected with a bit of custom CSS. First, set the AB Container block top margin to zero, then add the following to your style.css file:

    @media only screen and (min-width: 960px) {
    	.my-container-top-margin {
        	margin-top: -25%;
    	}
    }

    Use any unique CSS class name you like, and be sure to add it to the “Additional CSS Class” field under “Advanced” in the container options panel.

    I hope this helps.

    Thread Starter mollebjerg

    (@mollebjerg)

    Thank you! That works 🙂

    Thread Starter mollebjerg

    (@mollebjerg)

    Resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AB Container margin top’ is closed to new replies.