• I love this Plug-In! I will be going Pro!

    I have an issue where some of my buttons do not align properly. I am confused because all buttons are the same size. I read a previous thread about “enabling the Container option” but I cannot find this! If you look at my test page here you’ll see that the button alignment starts off OK but then goes wrong at the button called “Post Installer”.

    Here is my Button related code:

    [one_half last=”no”][maxbutton id=”1″]  [maxbutton id=”11″]  [maxbutton id=”12″][/one_half]
    [one_half last=”yes”][maxbutton id=”1″]  [maxbutton id=”1″]  [maxbutton id=”1″][/one_half]

    [one_half last=”no”][maxbutton id=”13″]  [maxbutton id=”14″]  [maxbutton id=”15″][/one_half]
    [one_half last=”yes”][maxbutton id=”1″]  [maxbutton id=”1″]  [maxbutton id=”1″][/one_half]

    [one_half last=”no”][maxbutton id=”16″]  [maxbutton id=”17″]  [maxbutton id=”18″][/one_half]
    [one_half last=”yes”][/one_half]

    [one_half last=”no”]<p style=”text-align: center;”>[maxbutton id=”19″]</p>[/one_half]
    [one_half last=”yes”][/one_half]

    [one_half last=”no”]<p style=”text-align: center;”>[maxbutton id=”1″]</p>[/one_half]
    [one_half last=”yes”][maxbutton id=”1″]  [maxbutton id=”1″]  [maxbutton id=”1″][/one_half]

    [one_half last=”no”]<p style=”text-align: center;”>[maxbutton id=”1″]  [maxbutton id=”1″]</p>[/one_half]
    [one_half last=”yes”][maxbutton id=”1″]  [maxbutton id=”1″]  [maxbutton id=”1″][/one_half]

    Thanks in advance!

    https://wordpress.org/plugins/maxbuttons/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi. Thanks for the compliments and thanks for making a perfect test page.

    To answer the question first. The post Installer button goes down because of two reasons. First the top padding is different, and second the text is on one line, the two others have a line break. It feels a bit strange, but this is how HTML and browser allocate their spacing in these cases.

    If you want to see this for yourself you can check your browser developers screen ( F12 ) and see HTML -> Layout to see the sizes of it all.

    To fix it I’d recommend a few approaches :

    – In the plugin you can specify height and width ( under dimensions ). That should already solve some problems.

    – In the plugin you can use the same button but with different text and link like this:

    [maxbutton id="1" text="Google" url="http://google.com"]

    and replace the values with what you want. This will also help consistency and it’s a lot less work when you have only one button.

    And lastly if this all doesn’t work you can try to put it in a container, but this might cause other issues. The container option is found in the button editor ( under ‘container’, there is a ‘use container’ checkbox ).

    Thread Starter adekenney

    (@adekenney)

    Many thanks for your fast reply! I already specify a height and width but I will look now at the rest of your suggestions!

    Just one question regarding Padding. I set the Padding to 12px on buttons with a single line of text (so the text appears exactly in the middle of the button) and 5px for buttons with 2 lines of text, (aian, (so the text appears exactly in the middle of the button). Will I need to have the padding the same for all buttons if I want them to appear on a line? Or will experimenting with the ‘container’ fix this?

    Thanks again Bas!

    Thread Starter adekenney

    (@adekenney)

    Ignore my previous questions Bas! It’s all sorted!

    MANY MANY thanks for this great Plug-in!

    Thread Starter adekenney

    (@adekenney)

    Spoke too soon Bas! If I put two buttons on the same line with different paddings then the buttons do not align.

    I am going to play with the ‘container’ option now…!

    Thanks.

    Plugin Author Bas Schuiling

    (@basszje)

    Good luck!

    I’m not sure if containers are going to help in this case. The main issue you are facing is that the buttons should be large enough to contain two or three lines of text. That’s a combination of the height and probably removing the bottom padding if any ( can interfer, just the top and left to position the text ) .

    Unfortunately that probably means the buttons with little text will have a large square with nothing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Button Alignment’ is closed to new replies.