Hi,
I have added a separating line above my nav menu but it does not fill the screen like the one below it.
How can I make it the same width as the line underneath?
Thanks
URL: www.atmos.art
A user added a separator line above their navigation menu, but it doesn’t extend to full screen width like the line below it does.
Current Implementation:
theme.liquid file<div> with inline styling (border-top: 1px solid #000000)Suggested Solution:
header.liquid or sections/header.liquidwidth: 100vwmargin: 0, padding: 0, position: relative, left: 0Current Status:
The original poster cannot locate the suggested code structure in their files and has shared their existing implementation for further guidance. The issue remains unresolved.
Hi,
I have added a separating line above my nav menu but it does not fill the screen like the one below it.
How can I make it the same width as the line underneath?
Thanks
URL: www.atmos.art
Hi,
Hope this will work
CSS Example
.top-separator {
width: 100vw; /* 100% of the screen width */
height: 1px;
background-color: #000; /* or whatever color your line is */
margin: 0;
padding: 0;
display: block;
position: relative;
left: 0;
}
Hi,
I can’t find those lines of code. Here is the code I am currently using to add a separator line above if that helps. It is in the theme.liquid file.