0
Welcome Guest! Login
0 items Join Now

SOLVED Changing body .rt-block margin

    • ivan's Avatar
    • ivan
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0
    • Some IT Guy

    SOLVED Changing body .rt-block margin

    Posted 8 years 6 months ago
    • HI all,
      I have this inside my master css


      body .rt-block {
          margin: 25px 10px;
      }



      I want to change it like that


      body .rt-block {
          margin: 45px 10px;
      }

      I insert this on my custom css file but it didn't make the change i need. What else i need to change? The problem is i want the body to move down becouse the menu is going over the articles Titles. My templete is Anacron.

      Thanks
    • Some IT Guy
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Changing body .rt-block margin

    Posted 8 years 6 months ago
    • Could you please post a URL to your site (this can be done in the secure area tab if you prefer) so we can look for you. Without a link to page where the problem is on your site it is quite hard for us to provide the best solution due to so many variables. We try to provide file names and line numbers for code changes and if changes have already been made then our advice may be incorrect.

      Really it's not a good idea to make such a generic change to a gantry framework element like that as it will most likely have unforseen consequences.

      What did you call the custom CSS file?

      This is how to create a custom CSS compatible with Gantry 4...

      Simply create a file called "<TEMPLATENAME>-custom.css" and put this file in the CSS folder of the template (where <TEMPLATENAME> is the name of the template as seen in template manager e.g. rt_iridescent would be rt_iridescent-custom.css). GANTRY4 will automatically load this CSS file. If you wish, you can also have browser specific files by appending, for example, "-ie9" making the filename "<TEMPLATENAME>-custom-ie9.css"

      Regards, Mark.
    • 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.
    • ivan's Avatar
    • ivan
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0
    • Some IT Guy

    Re: SOLVED Changing body .rt-block margin

    Posted 8 years 6 months ago
    • This message contains only secure information that is visible to MrT, moderators and administrators
    • Some IT Guy
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Changing body .rt-block margin

    Posted 8 years 6 months ago
    • Use this code...
      body#scrollheader.layout-mode-responsive {
          padding-top: 120px;
      }
      This is how to create a custom CSS compatible with Gantry 4...

      Simply create a file called "<TEMPLATENAME>-custom.css" and put this file in the CSS folder of the template (where <TEMPLATENAME> is the name of the template as seen in template manager e.g. rt_iridescent would be rt_iridescent-custom.css). GANTRY4 will automatically load this CSS file. If you wish, you can also have browser specific files by appending, for example, "-ie9" making the filename "<TEMPLATENAME>-custom-ie9.css"

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

    • 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.
    • ivan's Avatar
    • ivan
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0
    • Some IT Guy

    Re: SOLVED Changing body .rt-block margin

    Posted 8 years 6 months ago
    • Thank you for your help
    • Some IT Guy

Time to create page: 0.072 seconds