Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Confiforms - How do I center a form on a page

I have defined the width of my embedded form manually and now would like it to appear centered on a page. Does anyone know the CSS that I need to apply to the registration control to tell it to do this?

Just to be clear, I don't want the content in the form centered (fields, text). I just want the form to display centrally on a page.

3 answers

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 26, 2021

This is really not something solely for ConfiForms to manage, as it uses the container you are placing it into.

Which means, you need to center the "container"

The easiest way is to use something like a "div" macro from content formatting plugin and adding some CSS styling.

Screenshot 2021-02-26 at 11.36.25.png

To get something like (of course, it depends on the form itself - but you can see it is centrally aligned)

Screenshot 2021-02-26 at 11.36.39.png

Hope it helps

Alex

Thanks Alex - I'll investigate building myself a div macro.

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 28, 2021

Building a div macro using the user macro will not work for everything because of the bug in how user macros are rendered - our experience... (and yes, reported to Atlassian - https://jira.atlassian.com/browse/CONFSERVER-25507 )

See https://wiki.vertuna.com/display/VERTUNA/Div+container 

So it needs to be built either as a "real" Confluence plugin or some 3rd party used...

Alex

@Matthew Martin simple & effective way to center your embedded form on your page is to:

  1. Add a section macro
  2. Add 3 column macros inside the section macro
  3. Configure the left-most and right-most column macro to have a width of 25%
  4. Configure the center column macro to have a width of 50%
    Screen Shot 2022-06-21 at 4.59.33 PM.png
  5. Place your Confiform Registration macro within the center column macro
  6. Configure your Confiform Registration macro to have a fixed width (1050 was the size width I needed for my form. Your form's width may be different.)

    Screen Shot 2022-06-21 at 4.58.07 PM.png
0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 25, 2021

@Matthew Martin 

Can you share with me the HTML of the page, specifically just the html of the form and I will be able to give you the CSS.

Hmm - what's the best way to share it? It's about 800 lines.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events