The z-index property will set a bottom to top display ordering of positioned elements. By positioned I mean elements that have been given a position in CSS, e.g. position:relative. This will allow you to specify elements that should appear on top when elements overlap.
My Ajax Calendar Extender Dilemma
I had a issue whereby my ajax calendar extender pop up seemed to have a transparent background and the dates were difficult to read. They appeared to be overlapped by another element on the page. I've read many posts about the ajax calendar extender being buggy and a few discussing z-index; none provided me with enough detail to fix my problem.
People are quick to call things buggy if they're not really sure what is causing a problem, so I dimissed this to begin with and concentated on learning about the CSS z-index property, which incidentally, DID, fix my display problem with the ajax calendar extender.
I have provided you with some code to clear things up.
Copy the following html and css from <html> to </html> and paste it into a notepad file then save as default.htm (or a name of your choice). Double-click this file to run and click on the top plus sign(+) to show pop up. Play around with the z-index ordering in the CSS script section of this code and re-run to see different effects.
Hello. I'm Mark Graham. In no particular order, I love creativity, fine-art/ graphics/ photography, innovativeness, my partner, my kids, guitar music, Joe Satriani(no, not in that way), .net, programming, the web, golf, coffee in, coffee out, my blog, my ambition
Code and Rock is a new methodology that I designed. You basically start up Visual Studio, then slap on a rocking track. Snare that spacebar! Try it with this one from Joe Satriani...
0 comments:
Post a Comment