The z-index is used to indicate the stacking order. The higher the value the forward the object appears. The two lines of text have the same positioning from the top and left margins therefore one is on top of the other. The higher the z-index value will display that object in front or on top of the stack. The absolute positions eliminates the float capabilities.
Z-Index Example
Running Wild
Mustangs
.foreground{font-family:Impact;
font-size:50px; color:#336699;
top:400px;left:450px;position:absolute;z-index:2
.smallfont{font-family:Zapf Chancery;
color:#ffcccc;font-size:30px;
top:400px;left:400px;position:absolute;
z-index:1}
|