Forum Moderators: open

Message Too Old, No Replies

Is there anyway to put text directly over an animated gif in Dreamweav

er?

         

Theinc

9:22 am on Aug 16, 2005 (gmt 0)

10+ Year Member



Does anybody know if this is possible?

Gibisan

9:44 am on Aug 16, 2005 (gmt 0)

10+ Year Member



You can with MX2004 - not sure about other versions.
Use Draw Layer and drag a selection over the gif - this will create new layer positioned directly over the gif which you can add your text.

Theinc

9:56 am on Aug 16, 2005 (gmt 0)

10+ Year Member



Thank you, I figured it moments after making the post. It's still sending all of the text to the left of the table but I am working on fixing that now.

Angelis

10:16 am on Aug 16, 2005 (gmt 0)

10+ Year Member



Put a table or a div in the layer and center align the text.

Theinc

1:35 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



Thank you for the suggestion, I did try it but it still did not work for some odd reason. The text was still all the way to the left. I tryed setting the animated gif as the backgroud image nested inside a table cell with another nested table within the current cell for the test. This did work, if anybody knows if this is the correct way to do this please let me know. If there is an easier way please share it as well.

Theinc

1:36 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



*text

limbo

3:24 pm on Aug 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could try adding the gif to the background of a div and use the text-align and padding properties in your CSS to position your text. Like:

HTML:

<div class="image">Your Text Here</div>

CSS:

.image {
background: url(yourimage.gif} no-repeat;
padding: 10px; /* ish */
text-align: center;
width: 100px; /* match image width */
height: 1000px; /* match image height */
}