0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

SOLVED Remove top padding and margin from g-content

  • SOLVED Remove top padding and margin from g-content

    Posted 6 years 3 months ago
    • I try to tight elements of page and put in custom.scss
      .outline-17 #g-content {
          margin-top: 0rem;
      	padding-top: 0rem;
      } 
      but no effect, please advise
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Remove top padding and margin from g-content

    Posted 6 years 3 months ago
    • 1. g-content is a class not an ID so it should be .g-content instead of #g-content
      2. g-content is used in lots of places and that CSS statement is going to affect lots of places - I think your CSS should be more specific so you only affect what you want.
      3. Did you really mean to restrict that change to just one outline with ID 17? I can't see that outline used anywhere?
      4. You should really be using block variations to affect padding and margins on content. e.g. "no margin" "no padding" etc.

      Regards, Mark.
    • The following users have thanked you: Borys Grebnevskyi

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: SOLVED Remove top padding and margin from g-content

    Posted 6 years 3 months ago
    • Thank you Mark, you as always quick and give proper answer!

      This outline was created for only one type of similar pages, so it will not affect other kinds of pages

      Kind regards

      Borys

Time to create page: 0.076 seconds