Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Centering Prob

This is a discussion on Centering Prob, within the Flash & Multimedia section. This forum and the thread "Centering Prob" are both part of the Designing Your Website category.

 
Reply to this topicStart new topic
> Centering Prob
acrikey
post May 25 2008, 01:18 PM
Post #1


Fresh Squeezed
**

Group: Members
Posts: 49
Joined: 30-March 08
From: Southern England
Member No.: 207



Can seem to centre this properly, any ideas?

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Rufus Flack Show Reel</title>
<link href="http://robotcrocodile.com//css/bg.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
    background-image: url();
    background-repeat: no-repeat;
}
-->
</style>
<script src="http://robotcrocodile.com/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('images/hp butt 2.png','images/DL butt 2.png')">
<div id="page">
  <p align="center">&nbsp;</p>
  <p align="center"><a href="http://robotcrocodile.com/homepage.html" target="_parent" onmouseover="MM_swapImage('HPNav','','images/hp butt 2.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/hp butt.png" alt="Homepage" name="HPNav" width="166" height="25" border="0" id="HPNav" /></a><a href="http://robotcrocodile.com/rflack_showreel_mp4_2008_05_18.zip" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('DL Nav','','images/DL butt 2.png',1)"><img src="images/DL butt .png" alt="Download" name="DL Nav" width="166" height="25" border="0" id="DL Nav" /></a></p>
  <p align="center"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','329','height','305','align','top','title','Showreel','src','Movie','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Movie' ); //end AC code
    </script>
    <noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="329" height="305" align="top" title="Showreel">
      <param name="movie" value="Movie.swf" />
      <param name="quality" value="high" />
      <embed src="Movie.swf" width="329" height="305" align="top" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
    </object>
    </noscript>
  </p>
  <p align="center">&nbsp;</p>
  <p align="center"><a href="http://robotcrocodile.com/rflack_showreel_mp4_2008_05_18.zip">To download the showreel use the navigation button above or<br />
    CLICK HERE</a></p>
</div>
</body>
</html>
Go to the top of the page
 
+Quote Post
Mark
post May 25 2008, 06:48 PM
Post #2


Don deluzione
******

Group: Team Leaders
Posts: 1,006
Joined: 13-February 08
From: Canada eh?
Member No.: 7



I'd try to create a div around the movie and set the width for 100%, and use "padding: 0 auto 0 auto;" in the css


--------------------
Go to the top of the page
 
+Quote Post
acrikey
post May 25 2008, 07:35 PM
Post #3


Fresh Squeezed
**

Group: Members
Posts: 49
Joined: 30-March 08
From: Southern England
Member No.: 207



Done that and still no change
Go to the top of the page
 
+Quote Post
Mark
post May 25 2008, 10:42 PM
Post #4


Don deluzione
******

Group: Team Leaders
Posts: 1,006
Joined: 13-February 08
From: Canada eh?
Member No.: 7



you didn't set your "#showreel" for width: 100%


--------------------
Go to the top of the page
 
+Quote Post
acrikey
post May 26 2008, 10:08 AM
Post #5


Fresh Squeezed
**

Group: Members
Posts: 49
Joined: 30-March 08
From: Southern England
Member No.: 207



Have done now and still aligned left
Go to the top of the page
 
+Quote Post
Mark
post May 26 2008, 12:28 PM
Post #6


Don deluzione
******

Group: Team Leaders
Posts: 1,006
Joined: 13-February 08
From: Canada eh?
Member No.: 7



Ok, now I'm confused too..


--------------------
Go to the top of the page
 
+Quote Post
Linda
post May 26 2008, 01:29 PM
Post #7


Co-Founder
*******

Group: Co-Founders
Posts: 2,768
Joined: 13-February 08
From: Pink House in USA
Member No.: 3



Acrikey, what's not centering for you? The entire outer div or just the flash?

Because I put it in my DW and it's all centered.

Is there something in a css file that might be causing this to not center?


--------------------
Go to the top of the page
 
+Quote Post
Mark
post May 26 2008, 03:12 PM
Post #8


Don deluzione
******

Group: Team Leaders
Posts: 1,006
Joined: 13-February 08
From: Canada eh?
Member No.: 7



Linda: http://robotcrocodile.com/showreel.html


--------------------
Go to the top of the page
 
+Quote Post
velo
post May 26 2008, 04:04 PM
Post #9


Rapid Squeezer
****

Group: Members
Posts: 182
Joined: 19-February 08
From: Netherlands
Member No.: 172



When Mark said to set the width to 100%, he meant of the div. You set the width of the object to 100%. That won't work. Keep that to 329px (original flash width).

Around the object, place a div something like <div style="width:100%; text-align:center;"><div style="width:329px; margin: 0 auto; text-align:left;">OBJECT HERE</div></div> and see what it does. Didn't test, just something i thought of by the fly.

This post has been edited by velo: May 26 2008, 04:05 PM


--------------------

fresh-style.nl - small webdesign & development projects
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new 14 Itsumishi 384 27th March 2008 - 06:07 PM
Last post by: Itsumishi
No New Posts   6 LivingDeadBeat 240 20th March 2008 - 11:15 AM
Last post by: JustinStudios