Background-image with a text

anais

New Member
#1
My goal is to get a result like this:

1Vg9a.png

For now, I would like the text to be in the background image. I think my problem is perhaps in my blocks HTML ?
Here is an overview

gxMiW.png

Mã:
.background_grey {
  height: 70px;
  width: 100%;
  margin-top: 0px;
  position: relative;
}

.page_title {
  font-size: 14px;
}
Mã:
<img class="background_grey" src="images/subtle_grunge.png" />
<div class="page_title">Register <span class="hometxtcolor">an Account</span></div>
Thank you for your help !
 

Admin

Administrator
Thành viên BQT
#2
You have to use a background image via CSS, not from an img element:
Mã:
.page_title {
  background-image: url(images/subtle_grunge.png);
}
Mã:
<div class="page_title">
  Register
  <span class="hometxtcolor">
          an Account
        </span>
</div>
 
Top