The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Total newbie teaching myself

  • This topic is empty.
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)
  • The forum ‘Design’ is closed to new topics and replies.