Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Valentin Valeanu 29 posts 152 karma points
    Nov 16, 2017 @ 12:30
    Valentin Valeanu
    0

    Assigning a background color to a division (Grid Layout)

    Hello

    I have a row configuration of two divisions. I want to make the background color of one of this divisions, grey. How can I do this, can somebody help me?

  • Ben Palmer 176 posts 842 karma points c-trib
    Nov 16, 2017 @ 22:08
    Ben Palmer
    100

    Hi Valentin,

    The following link will get you on your way:

    https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout/settings-and-styles

    However, here's an example using the default grid view:

    1. Login to Umbraco and go to Developer -> Data Types.
    2. Find your grid data type in the Data Types folder.
    3. Click the your grid data type and scroll down to Settings in the main pane.
    4. Click Edit
    5. The right sidebar that opens up allows you to set up your row and column settings.

    Here's one to get you started:

    [
      {
        "label": "Background Colour",
        "description": "Choose a background colour.",
        "key": "class",
        "view": "radiobuttonlist",
        "modifier": "col--{0}",
        "applyTo": "cell",
        "prevalues": [
          {
            "label": "White",
            "value": "white"
          },
          {
            "label": "Green",
            "value": "green"
          }
        ]
      }
    ]
    

    The options here are all listed in the documentation link above.

    Hope that helps.

  • Valentin Valeanu 29 posts 152 karma points
    Nov 21, 2017 @ 11:50
    Valentin Valeanu
    0

    Thank you a lot Ben. I managed to apply the idea that you sugested and now i finally can choose the backgroud color of my divison. :)

Please Sign in or register to post replies

Write your reply to:

Draft