Jump to content

Header: create bottom border with white space below

Recommended Posts

Site URL: http://bia-dev.squarespace.com

Using 7.1, I would like to style the bottom of the header to include a 3px horizontal line above 10px of white space. I’ve created a horizontal line using: 

header#header {border-bottom: 3px solid #821923;}

I can’t, however, seem to trigger anything to generate white space below. 

The development site is bia-dev.squarespace.com. The attached image illustrates what I’m trying to achieve. (Also want to lower the horizontal nav per the image, but that’s another topic.) 

Thank you. 

IMG_3711 2.jpg

Link to comment
  • Replies 5
  • Views 681
  • Created
  • Last Reply

Thank you tuanphan.  Custom CSS now contains your provided code above and mine has been removed. At first it appeared not working, but then checked on a couple iOS devices (all good), then logged out of Squarespace on the desktop, and it does appear to be working there too. 

Link to comment
9 hours ago, SuanMokkhBKK said:

Thank you tuanphan.  Custom CSS now contains your provided code above and mine has been removed. At first it appeared not working, but then checked on a couple iOS devices (all good), then logged out of Squarespace on the desktop, and it does appear to be working there too. 

So is it working now?

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!)

Link to comment

tuanphan -- Yes. It does appear to be working just fine in the wild on the few devices/browsers I've checked so far.  Now if one is actually logged into the site on Squarespace, however, the line appears briefly on refresh, then a flash of the line's color across the header, then the line disappears, but I can certainly live with that.  Thank you again. 

Link to comment
On 5/20/2020 at 8:32 PM, tuanphan said:

So is it working now?

Yes, but? Can the z-index of the navigation folder content be changed so the horizontal line does to pass over the drop-down menu content -- allow the nav folder background color and nav content to cover up the new horizontal line. I dropped the z-index for the red line as low as it would go and still be visible (z-index: 3;) and  tried targeting the .header-nav-folder-content and .header-nav-folder-wrapper, with a higher z-index but neither of these pushed the red line behind the content. 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.