Log In · Register

 
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>
 
 
Start new topic
Replies
PeRRiiN
post Jan 27 2009, 01:54 PM
Post #2


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>

 

Posts in this topic


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