Home>

Global navigation of headerposition: fix;After fixing to the top with
I wanted to display the main image of the main part that follows from just below the header.
I came up with the height of the header.margin-topIt is a method to display in addition to.
If i can't think of any other good way, could you please tell me?
I look forward to working with you.

  • Answer # 1

    -Use padding-top instead of margin-top
    -Set padding-top in theelement
    -Place a element only for spacing (I think it's a bad move)

    I think there are various means such as.
    Take a look at the various sites and find out what methods are used there.

    * By the way, this stackoverflow has padding-top set.

  • Answer # 2

    It may be off the question,position: stickyI thought I should use.