Developer forum

Forum » Rapido » Align button to the right

Align button to the right

Gerard Kocks
Gerard Kocks
Reply

Hi,

We would like to align a button to the right in a paragaph, or a paragaph in a paragraph container, but we cannot find how to do it in CMS.
Can someone please tell me if it is possible?

Best regards
Gerard

Align_button_right.png Align_button_right_2.png

Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Gerard

There is no particular setting for this in the CMS. And I think that if you need a design where the the button is right aligned, the rest of the content should be left aligned. 

It is possible to do with only css - But the code is not beautiful:

.multiple-paragraphs-container .u-margin-top--lg.u-margin-bottom {
    width: 100%;
}

.multiple-paragraphs-container .btn.btn--tertiary.dw-mod {
   text-align: right;
   float: right;
   justify-content: right;
}

 

The other solution is to create the functionality in the template.

 

Best regards
Karsten Thuen

 

You must be logged in to post in the forum