Jump to content

VISTA IE v WinXP IE and CSS container


jasonc

Recommended Posts

the following code shows the page correctly in IE and FireFox, but when viewed using Vista and IE it is not showing correctly.

 

the box is now showing with gaps in between, but this should not be like this, it should all be in one block.

 

can anyone see what could be wrong with my code that is causing this to happen?

 

thanks in advance for your help.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
#index-container { border: 1px solid #fff; background: #CC9966; }
.rtopcolour1, .rbottomcolour1{ display: block; background:#CC9966; }
#index-content { margin: 8px; }
.containercolour1 { position:relative; background:#CC3366; margin:0 5px;}
.rtopcolour1 *, .rbottomcolour1 *{ display: block; height: 1px; overflow: hidden; background:#CC3366; }
.r1{ margin: 0 5px}
.r2{ margin: 0 3px}
.r3{ margin: 0 2px}
.r4{ margin: 0 1px; height: 1px }
h1 { text-align: left; font: small tahoma; font-size: 12px; font-weight: bold; margin: 0 0; padding: 5; }
h2 { text-align: left; font: small tahoma; font-size: 12px; font-weight: bold; margin: 0 5; padding: 5; }
h3 { text-align: left; font: small tahoma; font-size: 12px; font-weight: bold; margin: 0 5; padding: 10; }
</style>
</head>
<body bgcolor="#CC9966">

<div class="containercolour1">
<b class="rtopcolour1"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
	<h1><a class="two" href="" target="_blank">text here</a></h1>
<b class="rbottomcolour1"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>

</body></html>

Link to comment
https://forums.phpfreaks.com/topic/106597-vista-ie-v-winxp-ie-and-css-container/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.