Home › Forums › Support › Horizontal line under header is too long This topic has 7 replies, 2 voices, and was last updated 6 years, 9 months ago by Leo. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts July 28, 2017 at 11:42 am #356360 Christer Martensson I want to have a 1px line under the header. I’ve tried the code: .site-header { border-bottom: 1px solid #a22e2b; } and it works well but I want that line not to be longer than the container’s width (I have set the width to 850px) /Christer July 28, 2017 at 11:43 am #356361 LeoStaff Customer Support Hi there, Can you provide a link to your site? Thanks! July 28, 2017 at 11:46 am #356366 Christer Martensson http://redhousepr.com Now there are two lines because I have added on to pages but that’s the length I want to have in the header July 28, 2017 at 11:52 am #356371 LeoStaff Customer Support Try setting both the header width and inner header width to contained then that first line should work. https://docs.generatepress.com/article/header-layout/ July 28, 2017 at 12:26 pm #356377 Christer Martensson Now the header is aligned to the left July 28, 2017 at 12:30 pm #356381 LeoStaff Customer Support You have this CSS added: .site-header { position: fixed; top: 0; width: 100%; z-index: 2000; } July 28, 2017 at 12:37 pm #356390 Christer Martensson Is it possible to have the header fixed and centered? July 28, 2017 at 12:39 pm #356395 LeoStaff Customer Support Take a look at this: https://docs.generatepress.com/article/navigation-logo/#navigation-as-header Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In