Title: Background CSS Question
Last modified: August 20, 2016

---

# Background CSS Question

 *  [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/)
 * I just edited my login.css file to give my login page a background. However, 
   the image just stops about 7/8 down the page and I’m not sure why (I know the
   image is larger than it is actually displaying on the webpage). The website is
   [http://dukesocial.com](http://dukesocial.com) – Please help me! Thanks so much.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/background-css-question/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/background-css-question/page/2/?output_format=md)

 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229783)
 * Looks fine on a 13inch macbook. What is the pixel dimensions of the bg image?
 *  Thread Starter [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229791)
 * It’s 1600×1024. Try decreasing the size of the page to see what I’m talking about.
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229963)
 * > It’s 1600×1024.
 * That’s your problem. It’s not larger then it displays on your page. If someones
   monitor is larger the ~1600×1024 they are going to see white, unless the BG image
   is repeated.
 *  Thread Starter [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229965)
 * I have other pages that have the exact same background but the image fills up
   the entire screen. All of my images are larger than the screen itself. I think
   it has something to do with the wordpress log-in CSS structure or the login.php
   code
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229966)
 * Make the HTML background your image. Still though, it’s not going to fill more
   then 1600×1024. Why would I lie to you?
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229967)
 * html{
    background: your image; }
 *  Thread Starter [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229985)
 * Okay, just to show you that I’m not crazy, I’ve taken this image: [http://www.solstation.com/stars/earth3sa.jpg](http://www.solstation.com/stars/earth3sa.jpg)(
   which is 2048×2048…much larger than my screen) and set it as the background of
   the login screen using the CSS that you provided, and I’m still seeing the exact
   same issue.
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229989)
 * No you didn’t. You’ve set it to the body again.
 *  Thread Starter [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229990)
 * Now there’s nothing there…could the css file be messed up?
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229991)
 * Nope. looks like it’s still working. Still no background applied to the HTML 
   tag though.
 *  Thread Starter [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229992)
 * So what do you suggest I do to fix it?
 *  Thread Starter [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2229994)
 * by the way, the directory was just moved to dukesocial.com/home
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2230002)
 * I suggest you apply the background to the HTML tag. I’ve said that a few times
   now 😉
 *  Thread Starter [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * (@aerproductions)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2230005)
 * Is that within the CSS file? I copied/pasted exactly what you told me to earlier
   and it didn’t work. In fact, it gave me a plain white background!
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/#post-2230006)
 * No. here is what you have:
 *     ```
       html{
       background-image:'http://www.solstation.com/stars/earth3sa.jpg';
       }
       ```
   
 * which is essentially:
 *     ```
       html{
   
       }
       ```
   
 * (nothing) and that’s how it’s rendered by the browser and fire bug. So that’s
   why it’s not showing up, and why I keep telling you to add it. Don’t get mad 
   at me that you don’t know CSS syntax.
 * You need:
 *     ```
       html{
       background-image: url(PATH TO YOUR IMAGE!!!!!!);
       }
       ```
   
 * WHen you come here asking CSS questions, I think we all assume you know the basics.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/background-css-question/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/background-css-question/page/2/?output_format=md)

The topic ‘Background CSS Question’ is closed to new replies.

## Tags

 * [background](https://wordpress.org/support/topic-tag/background/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [cut-off](https://wordpress.org/support/topic-tag/cut-off/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [login](https://wordpress.org/support/topic-tag/login/)

 * 16 replies
 * 2 participants
 * Last reply from: [aerproductions](https://wordpress.org/support/users/aerproductions/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/background-css-question/page/2/#post-2230010)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
