Help - Search - Members - Calendar
Full Version: CSS/Objects - Moving items
Forums > Resource Center > Support Center > MySpace Support > Myspace Resolved Topics
usernametaken
hey i'm using "The Fall of Troy" Div Layout by superednerd it's great but i have a problem with it

if you leave it alone the music player is right over the picture, so i moved it to the top left corner. here is the code i'm using to move the music player

CODE
<style type="text/css">
object {
position: absolute;
visibility: visible;
left: 0px;
top: 0px;
}
</style>


i have a youtube video in my profile and here is the code for it

CODE
<center>
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/sHzdsFiBbFc" height="210" width="250">
  <param name="movie" value="http://www.youtube.com/v/sHzdsFiBbFc" />
  <param name="allowScriptAccess" value="never" />
  <param name="allowNetworking" value="internal" />
</object>


if i take out the code to move the music player, the video is perfectly fine. but when i use that code, it moves both objects. so now the video is in the top left of it's div, and it sits over my text.

how can i move the music player without moving the video?
IVIike
did you try this script?

http://www.createblog.com/scripts/download.php?id=513

if that doesnt work use this code:

CODE
<style>td td object {position:absolute; left:0px; top:0px; display:block; width:0px; height:0px;}</style>
usernametaken
QUOTE(IVIike @ Apr 2 2007, 3:01 PM) *
did you try this script?

http://www.createblog.com/scripts/download.php?id=513

if that doesnt work use this code:

CODE
<style>td td object {position:absolute; left:0px; top:0px; display:visible; width:0px; height:0px;}</style>


well, they both didn't really work. the first one hid the music player and made the video smaller and surrounded it with a white border. i tried messing with the height/width of each value and i still don't understand what they do and can't fix it by myself. the second one hid both the music player and the youtube video. what i'd really like is to have the music player in the top left corner and the video to just stay where it is. i still want the music player visible if that is possible.
freeflow
You can also put the video its in own div and position it around.


Edit// We posted at the same time. Understand that when you make the myspace music player smaller you automatically get a white background. Nothing you can do about that. When you move it, it might also move the video.
usernametaken
QUOTE(toyo loco @ Apr 2 2007, 5:41 PM) *
You can also put the video its in own div and position it around.
Edit// We posted at the same time. Understand that when you make the myspace music player smaller you automatically get a white background. Nothing you can do about that. When you move it, it might also move the video.


i don't care about the myspace music player's size, just it's positioning. i'm still having trouble understanding what does what, which is why i messed around with the width/height in each line of the first code he provided. when the music player was just simply not there, there was no white background. so it's like, either the music player stays the same size or goes away, otherwise it will have a white background? even if you move it? i never said anything about the music player's white background but i guess i should have. my original comment on the white background was around the video, not the music player

sorry i'm still not fully understanding and thus my statements are probably making no sense either. it might help if you visit the preview page for my layout. under the drummer there is two sections, "about me" and "who id like to me." i put the video in "who id like to me." they are both contained in <div class=aboutme></div>
freeflow
If the music player there is the one you are trying to move, as I already said place it its in own div. You can do that for the music video too. Then just position it exaclty where you want it.

CODE
<div class="content" style="position: absolute; left:000px;  top:000px; width:000px; height:000px; overflow: auto;">
CONTENT FOR DIV.
</div>


Change all the 000's and place where it says content you actual code.
usernametaken
No I'm talking about the MySpace music player. I removed the included music player because it didn't work. Sorry, I forgot the layout even came with one. I should've clarified that to begin with.
usernametaken
So is it possible or no?

Crap, now my page isn't working. I changed around my about me I didn't edit any code it just changed. What is this crap? The comment box I put in place of the layout's music player just broke.
freeflow
Comment boxes no longer work, because of how myspace changes the input tag whenever you have it in your code.

I'm confused about your problem are you having is just moving the myspace player?
usernametaken
Alright, this is the code im talking about:
CODE
<style type="text/css">
object {
position: absolute;
visibility: visible;
left: 0px;
top: 0px;
}
</style>


Without that code, this happens. Note the music player.


When the code is used, this happens:

[Video moves up and covers text]
freeflow
Try using this to move the player instead.
usernametaken
Thanks! Fixed now =]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.