Help - Search - Members - Calendar
Full Version: problem with z-index
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
roko202
Im making a div overlay, and i made a div table with a z-index of 10, and it wont work.

i type in z-index:10; and when i submit it it looks like z-index..;
pandy
z-index only applies to positioned elements. Could that be the problem?

QUOTE
i type in z-index:10; and when i submit it it looks like z-index..;


Are you talking about a problem with your editor now or...?
roko202
here is what the code looks like before i hit submit...


QUOTE
.band{
position:absolute;
top:1000px;
left:26%;
margin-left:-100px;
width:200px;
height:200px;
z-index:10;
padding:0px;
border:0px solid black;
background-color:1c1c1c;

}


here is what it looks like after submit...


QUOTE

.band{
position:absolute;
top:1000px;
left:26%;
margin-left:-100px;
width:200px;
height:200px;
..; <-----------
padding:0px;
border:0px solid black;
background-color:1c1c1c;

}


and here is the declaration for it

QUOTE

<div class="band"></div>


i have 9 other layers and they work fine and the z index works fine, but this doesnt for some reason
pandy
Hit what submit? Are you using some kind of online editor your host provides?

The selector is invalid both before and after the submission. There is no element called QUOTE and even if there were, 'quote.band' and 'quote .band' (with a space) don't match the same thing. You also lack a hash sign in the value for background-color. 1c1c1c should be #1c1c1c.
Darin McGrew
The "QUOTE" is added by the forum software...
pandy
Oh damned! I read the code in the notification email and QUOTE was perfectly placed. Well, in the first case anyway. laugh.gif
roko202
Sorry, forgot to add that this is for myspace. lol.

and the quote is from the forum, thats not actually in the code. And the hexadecimals in all my other layers do not have hash signs, and they work flawlessly
pandy
QUOTE(roko202 @ Oct 21 2008, 04:07 AM) *

Sorry, forgot to add that this is for myspace. lol.


Well, hard to do anything about what they are up to. Do you have to use the editor? They don't let you upload an external CSS file?

QUOTE
and the quote is from the forum, thats not actually in the code.


Sorry about that. It looked very realistic in the email. blush.gif

QUOTE

And the hexadecimals in all my other layers do not have hash signs, and they work flawlessly


It may work, but I wouldn't call it flawlessly. It works in some browsers if you use a doctype that triggers Quirks Mode. That doesn't make it right.
roko202
Maybe not flawless, but i checked it in IE and FF, and they work. But illl add them for good measure biggrin.gif
pandy
Maybe they don't allow you to use z-index and simply deletes it. Maybe they fear you'll use it to overlay their banners and stuff. Nevertheless, I'm almost sure I've seen people posting their myspace code here use z-index. unsure.gif
roko202
Yeah, i thought that at first too, but i have 9 other z-index layers, and they work, and dont pose the problem the 10th layer does. idk, im all out of ideas wacko.gif
pandy
Don't they have support? A forum or something?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.