Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
centering a flash file....??
Old 03-04-2010, 02:36 PM centering a flash file....??
jgcalifornia's Avatar
Junior Talker

Posts: 4
Trades: 0
Using Dreamweaver CS3 (still transitioning from using GoLive CS2), seems no matter how ar where i put them, i have a few swf files and i cant seem to position them where i want. I believe i managed to get them "centered", but they want to stay at the top of the page...
Any help is greatly appreciated!!!!!
current code for one of the files-


<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="150">
<center>
<param name="movie" value="Flash/NaturalISM.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="Flash/NaturalISM.swf" width="900" height="150" align="middle" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" /></center>
</object>
jgcalifornia is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-04-2010, 02:42 PM Re: centering a flash file....??
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
1- don't use that hideous <center> tag, use CSS to center.

2 - we need to see the REST of your code, including CSS (if you're using it) to even begin to suggest a solution. Or, post a URL to the problem page.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-04-2010, 02:54 PM Re: centering a flash file....??
rabble's Avatar
Novice Talker

Posts: 9
Name: Troy
Location: Ohio
Trades: 0
try enclosing your swf object like this <div><center>swf object</center></div>
Give the <div> a defined width.

Should work.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
rabble is offline
Reply With Quote
View Public Profile Visit rabble's homepage!
 
Old 03-04-2010, 04:17 PM Re: centering a flash file....??
jgcalifornia's Avatar
Junior Talker

Posts: 4
Trades: 0
hi, thank yo for the reply!
When i do that, which i believe is how i had it, i believe it centers it, but stays at the top of the page, and refuses to move further down...
jgcalifornia is offline
Reply With Quote
View Public Profile
 
Old 03-04-2010, 04:18 PM Re: centering a flash file....??
jgcalifornia's Avatar
Junior Talker

Posts: 4
Trades: 0
Thank you for the reply....Can you tell me if theres anything here that looks wrong to you?




Quote:
Originally Posted by LadynRed View Post
1- don't use that hideous <center> tag, use CSS to center.

2 - we need to see the REST of your code, including CSS (if you're using it) to even begin to suggest a solution. Or, post a URL to the problem page.
jgcalifornia is offline
Reply With Quote
View Public Profile
 
Old 05-16-2010, 01:27 PM Re: centering a flash file....??
jgcalifornia's Avatar
Junior Talker

Posts: 4
Trades: 0
HTML Code:
<html>
<head>
<title>EYESWIDEGREEN.ORG</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <style type="text/css" media="screen"><!--
body { background-image: url(images/brownpaper5.jpg); background-repeat: repeat-x; }
#layer1 { height: 15px; width: 80px; left: 725px; top: 790px; position: absolute; visibility: visible; margin-left: auto; }
#layer2 { height: 70px; width: 100px; left: 715px; top: 710px; position: absolute; visibility: visible; }
#layer3 { text-align: center; height: 104px; width: 592px; left: 469px; top: 243px; position: absolute; visibility: visible; }
--></style>
    </head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="http://www.webmaster-talk.com/images/brownpaper5.jpg">
        <div align="center">
            <table id="Table_01" width="830" align="center" height="109" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <div align="center">
                            <img src="http://www.webmaster-talk.com/../EYESWG-GOLIVE/web-content/eyeswidegreen2/images/spacer.gif" width="1" height="27" alt=""><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="82" width="830">
                                <param name="button" value="flash/eyeshometext.swf">
                                <param name="quality" value="best">
                                <param name="play" value="true">
                                <param name="wmode" value="transparent">
                                <embed height="82" pluginspage="http://www.macromedia.com/go/getflashplayer" src="flash/eyeshometext.swf" type="application/x-shockwave-flash" width="830" quality="best" play="true" wmode="transparent" > 
                            </object></div>
                </td></tr>
            </table>
            <div id="layer1">
                <center>
                    <a href="http://www.hostgator.com"><img src="http://www.webmaster-talk.com/images/hg.gif" alt="hostgator.com" width="80" height="15" border="0" /></a></center>
                    </div>
            <div id="layer2">
                <center>
                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="70" width="100">
                        <param name="button" value="flash/ARR.swf">
                        <param name="quality" value="best">
                        <param name="play" value="true">
                        <param name="wmode" value="transparent"/>
                        <embed type="application/x-shockwave-flash" height="70" width="100" src="flash/ARR.swf" quality="best" play="true" wmode="transparent"></a></center>
                    </div>
            <div id="layer3">
                <div align="center">
                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="104" width="592">
                        <param name="movie" value="flash/greenmailW.swf">
                        <param name="button" value="flash/greenmail2.swf">
                        <param name="quality" value="best">
                        <param name="play" value="true">
                        <param name="wmode" value="transparent">
                        <embed height="104" pluginspage="http://www.macromedia.com/go/getflashplayer" src="flash/greenmailW.swf" type="application/x-shockwave-flash" width="592" quality="best" play="true" wmode="transparent" > 
                    </object></div>
            </div>
        
        
            
    </body>
</html>

Last edited by chrishirst; 05-16-2010 at 02:09 PM..
jgcalifornia is offline
Reply With Quote
View Public Profile
 
Old 05-16-2010, 05:14 PM Re: centering a flash file....??
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Get rid of the absolute positioning, it's not necessary.
Get RID of that <center> tag.. and the "align="center" garbage.
Put the SWF inside a <div>, give that div a defined width, and use margin: xx auto; to center that div. Replace the XX with the top and bottom margins you want.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to centering a flash file....??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.10118 seconds with 12 queries