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.

Taking margins and padding out of block areas

  • Taking margins and padding out of block areas

    Posted 10 years 3 weeks ago
    • I have the need to remove all padding and margin in a block so that it butts with block above it.
      What is the new way to do it without custom css overrides? I am using Gantry Hydrogen but assume its the same with all G5.:-)
      Exammple:
      sudlerchicago.com/newbuild2015

      I want that Red Semi Circle to butt up against the bottom of the Blue Navigation bar..
      I added no margin nopadding(cool) but what else can I do. Can I remove overall block padding and margins?
      Digging in on this. Looks like it is worth the wait.
      :-)
      Whats the way to make custom css is it the same as Gantry 4?
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3230
    • Custom work done

    Re: Taking margins and padding out of block areas

    Posted 10 years 3 weeks ago
    • Just as AfterBurner was designed specifically for the Gantry 4 framework, so to is Hydrogen to the Gantry 5 framework. So I've moved this post out of the Callisto forum to the Gantry framework forum.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3230
    • Custom work done

    Re: Taking margins and padding out of block areas

    Posted 10 years 3 weeks ago
    • edesigninc wrote:
      I want that Red Semi Circle to butt up against the bottom of the Blue Navigation bar..
      I added no margin nopadding(cool) but what else can I do. Can I remove overall block padding and margins?
      Digging in on this. Looks like it is worth the wait.
      :-)
      Whats the way to make custom css is it the same as Gantry 4?

      Just as in Gantry 4, module class suffix would do most of the work but we still would need Custom CSS to finish the job.

      In your custom.scss file add this:
      #g-main, #g-main .g-content {
          margin: 0;
          padding: 0;
      }
  • Re: SOLVED Taking margins and padding out of block areas

    Posted 10 years 3 weeks ago
    • Thanks Dan. :-) This is a new adventure...
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3230
    • Custom work done

    Re: SOLVED Taking margins and padding out of block areas

    Posted 10 years 3 weeks ago
    • edesigninc wrote:
      Thanks Dan. :-) This is a new adventure...

      Truly. I was shaking my head last week (old dudes ≠ learning curves) as I was trying to sort through all this.
      I remember the Devs telling us how FAST G5 would be and for me that now is a tangible and proven point. However to acheive this and other creative capabilities that G4 would NEVER have, some compromises had to be made.

      So as designers we just do what is required of us so often - we adapt :whistle:
    • The following users have thanked you: Bay Area Jenn

Time to create page: 0.059 seconds