# Multiple image replacment

**URL:** <https://forum.kirupa.com/t/multiple-image-replacment/223614>\
**Category:** Uncategorized\
**Created:** [April 24, 2007, 12:00pm UTC](https://forum.kirupa.com/t/multiple-image-replacment/223614 "2007-04-24T12:00:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suz](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@suz](https://forum.kirupa.com/u/suz)\
**Post date:** [April 24, 2007, 12:00pm UTC](https://forum.kirupa.com/t/multiple-image-replacment/223614/1 "2007-04-24T12:00:33Z")

</div>

I am trying to replace all the \<h2\> tags on a website I am making,

the h2 tag is to display a header on each page so each image needs to be different for each h2 tag.

I tried to do this by assigning an class to the h2 tag as follows…

```auto
<style>

.h2_one { background-image:url(images/about.png);
            background-repeat:no-repeat;
        }
        
.h2_two { background-image:url(images/contactus1.png);            
            background-repeat:no-repeat;
        }

.h2_three { background-image:url(images/news.png); 
            background-repeat:no-repeat;
            }
            
.h2_four { background-image:url(images/news.png); 
            background-repeat:no-repeat;
            }
        
</style>
</head>

<body>
<h2 class="h2_one"></h2>
<h2 class="h2_two"></h2>
<h2 class="h2_three"></h2>
<h2 class="h2_four"></h2>

</body>
</html>

```

Class 1-3 work (they display in dreamweaver)but 4 doesn’t and when I test it in the browser it doesnt display anything??

anyone have any ideas how I can get this working?

Thanks :sigh:
