How to change text alignment??

New Member
36 0 0

Hello,

 

I created a custom section and added some code for the new section so i can display custom text at the checkout.

My problem is when i look at my text at the checkout, its alignment is on the left and i dont know how to fix this.

 

look at the screenshot, many thanks.

<div id="textsection">
  <div class="simpletext">
    <h1> {{ section.settings.text-box-title }} </h1>
    <h3> {{ section.settings.text-box-content }} </h3>
  </div>
</div>



{% schema %}
  {
    "name": "Text Box",
    "settings": [
	{
		"id": "text-box-title",
    	"type": "text",
    	"label": "Heading",
    	"default": "Title"
	},
	{
		"id": "text-box-content",
    	"type": "richtext",
    	"label": "Add custom text below",
		"default": "<p>Add your text here</p>"
	}
]

}

{% endschema %}

{% stylesheet %}
{% endstylesheet %}

{% javascript %}
{% endjavascript %}

 

1f893515a39e22c15c1166692e42c938.png

0 Likes
New Member
36 0 0

Nevermind i found the solution!

0 Likes