Title: Using background image
Last modified: August 24, 2016

---

# Using background image

 *  [jstan](https://wordpress.org/support/users/jstan/)
 * (@jstan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/using-background-image/)
 * My background image is not showing with a fixed height.
 * My code is as follows
 * <div class=”site-branding”>
    <div class=”main-image”> </div> </div>
 * and css
 * .main-image{
    background-image: url(‘/nonprofit/wp-content/uploads/2015/04/image1.
   jpg’); background: url(‘image1.jpg’); background-position: center; background-
   size: cover; background-repeat: no-repeat; }
 * is there a solution to get this working without a fixed height?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/using-background-image/#post-5979371)
 * There is no way to help with a CSS issue without seeing a live site.
 *  Thread Starter [jstan](https://wordpress.org/support/users/jstan/)
 * (@jstan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/using-background-image/#post-5979373)
 * Ok, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using background image’ is closed to new replies.

## Tags

 * ["background-image"](https://wordpress.org/support/topic-tag/background-image/)

 * 2 replies
 * 2 participants
 * Last reply from: [jstan](https://wordpress.org/support/users/jstan/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/using-background-image/#post-5979373)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
