Log In · Register

 
 
Closed TopicStart new topic
DIV Positioning, on 2.0
lowridincrew
post Jan 27 2009, 12:34 AM
Post #1


Senior Member
***

Group: Member
Posts: 49
Joined: May 2007
Member No: 521,710



This is pissing me off. I'm trying to add a video on the top of my page (561 x 313)
www.myspace.com/lrc4lyfe
I dont know where to post the code or am i using the right code or not
I've tried the css spot and the About me spot
Example:
CODE
<div style="width: 500px; height: 500px; font-family: verdana; border-style:solid; border-width:1px; border-color: 000000; font-size: 9px; text-align: left; overflow: auto; padding: 4px; position:absolute; top:100px; left:50%; margin-left:-370px;">
YOUTUBEVIDEO!!!!!!!!!!!!!
</div>
 
Mickey
post Jan 27 2009, 06:13 AM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Try adding a z-index property to your DIV code:

CODE
<div style="width: 500px; height: 500px; font-family: verdana; border-style:solid; border-width:1px; border-color: 000000; font-size: 9px; text-align: left; overflow: auto; padding: 4px; position:absolute; top:100px; left:50%; margin-left:-370px; z-index:9;">
YOUTUBEVIDEO!!!!!!!!!!!!!
</div>

If that doesn't work, post all your codes because you might have something that's making it hidden.
 
PeRRiiN
post Jan 27 2009, 01:54 PM
Post #3


Senior Member
***

Group: Member
Posts: 69
Joined: Jul 2008
Member No: 668,177



nope, that will not work either.
He has profile 2.0 so he can no longer use a direct style on a Div. He needs to style the Div inside the CSS box and assign it a class.

This is what you have to do, put this code in your CSS box..
CODE
div.youtube {width:561px; height:313px; font-family:verdana; border-style:solid; border-width:1px; border-color:000000; font-size:9px; text-align:left; overflow:auto; padding:4px; position:absolute; top:100px; left:50%; margin-left:-370px; z-index:9;}


then put this code in your 'about me' section..

CODE
<div class="youtube">
YOUTUBEVIDEO!!!!!!!!!!!!! goes here
</div>

 
Mickey
post Jan 27 2009, 02:18 PM
Post #4


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



T. Dames, use my code instead. Look for this bit:

CODE
<p class="topbanner"><img src="URL" /></p>

Replace the image code (<img src="URL" />) with your YouTube codes.
 
miguelS
post Jan 27 2009, 03:42 PM
Post #5


Senior Member
****

Group: Human
Posts: 100
Joined: Sep 2008
Member No: 682,308



Of course DIVs will work in 2.0.
It's made of pretty much nothing but DIVs.
 
PeRRiiN
post Jan 27 2009, 04:50 PM
Post #6


Senior Member
***

Group: Member
Posts: 69
Joined: Jul 2008
Member No: 668,177



it WILL work if he does what i suggested.
you didn't know he was using profile 2.0? it says it on the topic title and he even was kind enough to post his myspace for you to look at it. If you didn't check the title of the topic nor his page, what do you read?
 
miguelS
post Jan 27 2009, 05:39 PM
Post #7


Senior Member
****

Group: Human
Posts: 100
Joined: Sep 2008
Member No: 682,308



I did.
http://profile.myspace.com/135452764
 
lowridincrew
post Jan 28 2009, 12:14 AM
Post #8


Senior Member
***

Group: Member
Posts: 49
Joined: May 2007
Member No: 521,710



This works just fine. it takes a long time for alot of coding though. but it works
 
Mickey
post Jan 28 2009, 09:33 AM
Post #9


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Topic closed & moved.
 

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