Hello There,
Thank you for the clarifications. You can achieve what you have in mind by setting the column container off and enabling the margin columns option in the row settings. In each of the column, you will need to insert a text element and insert your text. On the left column, place a custom class right
in the class field of the text element. In both of the text element settings, please insert this inline css in the style field: color: #fff !important; padding: 20px; max-width: 470px;
. I assume that your maximum content width is just 900 pixels. 900 will be divided in two plus some paddings and that is why I am using 470 as the maximum width for both of the text elements. For example result: http://prntscr.com/fxybyj
I am not sure of I have explained it clearly. If you couldn’t get it, please make use the code below as a cornerstone block template.
Please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file
{
"title": "fullwidth-text-contained",
"elements": [
{
"_type": "section",
"title": "Section 1",
"elements": [
{
"_type": "row",
"title": "New Item 1",
"_column_layout": "1/2 + 1/2",
"elements": [
{
"_type": "column",
"_active": true,
"size": "1/2",
"elements": [
{
"_type": "text",
"elements": [],
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer scelerisque eros eu pulvinar dictum. Nunc egestas massa at elit bibendum, cursus fringilla nunc faucibus. Proin dignissim efficitur nunc a cursus. In luctus mi in nisi condimentum, sed ornare enim tempor. Praesent semper ultricies tellus, rutrum fermentum leo viverra at. Sed a venenatis ante, non aliquam tortor. Aliquam erat volutpat. Curabitur felis elit, rhoncus et molestie in, auctor euismod lorem. Etiam viverra hendrerit metus, vitae ullamcorper metus ultricies ut. Ut eu ex id ligula viverra auctor at quis urna.",
"text_align": "j",
"style": "color: #fff !important; padding: 20px; max-width: 470px;",
"class": "right"
}
],
"bg_color": "hsla(0, 0%, 0%, 0.7)",
"text_align": "r"
},
{
"_type": "column",
"size": "1/2",
"_active": true,
"elements": [
{
"_type": "text",
"elements": [],
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer scelerisque eros eu pulvinar dictum. Nunc egestas massa at elit bibendum, cursus fringilla nunc faucibus. Proin dignissim efficitur nunc a cursus. In luctus mi in nisi condimentum, sed ornare enim tempor. Praesent semper ultricies tellus, rutrum fermentum leo viverra at. Sed a venenatis ante, non aliquam tortor. Aliquam erat volutpat. Curabitur felis elit, rhoncus et molestie in, auctor euismod lorem. Etiam viverra hendrerit metus, vitae ullamcorper metus ultricies ut. Ut eu ex id ligula viverra auctor at quis urna.",
"text_align": "j",
"style": "color: #fff !important; padding: 20px; max-width: 470px;",
"class": "left"
}
],
"bg_color": "hsl(0, 65%, 51%)"
},
{
"_type": "column",
"size": "1/1",
"_active": false,
"elements": []
},
{
"_type": "column",
"size": "1/1",
"_active": false,
"elements": []
},
{
"_type": "column",
"size": "1/1",
"_active": false,
"elements": []
},
{
"_type": "column",
"size": "1/1",
"_active": false,
"elements": []
}
],
"inner_container": false,
"marginless_columns": true
}
]
}
]
}
3] Save the file named as your-filename.csl
4] Upload this file as a cornerstone template to the page that you are editing in Cornerstone. You must import this as a block template.
Hope this helps.