Comments on Container Macro

Last modified by Admin on 2024/04/08 00:20

  • Unknown User
    Unknown User, 2014/05/20 20:10

    Is there any way to specific the column witdths within the container?

    For example:

    {{container layoutStyle="columns" column1="75%"  column2="25%"}}
    (((first column)))
    (((second column)))
    {{/container}}
    • Unknown User
      Unknown User, 2014/05/20 22:29

      Normally you'd use a StyleSheetExtension object and use something like:

      .column .first-column {
       width:75%;
      }

      However this may not work because your SSX may be loaded after the columns.css which is loaded dynamically by the Container Macro. And thus the the width defined in columns.css will override whatever value you have put.

      Unfortunately at this point there's no priority for JSX/SSX and it's not possible to order them....

      However by using CSS precedence rules we can trick our way in emoticon_smile

      Use this in your SSX (for example):

      div.container-columns  div.first-column {
       width:20%;
      }
      div.container-columns  div.last-column {
       width:75%;
      }
      • Kerwin Olfers
        Kerwin Olfers, 2022/01/12 10:28

        Would there be a way to give specific widths for more than three columns? E.g. if I make 4 columns, I can see "first-column", "last-column" and simply "column" for the two in between. Is there any way to address the middle two separately?

Get Connected