CSS/Objects - Moving items, Moving one and not the other |
![]() ![]() |
CSS/Objects - Moving items, Moving one and not the other |
Apr 2 2007, 02:19 PM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Apr 2007 Member No: 514,062 |
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* |
Apr 2 2007, 05:01 PM
Post
#2
|
|
Guest |
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>
|
|
|
|
Apr 2 2007, 07:40 PM
Post
#3
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Apr 2007 Member No: 514,062 |
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. |
|
|
|
Apr 2 2007, 07:41 PM
Post
#4
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
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. |
|
|
|
Apr 2 2007, 08:21 PM
Post
#5
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Apr 2007 Member No: 514,062 |
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> |
|
|
|
Apr 2 2007, 09:24 PM
Post
#6
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
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. |
|
|
|
Apr 2 2007, 10:12 PM
Post
#7
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Apr 2007 Member No: 514,062 |
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.
|
|
|
|
Apr 5 2007, 10:11 PM
Post
#8
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Apr 2007 Member No: 514,062 |
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. |
|
|
|
Apr 5 2007, 10:25 PM
Post
#9
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
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? |
|
|
|
Apr 5 2007, 10:53 PM
Post
#10
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Apr 2007 Member No: 514,062 |
|
|
|
|
Apr 5 2007, 11:06 PM
Post
#11
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
Try using this to move the player instead.
|
|
|
|
Apr 5 2007, 11:11 PM
Post
#12
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Apr 2007 Member No: 514,062 |
Thanks! Fixed now =]
|
|
|
|
![]() ![]() |