0
Welcome Guest! Login
0 items Join Now

Taking margins and padding out of block areas

  • Taking margins and padding out of block areas

    Posted 9 years 11 months 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: 3229
    • Custom work done

    Re: Taking margins and padding out of block areas

    Posted 9 years 11 months 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: 3229
    • Custom work done

    Re: Taking margins and padding out of block areas

    Posted 9 years 11 months 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 9 years 11 months ago
    • Thanks Dan. :-) This is a new adventure...
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: SOLVED Taking margins and padding out of block areas

    Posted 9 years 11 months 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.063 seconds