Forums

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

Home Forums CSS Using html and body instead of container divs

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

    I’m working on a WordPress theme, and when it comes to browser compatibility, I’m only interested in IE9 and up (maybe with some polyfills for IE8)

    This is what I’m using right now, and it seems to work in all the browsers I’ve tested it in:

    html {
    background: #eee;
    min-width: 320px;
    padding: 0 20px;
    }

    body {
    position: relative;
    font-size: 100%;
    font-family: ‘Noto Sans’, sans-serif;
    line-height: 1.4;
    color: #444;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: #fff;
    }

    Are there any drawbacks to this that I’m not seeing?

    #136431
    Kitty Giraudel
    Participant

    Sounds perfectly legit.

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