Previous Message
Next Message

Re: [css-d] insert image using content: style?

Sent by Marshall Roch on 26 December 2002 19:07


Timothy J. Luoma wrote:

 > You can't put HTML in a CSS file.
 >
 > You could try making the logo a background image to the BODY


Most browsers (I think) are set to not print background images by default.

The way I did something like this was to display: none a text-version of 
the logo (just the site name in an H1 basically) in the screen 
stylesheet and then display: none the img and display the H1 in the 
print style.  It's not as pretty as an img logo, but search engines seem 
to like it and it doesn't significantly add to load time.  Also, if you 
do it right, it doesn't look too out of place with styles turned off.

-- 
Marshall Roch
BotBomb.com
Previous Message
Next Message

Message thread:

Possibly related: