Over a million developers have joined DZone.

Replace Text With Images Using CSS

·
This will replace your H1 tag with a 100px by 100px logo.
Users with CSS disabled will see whatever is in 

Company Inc.

users with CSS will see the Company Inc. logo to use this, add this to your stylesheet: h1 { text-indent: -100em; overflow: hidden; background: url(logo.png) no-repeat; height: 100px; width: 100px; }
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}