Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: Center text over an image using CSS? - July 29, 1998 at 06:57:34

You are here: irt.org | BBS | Re: Center text over an image using CSS? [This BBS is closed]

Posted by Martin Webb on July 29, 1998 at 06:57:34:

In Reply to: Center text over an image using CSS? posted by Janus Boye on July 28, 1998 at 14:24:59:

: I received the following question on the CSS FAQ:
: <question>
: Is there any way to center text over an image using CSS?

Try something like the following which works in CSS enabled browsers:

<P>
<DIV STYLE="position: absolute; width: 150; height: 20; text-align: center; vertical-align: middle;">This is the text</DIV>
<IMG SRC="picture.gif" WIDTH="150" HEIGHT="20">
</P>
Follow-ups:

You are here: irt.org | BBS | Re: Center text over an image using CSS? [This BBS is closed]

©2018 Martin Webb