Log In · Register

 
CSS/Objects - Moving items, Moving one and not the other
usernametaken
post 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?
 
 
Start new topic
Replies
*IVIike*
post 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>
 
usernametaken
post Apr 2 2007, 07:40 PM
Post #3


Newbie
*

Group: Member
Posts: 7
Joined: Apr 2007
Member No: 514,062



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.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: