• 0

[HTML]+[CSS] IE problem, works fine in firefox


Question

Hey,

ok, well basically, its only a small thing but, it shows fine in firefox, but not ie (6 & 7)

Heres the code for you to test:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;html>
<head>
<title>Techaholics</title>
<style type="text/css">
<!--

#box {
	position:absolute;
	padding: 20px;
	left:20px;
	width:160px;
	top:20px;
	background: #2B547C url(box.png) top repeat-x;
	}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>

<div id="box">

 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>
 ?<p>Test</p>

</div>

</body>
</html>

And here is the image it needs (box.png):

post-48265-1126985903.png

As you see it shows fine in firefox, nice and smooth gradient, but in IE, it dosent, lol, why? and how do i fix it?

Thanks, Tim

2 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.