# What's wrong with this CSS?

**URL:** <https://meta.discourse.org/t/whats-wrong-with-this-css/28391>\
**Category:** Product Support\
**Created:** [6 Maggio 2015, 6:38pm UTC](https://meta.discourse.org/t/whats-wrong-with-this-css/28391 "2015-05-06T18:38:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Erik\_Manger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erik_manger/32/179399_2.png) [@Erik\_Manger](https://meta.discourse.org/u/Erik_Manger)\
**Post date:** [6 Maggio 2015, 6:38pm UTC](https://meta.discourse.org/t/whats-wrong-with-this-css/28391/1 "2015-05-06T18:38:49Z")

</div>

Hi,

I have a CSS code for Discourse backgrounds. The problem is, when I scroll down, the image doesn’t scroll down - rather, a white background appears and covers the wallpaper…

```
    html, body {
    height: 100%;
}

// solid white background for content
body:before {
    display: inline-block;
    width: 1125px;
    min-height: 100%;
    height: inherit;
    background-color: white;
    content: " ";
    position: fixed;
    left: 50%;
    right: 0;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
}

// compatibility for all devices
@media (max-width: 1139px) and (min-width: 1000px)
{
    body:before {
        width: 1010px;
    }
}

.d-header {
    box-shadow: none;
}

body {
  background: url('http://minecraftrad.io/images/bg1.jpg') no-repeat 50% 50% fixed; 
  background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  -webkit-background-size: cover;
}

```

What’s wrong with it? The category background feature wont work because there is no white background for topics, etc. and it just simply looks bad.

All help appreciated!

---

_[View the full topic](https://meta.discourse.org/t/whats-wrong-with-this-css/28391)._
