Jump to content

Change line spacing + add outline to menu

Go to solution Solved by Lesum,

Recommended Posts

@niteshifte Here's a code snippet to add line spacing and outline to dropdown menu:

.header-nav-folder-item {
	line-height: 1.8 !important;
}

.header-nav-folder-content {
	padding: 1em 1em !important;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
4 minutes ago, Lesum said:

@niteshifte Here's a code snippet to add line spacing and outline to dropdown menu:

.header-nav-folder-item {
	line-height: 1.8 !important;
}

.header-nav-folder-content {
	padding: 1em 1em !important;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
}

 

Incredible!! Thanks so much Sam!! Whilst I have you Sam, is there a code I can add to this to round the corners of the drop down? Thanks again!

Link to comment
  • Solution

Here's is the updated code with rounded corner: 

.header-nav-folder-item {
	line-height: 1.8 !important;
}

.header-nav-folder-content {
	padding: 1em 1em !important;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	border-radius: 5px !important;
}

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
1 minute ago, Lesum said:

Here's is the updated code with rounded corner: 

.header-nav-folder-item {
	line-height: 1.8 !important;
}

.header-nav-folder-content {
	padding: 1em 1em !important;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.45);
	border-radius: 5px !important;
}

Genius Sam! Thanks so much!!

Link to comment

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.