Jump to content


z index


4 replies to this topic

#1 Bouzy210

    Jedi In Training

  • Members
  • PipPip
  • 434 posts
  • Gender:Male

Posted 17 January 2008 - 06:41 PM

I have a layout that I want to have a stripe go across the screen behind the layout, but z index doen't work. I have no idea what else to do.

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 17 January 2008 - 07:28 PM

z-index applies only to positioned elements (i.e. absolute, possible even relative, none else).

If you want the stripe to go behind the layout, why not make a background image on something behind the layout?

#3 Bouzy210

    Jedi In Training

  • Members
  • PipPip
  • 434 posts
  • Gender:Male

Posted 17 January 2008 - 08:38 PM

Mainly because I don't want the page to load slowly. But could you give me an example of what you mean? Besides don't background images normally look bad in different resolutions?

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 18 January 2008 - 02:22 AM

I use 99% background images on my site, they don't look any different at any resolution. It just depends on the kind of effect you're looking for. If by bad, you mean they don't scale to fit, then yes, you're right.
What i mean by putting one on something behind the layout, i mean, create a container-like layer that everything else will be nested inside of, and simply apply the background to it. Simplest fix i can think of, but maybe not the right one. If you could provide an image of the template, then maybe somebody else could come up with another idea.

And how would any of this affect page load times?

Edited by rc69, 18 January 2008 - 02:22 AM.


#5 Bouzy210

    Jedi In Training

  • Members
  • PipPip
  • 434 posts
  • Gender:Male

Posted 18 January 2008 - 02:57 PM

Ok thanks, hear it is... I was just thinking of doing a blue or green line behind so it lined up with the navigation. (I know the layout is messed up in FF I am trying to fix that. (if you have any advice on that either let me know.))

Also what do you think of the layout?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users