Adobe Forums

Add Me
Adobe Forums » Software Discussions » GoLive » Macintosh » z-index problem

Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 07:11 AM
Jesper_Møller@adobeforums.com
Guest
 
Posts: n/a
Default z-index problem

On a page im trying to buildt i cant get the z-index to work

Look at:
<http://home19.inet.tele.dk/jgom/alskaer/>

The logo goes under other elements, even it has z-index 200 and the other elements has 10 and 100

(it goes under all elements with a z-index)

Anny ideers ??


Reply With Quote


  #2 (permalink)  
Old 11-20-2008, 07:11 AM
Kath_Howard3@adobeforums.com
Guest
 
Posts: n/a
Default Re: z-index problem

I don't see a z-index????
Reply With Quote


  #3 (permalink)  
Old 11-20-2008, 07:11 AM
Jesper_Møller@adobeforums.com
Guest
 
Posts: n/a
Default Re: z-index problem

Its in the css

<http://home19.inet.tele.dk/jgom/alskaer/css/setup.css>
Reply With Quote


  #4 (permalink)  
Old 11-20-2008, 07:11 AM
Kath_Howard3@adobeforums.com
Guest
 
Posts: n/a
Default Re: z-index problem

Hmmm. the logo is absolutely positioned, but it's not, if you see what I mean.

Ah, you have two style sheets attached.
Reply With Quote


  #5 (permalink)  
Old 11-20-2008, 07:11 AM
Jesper_Møller@adobeforums.com
Guest
 
Posts: n/a
Default Re: z-index problem



Hmmm. the logo is absolutely positioned, but it's not, if you see what
I mean.




No ?? .. dont get that

I have to position it to get it where i want it:

position: absolute;
z-index: 200;
right: 15px;
top: 135px;

The funny thing is... If i remove all Z-index the logo gos on top as it shud

Ah, you have two style sheets attached.




yes... one for the setup and one for style (color, font, bg-image and so on)
Reply With Quote


  #6 (permalink)  
Old 11-20-2008, 07:11 AM
Kath_Howard3@adobeforums.com
Guest
 
Posts: n/a
Default Re: z-index problem

I'd only looked at the first one, where you had position: absolute; but no specifications for the position.

Anyway, looks like you found the solution
Reply With Quote


  #7 (permalink)  
Old 11-20-2008, 07:11 AM
Jesper_Møller@adobeforums.com
Guest
 
Posts: n/a
Default Re: z-index problem



Anyway, looks like you found the solution




Yes kind of .. If i dont want to make use of Z-Index ... but i woud like to be able to do that

And i dont understand why they dont work
Reply With Quote


  #8 (permalink)  
Old 11-20-2008, 07:11 AM
Murray
Guest
 
Posts: n/a
Default Re: z-index problem

Change this -

<div id="pagehead">
<!-- Page Picture, Logo and Title -->
<h1 id="pagetitle">Alskaer</h1>
<div id="sitelogo">
<img
src="http://home19.inet.tele.dk/jgom/alskaer/grafik/alskaer-logo.png" alt=""
/></div>

to this -

<div id="sitelogo">
<img
src="http://home19.inet.tele.dk/jgom/alskaer/grafik/alskaer-logo.png" alt=""
/></div>
<div id="pagehead">
<!-- Page Picture, Logo and Title -->
<h1 id="pagetitle">Alskaer</h1>

Or - make div#pagehead have a z-index of 200.

--
Murray

Reply With Quote


  #9 (permalink)  
Old 11-20-2008, 07:11 AM
Jesper_Møller@adobeforums.com
Guest
 
Posts: n/a
Default Re: z-index problem

Thanks Murray

But im stil puzzeld over what is going on ?
maby you can clear this for me

example

IF:

<div style="z-index: 10" id="lay1">
<div style="z-index: 200" id="sub1">
</div>
</div>

<div style="z-index: 10" id="lay2">
<div style="z-index: 100" id="sub2">
</div>
</div>

sub1 will go under sub2 becaus lay1 and lay2 has the same z-index ??

Or how can it be explaind ??

Hope my question/konfusin make sens
Reply With Quote


  #10 (permalink)  
Old 11-20-2008, 07:11 AM
Murray
Guest
 
Posts: n/a
Default Re: z-index problem

The div with a z-index of 200 was a descendent of a div with a z-index of
10. That was the problem.

My suggestions were -

1. Move the div with the z-index of 200 OUT OF THE parent div, or
2. Make the parent div also have a z-index of 200

Either of those would work.

I'm not crazy about your use of absolute positioning though. There's no
need for it on that page....

--
Murray

Reply With Quote


Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Hairstyles | UFO Videos | Bollywood Wallpapers | Poems  | WWE


All times are GMT. The time now is 08:15 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.