Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

overlay text on flash 1

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
hi,

i use the following to display flash and put stuff on top
of my flash animation.
now the problem with this technique is that if the page gets stretched or squashed the text stays where it is,
and because you have to use absolute position to overlay
the flash the text will always stay where its put.
is there anway to move the text relative to the page
and overlay it on flash?.

this style is round the flash
Code:
#flashmain {position:absolute;
margin:0px auto;
width:800px;
text-align:left;
float:center;
z-index: 2;}

this style is round the text to be put over the animation
Code:
.welcomesml {
position: absolute;
left: 110px;
top: 344px;
color:white ; /* text color */
font-family: Arial; /* font name */
font-size: x-small; /* font size */
text-align:left}
 
If you put both in a relatively positioned container, they will both move in unison according to that container. That should allow things to stay put.
 
sorry havent responded - thanks v much have a gud xmas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top