Forum Moderators: open

Message Too Old, No Replies

How can I write text over a background image?

         

budbiss

7:51 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



I have a background that is a stretched 5 pixel high image...I want to put text over it...how can I go about doing this?

korkus2000

8:08 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Background of the page, layer, or table? Have you tried positioning text over it?

DrDoc

8:16 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't understand the problem...

<div style="background:url(image.gif);">Text here</div>

...should work just fine.

budbiss

8:25 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



Thanks, thats exactly what I was looking for...BTW, do you happen to know how to remove the underline underneith a link?

DrDoc

8:25 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In your style sheet, do this:

a {
text-decoration: none;
}

You might be interested in paying a visit to the CSS forum [webmasterworld.com] where these, and similar, topics are discussed all the time.

budbiss

8:27 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



nevermind, figured it out..thanks!

budbiss

8:32 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



OK, one more problem...I just realized that the bg image isn't showing as its normal size, its shrunken down...

Wertigon

8:47 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



That is the normal size. The previous size was the one that was stretched.