Invite
35 Designers x 5 Questions | How-To | Smashing Magazine
  • Replacing text with a background image. For instance, if you want to display the logo of your company instead of just plain text, you could do something like that:
XHTML:

My Company


CSS:

#logo {
        background: transparent url("pathtoyourimage.png") no-repeat 0 0;
        display: block;
        width: 100px;
        height: 50px;
        overflow: hidden;
        line-height: 1000px;
}
УкраїнськаРусскийEnglish