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

Home Forums CSS body border color change

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #195195

    hey everybody,
    i am currently working on a website
    what i am doing to create the body border on the site is by:

    @media only screen and (min-width: 769px) {
    border: 21px solid #896c52;

    this works great. however, i would love to be able to change the border to another color on the contact & mission, pages. I was wondering what you would suggest to make this happen since I am using only one css page. thank you for all your great insights whenever i write in.



    I don’t typically like styling the body tag outside giving it 100% height or something, but I suppose you could.

    What you’d want to do is give the <body> tag a class or ID on each page, and then find it that way.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.