Skip to main content


This topic contains 1 reply, has 2 voices, and was last updated by  wolfcry911 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #291937


    How do I add a div of white at the top on my page here:

    Above the logo section and also with a small line of color at the bottom of that white section.

    Also, would this be in the CSS or the html?



    There are many ways to accomplish this. I’ll give you one (the way I would do it). What you don’t want to do is add extraneous elements to the html just for styling purposes.

    I’d add a top border to the body.

    body { border-top: 20px solid white; }

    And then add the color line as a top border to the .banner div

    .banner {border-top: 5px solid green; }

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star