
June 1st, 2004, 08:57 PM
|
 |
Coconuts migrate?
|
|
Join Date: Feb 2004
Location: http://middle.nowhere.com
|
|
|
IE is weird... (div issue)
Hey gang, quick question. I'm tring to make a "Thermometer" of sorts for my site, and instead of making lots of images in photoshop, I figured I could do it a little more dynamicly using divs and css. I was right, as Firefox displays my code perfectly, however, IE messes up the whole thing by keeping the allocated space for the one div in the place where its positioned in the code. Dumb thing. I figure it has something to do with the display property, but I'm not sure which to use. Any suggestions? Thanks!
PHP Code:
<div style="height: 500px; width: 100px; padding: 0px; margin: 0px; border: 0px black solid; background: url('meter_color.jpg');">
<div style="position: relative; top: 0px; left: 0px; height: 125px; width: 100px; padding: 0px; margin: 0px; background: #FFFFFF; z-index: 1;"></div>
<div style="position: relative; top: -125px; left: 0px; height: 500px; width: 100px; padding: 0px; margin: 0px; background: url('mask.gif'); z-index: 2;"></div>
</div>
(images attached)
-Jim
__________________
Proud member of the T.S.N.B.U.F.L (tables should not be used for layout) alliance.
"Only use elements for their intended purpose. You wouldn't try to make coffee with a telephone, would you?" -Me
|