Suda
Posts: 0
Joined: Sat Oct 11, 2014 9:11 pm

Align a button group bottom centre

Hi,

I'm having a requirement to align a button group to bottom and center in the page. I don't want to use the footer as I want to use the same background color to be for the button group I'm putting in. Attached the screen I'm having so far with the use of Footer, where I can see the footer to be different than the page and it doesn't look nice.

I'll be happy to hear any suggestions either:

  1. Have same background image to the footer

  2. Suggestion how to put the button group to bottom center

    Thanks! Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Align a button group bottom centre

Hi Suda,

Please take a look here: http://devcenter.appery.io/documentat...

and you can apply styles to button groups with CSS, here is described a basic approach: http://devcenter.appery.io/documentat...

Caroline Dahllof
Posts: 0
Joined: Thu May 07, 2015 9:07 pm

Align a button group bottom centre

I have used the code below from your docs. It works great for images but I am unable to center a button group. Any suggestions? Many thanks!

Centering a component

To center the component on the page, add the following JS onscreen load event:
Apperyio('mobileimage_1').css('margin', 'auto');
Apperyio('mobileimage_1').css('display', 'block');

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Align a button group bottom centre

Hello Caroline,

Please try adding class name to the button group and try our rules in CSS asset with adding code!important/code to them.

Caroline Dahllof
Posts: 0
Joined: Thu May 07, 2015 9:07 pm

Align a button group bottom centre

Evgene,

This is what I have added to my css file but the group of buttons are not centered.
[dsid=pet_state_radiogroup] .ui-btn {
margin: auto !important;
display: block !important;
}

Please let me know what I should try.

Many thanks!

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Align a button group bottom centre

Hi Caroline,

Please try following solution to center radiobuttongroup component:

  1. Remove or comment all css code you write before.

  2. Create new CSS asset.

  3. Add following CSS code to this CSS asset:

    pre

    /* where "mobileradiogroup_211" is your radiogroup component name */
    [dsid="mobileradiogroup_211"].ui-field-contain{
    display: table;
    margin: 0 auto;
    }

    /pre

    Note: you should use your radiogroup component name.

    Regards.

Caroline Dahllof
Posts: 0
Joined: Thu May 07, 2015 9:07 pm

Align a button group bottom centre

Thank you. That worked like a charm.

Return to “Issues”