dimis164
dimis164

Reputation: 130

Umbraco - Add spacing under element

The question might seem stupid. but i really can't find what i should type on the "Add spacing under element" text box to achieve the spacing from the CMS and not hard-coded. In an element properties you can see this window:

Umbraco Element Properties

Umbraco version 7.2.5 assembly: 1.0.5610.18894 Free License for now but planning to get one this week.

Upvotes: 1

Views: 742

Answers (1)

Chaitanya Gadkari
Chaitanya Gadkari

Reputation: 2787

Okay I got your point. You are using Grid Layout. By default Umbraco Grid layout datatype have setting class and styling background image as below enter image description here

This can be found in Developer -> Datatypes - > datatype you have created with "Grid Layout", You can find data type name in Setting->Document types -> Name of home doc type -> generic properties

You can change settings and styles by clicking edit, it contains json data as below. This is default value

For setting

[
  {
    "label": "Class",
    "description": "Set a css class",
    "key": "class",
    "view": "textstring"
  }
]

For Style

[
  {
    "label": "Set a background image",
    "description": "Set a row background",
    "key": "background-image",
    "view": "imagepicker",
    "modifier": "url({0})"
  }
]

Get full details on link

Now your scenario.

I think according to description, you have used this to add padding-bottom or margin-bottom style on the element. So you must use values like "20px" or "10px". Try only numbers like "10" if this don't work

Upvotes: 2

Related Questions