Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,576 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,881 people online right now. Registration is fast and FREE... Join Now!




Flash keeps moving out of place

 
Reply to this topicStart new topic

Flash keeps moving out of place, When minimized the flash image moves

skillionaire
28 Sep, 2008 - 06:04 PM
Post #1

New D.I.C Head
*

Joined: 13 Sep, 2008
Posts: 17

Hey guys & girls,

I have a small problem here. I'm building this HTML website with css and I can't seem to place this flash header I have in place.

What I mean is, I can place the flash header where I want it to be but when minimized it moves. I spent some time trying to figure this out and I know it has to be A) a silly mistake somewhere I made or cool.gif complex.

Here is my coding so far:

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>Calyx Creative </title>

<link rel="stylesheet" type="text/css" href="global.css" media="screen" />



<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>

<div id="wrapper">
  <div class="header_left">
  </div><!-- header_left-->
    
    <div class="header_right">
        <div id="slideshow">
                <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','447','height','309','title','calyx intro','src','intro','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','intro' ); //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="447" height="309" title="calyx intro">
                  <param name="movie" value="intro.swf" />
                  <param name="quality" value="high" />
                  <embed src="intro.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="474" height="346"></embed>
                </object></noscript>
          <img src="intro.swf" width="474" height="346" />        </div>
        <!--/slideshow-->
    </div>
<!-- header_right--->
    
    <div id="content">
        fffffff
    </div><!-- content-->


<div id="footer">
    <div class="footer_wrap_inner">

     <p id="links">Home</p>
      <p id="cont"> contact</p>

     <p id="copyright">Copyright &copy; 2008 Calyx Creative, all rights reserved</p>


    </div><!--footer_wrap_inner-->
</div><!--footer-->

</div><!-- wrapper-->

</body>
</html>


here is my css code:

CODE
@charset "utf-8";
/* CSS Document */

body, html{
    background-color: #13161b;
    background-image: url(paper_banner.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    font-family: Helvetica,Arial,sans-serif;
    font-size: 12px;
    color: #808181;
}

.header_left{
    width: 425px;
    height: 380px;
    float: left;
    margin-top: 120px;
}

.header_right{
    width: 540px;
    height: 500px;
    float: left;
}

#slideshow {
    position:absolute;
    width: 474px;
    height: 346px;
/*    margin-top:105px;
    margin-left:405px;
    overflow:hidden;*/

}

#content{
    width: 975px;
    height: 370px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    border:dotted 2px;
}

#footer{
    width: 100%;
    height: auto;
    text-align: left;
    clear: both;
    background-image: url(bgndrpt_lines.png);
    background-position: left top;
    background-repeat: repeat-x;
}

.footer_wrap_inner{
    width: 975px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    padding-top: 30px;
    
}


If anyone has any ideas please let me know. Remember the it's a flash file in .swf that keeps moving. Basically I want it at the top right of my wrapper but when minimized it moves to center or a bit left.

Thanks

~ Matt.
User is offlineProfile CardPM
+Quote Post

pemcconnell
RE: Flash Keeps Moving Out Of Place
29 Sep, 2008 - 07:00 AM
Post #2

D.I.C Regular
Group Icon

Joined: 5 Aug, 2008
Posts: 396



Thanked: 37 times
Dream Kudos: 75
My Contributions
which browser are you using? The only thing I could think that it would be is the fact that you are using absolute positioning.

I would change slideshows CSS to be just:

CODE

#slideshow {
    width: 474px;
    height: 346px;
}


Hope that helps smile.gif
User is offlineProfile CardPM
+Quote Post

skillionaire
RE: Flash Keeps Moving Out Of Place
29 Sep, 2008 - 07:50 AM
Post #3

New D.I.C Head
*

Joined: 13 Sep, 2008
Posts: 17

Hi pemcconnell,

First off thank you for replying.

Alright, I tested in bot Firefox 3 and IE 7 +

Both giving me the same results. Now late last night after posting this problem I went and tried to figure it out again and got it improved a lot. It margin problems in other classes that flash move when minimized. Now it's a lot better but it still moves around 10-20 px to the left when minimized.

The position absolute was just something I tested and forgot to remove. IT's the doesn't help me even if I do take it out. I don't understand, I thought once you create a div with "Height" & "width" and another div inside it will not move out of it.

This post has been edited by skillionaire: 29 Sep, 2008 - 08:11 AM
User is offlineProfile CardPM
+Quote Post

pemcconnell
RE: Flash Keeps Moving Out Of Place
29 Sep, 2008 - 08:45 AM
Post #4

D.I.C Regular
Group Icon

Joined: 5 Aug, 2008
Posts: 396



Thanked: 37 times
Dream Kudos: 75
My Contributions
In theory yeah, there's nothing there that should permanently adjust the positioning of the DIV.

Do you have the site live anywhere where I could have a look to see if i can replicate the error? The fact that it's happening cross-browser voids the possibility of the usual IE7 problem list.

What is it you did to make it better? Try creating a basic page, with the same stylesheet, but just the divs that you need to hold the flash banner in place.

Bit of a strange one this, hope you get it sorted, and I'll help as much as I can. smile.gif
User is offlineProfile CardPM
+Quote Post

skillionaire
RE: Flash Keeps Moving Out Of Place
29 Sep, 2008 - 08:57 AM
Post #5

New D.I.C Head
*

Joined: 13 Sep, 2008
Posts: 17

Hey
Thanks again for replying and trying to figure this out.

Here is a link to my host
CODE
http://milan.007sites.com/index.html


I added borders to all div layouts so I can see (and you) a bit better. Now What I want is on the top right corner I have 2 divs. One is inside the other and the one that is inside will display my flash.swf I want the flash to be on top of the paper image but when minimized it moves sad.gif

Please let me know if you have found something.

~ Matt.
User is offlineProfile CardPM
+Quote Post

xerxes333
RE: Flash Keeps Moving Out Of Place
1 Oct, 2008 - 10:09 AM
Post #6

D.I.C Head
Group Icon

Joined: 5 Jul, 2007
Posts: 181



Thanked: 10 times
Dream Kudos: 25
My Contributions
Are you still having the same issue? I went to the site and could not replicate the problem.
User is offlineProfile CardPM
+Quote Post

skillionaire
RE: Flash Keeps Moving Out Of Place
1 Oct, 2008 - 12:42 PM
Post #7

New D.I.C Head
*

Joined: 13 Sep, 2008
Posts: 17

Yes I still am. I showed to some of my class mates and they were intrigued by the bizarre output of this. But again no one had a solution to it.

I don't understand why you wouldn't be getting the error tho... Even if I take out the flash and put a border around the div that hold the flash and minimize the screen it moves out of place.

So your telling me when you go to
CODE
http://milan.007sites.com/index.html


And minimize the browser you don't see the div (which in bordered inside the paper image) moving out of it's place?
User is offlineProfile CardPM
+Quote Post

xerxes333
RE: Flash Keeps Moving Out Of Place
1 Oct, 2008 - 04:35 PM
Post #8

D.I.C Head
Group Icon

Joined: 5 Jul, 2007
Posts: 181



Thanked: 10 times
Dream Kudos: 25
My Contributions
QUOTE(skillionaire @ 1 Oct, 2008 - 01:42 PM) *

So your telling me when you go to
...
And minimize the browser you don't see the div (which in bordered inside the paper image) moving out of it's place?


Correct, I took screen shots and compared the pixel distance and they were identical before and after minimizing the browser (I'm using FF3)
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 12:15AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month