In my school, they said this was the way to go if we used an image as a title with a special font for ex. Now, I'm trying this but I don't really understand
1) why you should do it
2) it doesn't seem to show up unless it is given a specific height.
Can someone show me a better way to do it, while still doing this
<h1><span></span></h1>
thing?
.title{
background-image: url(...);
background-repeat: no-repeat;
/*it displays nothing now, only when I add a height here*/
}
.titlespan{
visibility: hidden;
}
<h1 class="title"><span class="titlespan"></span></h1>