Tailwind CSS: Crafting Navigation Design
P粉515066518
P粉515066518 2024-02-26 16:48:59
0
1
386

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:

  • Space between elements: I tried using flex space-x-10 or grid grid-gap-20 but it doesn't work
  • Background is gray: I tried using bg-gray-600 inside <nav> but Cause not result
  • Change selected tag on click

P粉515066518
P粉515066518

reply all(1)
P粉764785924

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*/;
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template