Log In · Register

 
Placing a music player
spyce
post Apr 18 2007, 08:19 PM
Post #1


Newbie
*

Group: Member
Posts: 8
Joined: Apr 2007
Member No: 518,139



A friend of mine came to me for help placing a music plaer on his page. He wanted it positioned like many of the bands/artists do on their pages.. where the extended network box normally is. (See, Taking Back Sunday's MySpace for an example). He would also like to keep his blog in tact, as he does use it.

Now, the situation has gotten a bit sticky since I was given code that hides the extended network box, but this is what happens:

http://www.vanilla-chai.nu/images/junk/player.jpg

Any ideas how to actually place the box, and not just overlay it?
 
 
Start new topic
Replies
xTHExDUDEx
post Apr 19 2007, 11:21 AM
Post #2


Senior Member
****

Group: Member
Posts: 174
Joined: Apr 2007
Member No: 517,502



For others that want the link it is: www.myspace.com/hotlatinmonkey

You need to place the player inside a div and use CSS to position it.

Something like this:

HTML (I'd Like To Meet):

<div class="band_player">
<embed>YOUR FLASH PLAYER CODE HERE</embed>
</div>

CSS (About Me):

<style type="text/css">

.band_player {
position: absolute;
top: 150px;
right: 142px;
width: 250px;
height: 250px;
}

</style>

These are very rough estimates of the sizes/positions you'll need.
You will have to play with the numbers to get it where you want it, google or look around here for tutorials.
 

Posts in this topic


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