Add left and right margins to test

4 replies · opened Aug 13, 2020

77Lexen7Aug 13, 2020

Hi there,

For the following

<h4 class="font-body" style="background-color:hsla(30, 2%, 18%, 0.77);">
DMS has extensive experience producing videos of all kinds, from feature-type hero pieces, to entertaining branded content, to how-to's and interviews. Scroll down to view a selection of video content produced by DMS's Kevin Duke.
</h4>

I would like to add some margins around the text... so that the background color is not so tight around the text...
Is this possible?

Here is the entire chunk

<div class="row clearfix">
<div class="col-md-6"></div>

            &lt;div class="col-md-6"&gt;
              &lt;div class="emphasis-title"&gt;
                &lt;h1 class="font-body"&gt;
                  **DMS Video Playlist**
                &lt;/h1&gt;
                &lt;br&gt;
                &lt;h4 class="font-body" style="background-color:hsla(30, 2%, 18%, 0.77);"&gt;
					DMS has extensive experience producing videos of all kinds, from feature-type hero pieces, to entertaining branded content, to how-to's and interviews. Scroll down to view a selection of video content produced by DMS's Kevin Duke.
				&lt;/h4&gt;
              &lt;/div&gt;

              &lt;!--a
                href="/playlist.html"
                target="_blank"
                class="button button-large button-white button-light capitalize"
                style="border-radius: 23px;"
                &gt;Production - Playlist&lt;/a
			  --&gt;

              &lt;!--&lt;i class="icon-play-sign"&gt;&lt;/i&gt; Watch the Video--&gt;
            &lt;/div&gt;
          &lt;/div&gt;

Screen shot showing the too-tight borders is attached...

Thank you!!!!!

SSemicolon WebSTAFFAug 15, 2020

Hello,

You will need to use the .p-* Classes available here: https://getbootstrap.com/docs/4.5/utilities/spacing/ on your Element to adding Padding to the Container.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

77Lexen7Aug 19, 2020

Thank you for that.
Any chance you can give me an example of how to implement that class?
Thank you!

SSemicolon WebSTAFFAug 20, 2020

Hello,

According to your Codes, this should look like this:

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

77Lexen7Aug 27, 2020

Thank you!!!!!!!!!!!!!!!!!!!!!!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard