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
gray space above my swf animation. margin top 70px.
Old 07-22-2009, 04:47 PM gray space above my swf animation. margin top 70px.
Webmaster Talker

Posts: 611
Trades: 0
hi, i have a gray space above my animation here http://academyoftalent.com/

in firefox and safari, (in IE6 go figure, it looks great).any help with this greatly appreciated. thank you! derek

here is the css to the page

Code:
@charset "utf-8";
/* CSS Document */

body {
margin: 0;
padding-top: 50px;
background-color: #333333;
}

#wrapper {
overflow: auto;
margin: 0 auto 0 auto;
width: 888px;

}

#header {
margin: 0 auto 0 auto;
width: 888px;
height: 113px;
 background: url(off_slices3/images/header.png) no-repeat;
 }
 
 #navigation { 
 margin: 0 auto 1px auto;
 width: 888px;
 height: 43px;
 
 }
 
#content {
 
margin: 0 auto 0 auto;
width: 888px;
height: 572px;
background: url(off_slices3/images/front_background_purple_15.png) no-repeat;
 

}

#animation {
    width: 500px;
    height: 350px;
    margin-top: 70px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
 
}
and here is the html to the page.

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" />
<!--[if lt IE 7]>
<link href="iefixes.css" rel="stylesheet" type="text/css" /> <![endif]--> 
<link rel="stylesheet" href="music.css" type="text/css" charset="utf-8" />
<title>Academy of Talent</title>
<script type="text/javascript">
<!--
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_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_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('on_slices3/images/welcome_on.png','on_slices3/images/about_us_on.png','on_slices3/images/department_on.png','on_slices3/images/faculty_on.png','on_slices3/images/classes_prices_on.png','on_slices3/images/gallery_on.png','on_slices3/images/contact_on.png')">


<div id="wrapper">

<div id="header"></div>

<div id="navigation"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','on_slices3/images/welcome_on.png',1)"><img src="off_slices3/images/welcome_off.png" name="Image1" width="114" height="43" border="0" id="Image1" /></a><a href="about.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','on_slices3/images/about_us_on.png',1)"><img src="off_slices3/images/about_off.png" name="Image2" width="117" height="43" border="0" id="Image2" /></a><a href="department.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','on_slices3/images/department_on.png',1)"><img src="off_slices3/images/department_off.png" name="Image3" width="144" height="43" border="0" id="Image3" /></a><a href="faculty.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','on_slices3/images/faculty_on.png',1)"><img src="off_slices3/images/faculty_off.png" name="Image4" width="116" height="43" border="0" id="Image4" /></a><a href="classes_prices.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','on_slices3/images/classes_prices_on.png',1)"><img src="off_slices3/images/classes_prices_off.png" name="Image5" width="176" height="43" border="0" id="Image5" /></a><a href="gallery.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','on_slices3/images/gallery_on.png',1)"><img src="off_slices3/images/gallery_off.png" name="Image6" width="116" height="43" border="0" id="Image6" /></a><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','on_slices3/images/contact_on.png',1)"><img src="off_slices3/images/contact_off.png" name="Image7" width="103" height="43" border="0" id="Image7" /></a></div>

<div id="content">
 <div id="animation"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="350" HEIGHT="500" id="animation" ALIGN="">
<PARAM NAME=movie VALUE="animation/animation.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#C081BC> <EMBED src="animation/animation.swf" quality=high bgcolor=#C081BC WIDTH="500" HEIGHT="350" NAME="animation" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </div><!--end animation-->
</div><!--end content-->
</div><!--end wrapper-->
</body>
</html>
silverglade is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-22-2009, 04:59 PM Re: gray space above my swf animation. margin top 70px.
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
Change

Code:
 <div id="animation"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="350" HEIGHT="500" id="animation" ALIGN="">
to

Code:
 <div id="animation"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="500" HEIGHT="350" id="animation" ALIGN="">
<PARAM NAME=movie VALUE="animation/animation.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#C081BC> <EMBED src="animation/animation.swf" quality=high bgcolor=#C081BC WIDTH="500" HEIGHT="350" NAME="animation" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT><PARAM NAME=movie VALUE="animation/animation.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#C081BC> <EMBED src="animation/animation.swf" quality=high bgcolor=#C081BC WIDTH="500" HEIGHT="350" NAME="animation" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT>
Hope that helps you had the wrong height for object
__________________
Alex

Last edited by konetch; 07-22-2009 at 05:01 PM..
konetch is offline
Reply With Quote
View Public Profile
 
Old 07-22-2009, 05:27 PM Re: gray space above my swf animation. margin top 70px.
Webmaster Talker

Posts: 611
Trades: 0
great thank you i fixed that now.. i ended up using padding instead of margin to move the swf around. it worked. thanks. derek
silverglade is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to gray space above my swf animation. margin top 70px.
 

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 0.12014 seconds with 12 queries