Isi said:
I would like to have a small logo appear in the same position on every
page of my web site. Can this be done with a style sheet?
You can use a style sheet to suggest that a background image appear on the
page, in a specific position.
If the logo is essential, I wouldn't rely on that.
I'd like to
know how to do this in two ways:
1) with a graphic
2) with text
<img title="ACME logo" alt="ACME" src="logo.gif"
class="logo" width="..." height="...">
with a suitable style sheet, e.g.
..logo { font-size: 120%;
color: #06f;
background: white;
font-family: Haettenschweiler, sans-serif; }
When the logo image is not displayed, for some reason, the style sheet may
affect the rendering of the alt text in a manner that makes it closer to the
desired appearance of the logo. The potential drawback is that the alt text
would then need to be identical to the text of the logo as such, instead of
something that might be more useful in speech browsing, such as alt="" or
alt="This is an ACME page.", cf. to the "logo controversy",
http://www.cs.tut.fi/~jkorpela/html/alt.html#logo