D
Darren Benfer
Does z-index only have an effect on layering, or does it influence the
actual order that elements are loaded?
Thanks,
actual order that elements are loaded?
Thanks,
Darren Benfer said:Does z-index only have an effect on layering, or does it influence the
actual order that elements are loaded?
A few notes:
- z-index is not an HTML (or XHTML) concept at all; it is pure CSS
- there is no "layering" concept in CSS except as an informal
description of the effect of z-index; read what the CSS
specifications say about z-index, instead of assuming some
"layering" idea
- "loading" of elements could mean different things, and I cannot
guess which of them you're referring to, and why
- but if you mean positioning, then the answer is that z-index has
no effect on it, absolutely or relatively.
Darren Benfer said:I never said it was an HTML/XHTML concept...?
If you are telling me to
take this to another usenet group, please let me know if there is one
specifically covering css - my isp doesn't carry any that I can see.
What I mean is how the browser draws the elements. If I order them using
z-index, will the browser draw them in that order. I ask this because of
image load times. If I could use z-index to bring up the main content
first, then have my larger image appear it would be nice. Just curious
about the technique used to draw the page...
What do you think the subject line "xhtml z-index question" implies?
comp.infosystems.www.authoring.stylesheets is the groupd most focussed
on CSS.
No. The order in which the browser downloads the elements is not
affected at all by CSS (assuming that your images are <img> elements
and not CSS backgrounds).
Darren said:I never said it was an HTML/XHTML concept...?
take this to another usenet group, please let me know if there is one
specifically covering css - my isp doesn't carry any that I can see.
I constantly see people referring to z-index and css as a "layering"
effect.
"stacking" would have been better?
What I mean is how the browser draws the elements. If I order them using
z-index, will the browser draw them in that order. I ask this because of
image load times. If I could use z-index to bring up the main content
first, then have my larger image appear it would be nice. Just curious
about the technique used to draw the page...
What I mean is how the browser draws the elements.
z-index, will the browser draw them in that order.
image load times. If I could use z-index to bring up the main content
first, then have my larger image appear it would be nice. Just curious
about the technique used to draw the page...
We have no control and no intimate understanding of how many browsers
and browser versions draw webpage elements.
If I order them using
The final paint/reflow might respect the z-index as intended by the
spec but by setting z-index for elements implies creating abs. pos.
elements; you will make your page more complex, therefore longer to
parse, render, intermediary reflow/repaints needed. etc..
Some references:
Graphics and network bandwidth (and the whole chapter on graphics)
http://www.webstyleguide.com/graphics/bandwidth.html
Web Site Optimization
http://www.websiteoptimization.com/
Webpage size checker
http://searchengineworld.com/cgi-bin/page_size.cgi
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.