0
Welcome Guest! Login
0 items Join Now

Center Module in Module Position?

    • jshort's Avatar
    • jshort
    • Hero Rocketeer
    • Posts: 257
    • Thanks: 1

    Center Module in Module Position?

    Posted 10 years 10 months ago
    • Is there an easy way to center a module in a module position?
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: Center Module in Module Position?

    Posted 10 years 10 months ago
    • Hi there,

      Define 'easy'. There are ways and probably the easiest is to add a module suffix and then create the required css.

      Without seeing the problem it is hard to be more precise.

      Hope this helps 8)

    • 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
    • jshort's Avatar
    • jshort
    • Hero Rocketeer
    • Posts: 257
    • Thanks: 1

    Re: Center Module in Module Position?

    Posted 10 years 10 months ago
    • For example, I'm trying to center the K2 Tools/Search module in Module Position 'content-top-a' using module suffix 'rt-center' or 'center'. I've seen that in a different RT template, but it obviously isn't in the main Gantry framework.

      How do I create a module class suffix 'center'? Do you have to create different suffix/css for each module you want to center?
    • Last Edit: 10 years 10 months ago by jshort.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Center Module in Module Position?

    Posted 10 years 10 months ago
    • "How do I create a module class suffix 'center'?"

      You usually do not need to create new module-class suffixes in this case - Just open up the module's settings and where you see the option "Module Class Suffix" or similar, just enter; rt-center

      You can have several suffixes active for the same module btw.

      I hope this helps.

      To give more advice you should provide a link to your site (as David already mentioned).
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • jshort's Avatar
    • jshort
    • Hero Rocketeer
    • Posts: 257
    • Thanks: 1

    Re: Center Module in Module Position?

    Posted 10 years 10 months ago
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Center Module in Module Position?

    Posted 10 years 10 months ago
    • Use this code...
      div.k2SearchBlock form {
          text-align: center;
      }
      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_fracture). 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.

Time to create page: 0.086 seconds