Title: Random Banner through CSS code
Last modified: August 18, 2016

---

# Random Banner through CSS code

 *  [dafinga](https://wordpress.org/support/users/dafinga/)
 * (@dafinga)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/random-banner-through-css-code/)
 * I was interested in making a simple random banner for my site, which can be found
   [here.](http://computermilitia.com/)
 * Basically how I pull the image header now is through CSS stylsheet like this:
 * #header {
    background: url(‘header/image1.jpg’) no-repeat bottom; height: 183px;
   margin: 0 auto; width:760px; padding:0; border:0px solid; }
 * How do I make the directory pull random image banners to the header?

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/random-banner-through-css-code/#post-294083)
 * One way is, if you used a random image PHP script to display your images, like
   this one:
 * [http://automaticlabs.com/products/rotator](http://automaticlabs.com/products/rotator)
 * You could modify the background url to:
 * `background: url('header/rotator.php') no-repeat bottom;`
 *  [thecat](https://wordpress.org/support/users/thecat/)
 * (@thecat)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/random-banner-through-css-code/#post-294085)
 * I use a rotator.php from [http://www.automaticlabs.com/](http://www.automaticlabs.com/).
 * Very easy. Download their code, fiddle just a little bit, drop it into your folder
   with the banners, and bob’s your uncle.
 *  Thread Starter [dafinga](https://wordpress.org/support/users/dafinga/)
 * (@dafinga)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/random-banner-through-css-code/#post-294201)
 * Worked perfect!!! Thanks a bunch!

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

The topic ‘Random Banner through CSS code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [dafinga](https://wordpress.org/support/users/dafinga/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/random-banner-through-css-code/#post-294201)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
