This is supposes to give the div a green background color which is does in FF but don't in IE. In IE it stays white. Can someone explain why?
<html> <head> <title>Untitled Document</title> </head> <body> <div style="position: relative; height: 200px;"> <div > <div style="background-color:green; ">This is a test</div> </div> </div> </body> </html>
And can someone explain why these to make a green background in IE?
- changing relative to absulote
- removing position style
- removing height style
- removing div surrounding div with background-color:green style
- moving style=background-color: green to any divs above