Home  >  Q&A  >  body text

Tailwind CSS: Crafting Navigation Design

I'm new to CSS and VueJs, so I'm creating a tab panel design with functionality

Currently, I am using the tailwind CSS plugin

The design I want is like this:

Current: CodePen

I can't copy this wish because I missed:

P粉515066518P粉515066518235 days ago315

reply all(1)I'll reply

  • P粉764785924

    P粉7647859242024-02-27 11:39:53

    What you can do is change your navigation directly in CSS, using:

    nav {
        width: max-content; /*This gonna set a fixed width, it is necessary*/
        display: flex;
        gap: 20px; /*increase as much you want to stay like your template, it is the space between the elements in your flex*/
        background: #ccc; /*Just put your color directly*/
        border-radius: 20px; /*Just put your radius*/;
    }

    reply
    0
  • Cancelreply