Jump to content

[Share] Add a line between navigation dropdown item

Recommended Posts

Posted

To add a line between navigation dropdown items, you can use this code to Website Tools > Custom CSS.

div.header-nav-folder-item {
    border-bottom: 1px solid #000;
}

image.png.79bdeac24fd3e1696d702d5378bad519.png

Result

image.png.01f5cbaca850f503749cd76979163b9c.png

If you want width of text = width of line, you can use this CSS code

div.header-nav-folder-item a {
    display: inline-block !important;
     border-bottom: 1px solid #000;
}

image.png.4596cd37469c6279028e7861065c8673.png

Result

image.png.97cfc657a7d41909a6916b3e345f543d.png

If you want line appears on hover only, use this CSS code

div.header-nav-folder-item a {
    display: inline-block !important;
     border-bottom: 1px solid transparent;
}
div.header-nav-folder-item a:hover {
    border-color: #000;
}

image.png.64bc5f6c0f23d5702b1f9e18334732b4.png

Result on hover

image.png.3da16751bd07a39137606506486e15ff.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • Replies 0
  • Views 365
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.