Forums

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

Home Forums CSS background-color

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

    Good day
    I just finished a new design and have a small problem. I want the background-color: 000; grows with the content and that without a fixed height.
    I remove min-height: 500px; the background disappears completely.
    CODE
    1.body {
    2.background-color: #151515;
    3.font-family: averia_sans_librelight;
    3.color: #fff;

    #281001
    Beverleyh
    Participant

    A minimal demo in CodePen would help to clarify the problem. Note that we don’t need your whole codebase. Unfortunately the code you’ve posted doesn’t show a black background, or min-height, so it’s hard to offer specific help.

    That said, maybe you need to apply the background-colour to the html element?

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