[Support request] Horizontal line under header is too long

Home Forums Support [Support request] Horizontal line under header is too long

Home Forums Support Horizontal line under header is too long

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #356361
    Leo
    Staff
    Customer Support

    Hi there,

    Can you provide a link to your site? Thanks!

    #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

    #356371
    Leo
    Staff
    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/

    #356377
    Christer Martensson

    Now the header is aligned to the left

    #356381
    Leo
    Staff
    Customer Support

    You have this CSS added:

    .site-header {
          position: fixed;
          top: 0;
          width: 100%;
          z-index: 2000;
    }
    #356390
    Christer Martensson

    Is it possible to have the header fixed and centered?

    #356395
    Leo
    Staff
    Customer Support
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.