HI. I’m new to bubble, but have some knowledge of CSS / web development.
I’m trying to create a nav bar with a logo that is centred to the page, however I have two issue:
How do I firstly centre the logo? It is off centre, as it is within a group that includes the menu options to the left and sign in to the right but these are different lengths. I presume I need to align it to a parent container
How do I keep it centred while being responsive?
Thanks.
Hi, @x-w
I can’t guarantee it’s the optimal solution, but I’ll outline a simple resolution.
Enclose the menus on both sides within separate groups, each doubly framed. By keeping the width of the outer groups in the same ratio, the central logo will align in the middle. Here’s an example with an image provided. I’ve set the width of the parent groups on the left and right to 40%. For your site, the login/sign-in button on the right might have a narrower width. Therefore, enclose it in another child group and fix its width. For instance, if you have two buttons with a width of 150px each, the child group should be around 320px wide.