Help - Search - Members - Calendar
Full Version: DIV Positioning
Forums > Resource Center > Support Center > MySpace Support > Myspace Resolved Topics
lowridincrew
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
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
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
Oh, I didn't know he was using a 2.0 profile. In that case, your code won't work either. DIV tags don't work for sections anymore. 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
Of course DIVs will work in 2.0.
It's made of pretty much nothing but DIVs.
Mickey
No shit. I said DIV tags don't work for sections (like About Me, Who I'd Like To Meet, etc). You have to use a substitute tag like <p>. That's why it wasn't working for T. Dames in the first place. If you don't believe me, try it for yourself.
PeRRiiN
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
QUOTE(Mike @ Jan 27 2009, 03:51 PM) *
If you don't believe me, try it for yourself.


I did.
http://profile.myspace.com/135452764
lowridincrew
QUOTE(Mike @ Jan 27 2009, 02:18 PM) *
Oh, I didn't know he was using a 2.0 profile. In that case, your code won't work either. DIV tags don't work for sections anymore. 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.

This works just fine. it takes a long time for alot of coding though. but it works
Mickey
Topic closed & moved.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.