Skip to Content Skip to Menu

CB-Registration how to center display

  • mickelb
  • mickelb
  • OFFLINE
  • Posts: 45
  • Thanks: 4
  • Karma: 1
21 hours 15 minutes ago #342982 by mickelb
CB-Registration how to center display was created by mickelb
Is there any way to centralise the Registration page layout? Out of the box the page is full width and positioned left. 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50013
  • Thanks: 8553
  • Karma: 1467
17 hours 42 minutes ago #342983 by krileon
Replied by krileon on topic CB-Registration how to center display
Like ours? It's just some CSS. You can apply custom CSS to your site using Joomla's user.css or our CSS overrides feature below.

www.joomlapolis.com/blog/kyle/18711-template-css-overrides-made-easy

Example CSS below should get you started.
Code:
.site .cbRegistration .cbRegistrationDiv { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; } @media (min-width: 768px) { .site .cbRegistration .cbRegistrationDiv { width: 600px; } }

Below is the CSS we use on our site. It's a bit more complicated since we wanted CBSubs to still span the full width.
Code:
.site .cbRegistration .cbFieldsContentsTab, .site .cbRegistration .cbRegistrationButtons { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; padding: 1rem; background-color: #f8f9fa; background-color: var(--light, #f8f9fa); } .site .cbRegistration .cbFieldsContentsTab + .cbFieldsContentsTab, .site .cbRegistration .cbFieldsContentsTab + .cbRegistrationButtons { padding-top: 0; } .site .cbRegistration .cbRegistrationButtons { display: block; } .site .cbRegistration .cbFieldsContentsTab .form-group:last-child { margin-bottom: 0 !important; } @media (min-width: 768px) { .site .cbRegistration .cbFieldsContentsTab, .site .cbRegistration .cbRegistrationButtons { width: 600px; } }


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • mickelb
  • mickelb
  • OFFLINE
  • Posts: 45
  • Thanks: 4
  • Karma: 1
16 hours 22 minutes ago #342986 by mickelb
Replied by mickelb on topic CB-Registration how to center display
Thanks for response.

I have gone to CB> Plugin Management> Default and added your CSS in Overrides and it hasn't made any difference - even after changing some of the position values.

I am building a new Joomla 6 website using the same 3rd party template as I am  using in Joomla 5. In Joomla 5 the Registration form centralises without any custom changes. I have set up CB in Joomla 6 exactly the same as Joomla 5.

So a bit confused why this is happening.     

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50013
  • Thanks: 8553
  • Karma: 1467
16 hours ago #342988 by krileon
Replied by krileon on topic CB-Registration how to center display
It might be the .site class. That might not exist on your Joomla 6 template. Try removing that and it should work fine. My example is also for the flat registration layout so if you're using tabbed or step by step you'll need to adjust what CSS class it's sizing and centering.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: mickelb

Please Log in or Create an account to join the conversation.

  • mickelb
  • mickelb
  • OFFLINE
  • Posts: 45
  • Thanks: 4
  • Karma: 1
14 hours 51 minutes ago #342990 by mickelb
Replied by mickelb on topic CB-Registration how to center display
Great - that worked!
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum