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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

movie always centered in browser

Status
Not open for further replies.

groaningeek

Technical User
Mar 31, 2004
8
US
I ran across this site:


in which the movie is always centered in the browser window regardless of the size of the browser window. Even when the browser window is extremely small the 4 outer edges of the movie are cut off istead of just the right and bottom edges.

Can anybody tell me how this is done?
Thanks
 
Try putting the movie in a layer, size the layer like the movie and position it like so:

left:50%;
top:50%;
margin-left:-X;
margin-top:-Y;

replace X with half of the movie's width and Y with half of the movie's height

illustration and webdesign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top