SuanMokkhBKK Posted May 19, 2020 Share Posted May 19, 2020 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. Link to comment
tuanphan Posted May 19, 2020 Share Posted May 19, 2020 Remove code you used and add this to Home > Design > Custom CSS header#header:after { content: ""; background: red; display: block; width: 100%; height: 3px; position: absolute; bottom: 10px; z-index: 999; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
SuanMokkhBKK Posted May 20, 2020 Author Share Posted May 20, 2020 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
tuanphan Posted May 20, 2020 Share Posted May 20, 2020 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
SuanMokkhBKK Posted May 21, 2020 Author Share Posted May 21, 2020 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
SuanMokkhBKK Posted May 27, 2020 Author Share Posted May 27, 2020 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.