Skip to content
Advertisement

How do I put the bordered text underneath the nav-menu text?

I did a round bordered text right next to the nav-menu. I having issues on how will I put the text underneath the texts. Refer to the image below.

enter image description here

I wanted to put the coming soon texts underneath the COMPANY and CONTACT menu (I don’t mean doing a sub-menu) Below are the code I did for doing this.

JavaScript

Is it possible to put the round bordered text underneath? If not I’ll try make it stick next to the menu text and get them compressed.

Advertisement

Answer

This is something that I think flexbox is really good for.

The code can look something like this – you’d need to adjust for vue.js of course.

JavaScript

So as you can see, I just wrapped each of the two elements with a div and gave it a class of flex-column. Then in CSS you just add.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement