NavMenu | Center Logo | NavMenu

Hey @Eldar, thanks and good point, it wasn’t working when I first built it earlier that day and I didn’t try it again :joy: (nice spotting)

If this was an actual project of mine both icons would have had classes anyway and I would have used the display property and not the visibility. I would try and avoid having some styles in the side panel and others in a custom class if I can.

Flex is definitely one of the key things to get your head around heading into the future with Bootstrap.

EDIT: Interesting when I re-tried the visibility it worked, must have been one of those “things”. In my own project I would have also used the class navbar-brand for the other image and not used the visibility options.

3 Likes

So nice to put a voice to your pict :stuck_out_tongue: great video!!
What if you want to do something like this?

1 Like

The answer is on the Bootstrap Docs, which is why I put that in the video :grin:

We are lucky to be the only nation with no accent :rofl:

You should hear mine :stuck_out_tongue:

Can you divide the list on you need to do two for this nav? I check on a website with this and they are using two lists one for right and another for left!

You can use the same process I used above. Just set the logo to take up more space.

Ahh right!! Thank you :blush:

Hey,

If you wanted to create was Stewie was suggesting you can do this with 1 extra class.

Used a class called flex-fill and changed the menu width to 100%.

3 Likes

What happened to your voice :stuck_out_tongue:
Awesome video!!! Thanks a lot! Im actually doing a website like this right now :smiley:

Video seems to be deleted from your dropbox now :frowning:

Yes. I had a big clean out.

I saw someone link to this in another post:

Is the video gone for good? Or it survived your clear-out in some form?

:skull_and_crossbones: Deleted :skull_and_crossbones:

Actually @alanwho I realised its on my YouTube channel. Blocs 3 - Centre Menu Logo with Flex - YouTube

This is much easier to make in Blocs 4. As you can do everything in the class editor now.

Hey, Why when doing this on blocs 4 doesn’t work for me? What Im missing?


To center the navigation using flex, you’d need to set the width to use 100% of the parent element, which is the full width nav container

1 Like

Set the width to 100%

EDIT: Whoops sorry to repeat what @pumpkin said, for some reason I didn’t see your post? … Oh you were editing it :grin:

1 Like

Yeah. I was being dumb and didn’t read the thread title before I posted :wink:

1 Like

thank you so much guys, it works :smiley:
Question: How can you float the menu items to the left and right border?

Watch the flex video. Also change the flex justify setting, and set some width for the menu items.

Hint: By setting a width for the menu items, they space evenly. You can use % for this.

1 Like

Thank you :slight_smile:

How do you mean what happened to the video?. The old one is still on YouTube.

Of course it’s dated. Blocs 4 makes it easy.