Title: How add background to the code?
Last modified: August 19, 2016

---

# How add background to the code?

 *  Resolved [reza](https://wordpress.org/support/users/ghiasabadi/)
 * (@ghiasabadi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/)
 * Hello
    Here the color background is defined:
 * `border-left:240px solid #e6ece9;`
 * Now how can I paint a image to add?
    For example: `url('images/bg.jpg') repeat`
 * Any way I write is not true.
    These two code how do I combine?
 * [http://ghiasabadi.com](http://ghiasabadi.com)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/#post-1602470)
 * You can’t add an image to a border. Some idea of what part of a design you’re
   trying to change might help – ideally with a link to a page that demonstrates
   the issue.
 *  Thread Starter [reza](https://wordpress.org/support/users/ghiasabadi/)
 * (@ghiasabadi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/#post-1602479)
 * Thank you Esmi,
 * Please see to:
    [http://ghiasabadi.com](http://ghiasabadi.com)
 * How add a image to sidebar?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/#post-1602728)
 * Do you mean an image background? If so, which sidebar do you want to add it to?
 *  Thread Starter [reza](https://wordpress.org/support/users/ghiasabadi/)
 * (@ghiasabadi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/#post-1602741)
 * Yes
    I want the background image to come in sidebar.
 * Thank you esmi
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/#post-1602760)
 * Which sidebar?
 *  Thread Starter [reza](https://wordpress.org/support/users/ghiasabadi/)
 * (@ghiasabadi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/#post-1602765)
 * Oh dear Esmi,
    I had forgotten. This problem is solved.
 * Mr. [Mohsen Ghiasi](http://newbie.ir/) this method showed that:
 * `border-left:240px solid transparent;`
    Instead of: `border-left:240px solid #
   e6ece9;`
 * Thank you, and he.

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

The topic ‘How add background to the code?’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 6 replies
 * 2 participants
 * Last reply from: [reza](https://wordpress.org/support/users/ghiasabadi/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/how-add-background-to-the-code/#post-1602765)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
