View Single Post
04-29-2010, 03:10 AM
#5
JasonGDX is offline JasonGDX
JasonGDX's Avatar
Status: Junior Member
Join date: Nov 2006
Location: Pennsylvania, USA
Expertise: Design, HTML, CSS, PHP, MySQL
Software: Photoshop, Coda
 
Posts: 95
iTrader: 4 / 100%
 

JasonGDX is on a distinguished road

  Old

Originally Posted by Zif View Post
Okay, I think I understand now. Is this sort of like using keywords as image names instead of something like 'image1' so not only if the image does not show up people will know what it was but search engines will be able to tell what it is?
No. It is using images as backgrounds instead.

For example, for the name of the site you might do this:

HTML Code:
<h1 class="logo">Site Name</h1>
...instead of using an image of the logo.

Then the CSS for that would be something like this:

Code:
h1.logo {
  background: url('path/to/logo.png');
  display: block;
  height: 40px;
  width: 100px;
  text-indent: -9999px;
}
Height and width would be the size of the image. Text indent is important because it will take the text from inside the element and put it 9999 pixels to the left of the element, essentially making it invisible to your users, but not search engines.

Reply With Quote