arst06d
Programmer
- Nov 29, 2002
- 324
Hi
I have this php page
and this css
Displays perfectly in Firefox 2, but not in IE7 - the background colour of the left-hand sidebar should be grey (#CCCCCC), but for some reason IE shows yellow.
Can anybody please spot the problem?
I have this php page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/red_evolution_thirteen/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="header2">
</div>
<div id="search_inner">
<?php mosLoadModules ( 'user4', -1 ); ?>
</div>
</div>
<div id="inner">
<div id="middle" class="clearfix">
<div id="content">
<div id="left">
<?php mosLoadModules ( 'left' ); ?>
</div>
<div id="right">
<?php mosLoadModules ( 'right' ); ?>
</div>
<div id="pathway">
<?php mosPathWay(); ?>
</div>
<div id="content2">
<?php mosMainBody(); ?>
</div>
</div>
</div>
</div>
<div id="footer">
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
<?php mosLoadModules( 'debug', -1 );?>
</div>
</div>
<div align="center">
<div id="footer2">Designed by <a href=" target="_blank" title="red_evolution">Red Evolution</a>
</div>
</div>
</body>
</html>
and this css
/* Layout Stylesheet */
html,body {
height: 100%;
}
body {
padding:10px 20px 20px 20px;
text-align:center;
margin: 0px;
background: #888888 url(../images/bg.gif) repeat-x;
color: #000000;
}
#wrapper {
width:100%;
background: #FFEEBB; /* right column colour*/
color: #000000;
text-align:left;
}
/* website header, with logo */
#header {
position: relative;
background: #888888 url(../images/header_bg.gif) repeat-x;
color: #000000;
width:100%;
height: 90px;
clear:both;
font-family: arial, helvetica, sans-serif;
font-size: 11px;
text-align: left;
}
#header2 {
position: relative;
background: #888888 url(../images/header.jpg) no-repeat; /* right column colour*/
color: #000000;
height: 90px;
clear:both;
width: 260px;
z-index: 1;
font-family: arial, helvetica, sans-serif;
font-size: 11px;
text-align: left;
}
#header {
border-bottom: 1px solid #FFFFFF;
}
/* Search section */
#search_inner {
overflow: hidden;
position: absolute;
top: 10px;
right: 10px;
width: auto;
margin: 4px 0px 0px 0px;
}
#search_inner form {
padding: 0;
margin: 0;
}
#search_inner .inputbox {
line-height: 18px;
height: 18px;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
background: #FFFFFF;
text-indent: 5px;
border: 1px solid #CCCCCC;
}
/* content column */
#middle{
background:#EEEEEE;/* centre column colour*/
margin-left:160px;
color:#000000;
font-family: arial, helvetica, sans-serif;
font-size: 11px;
text-align: left;
}
#content {
position:relative;
width:100%;
float:left;/* contain clearing*/
background: #EEEEEE url(../images/content_bg.gif) repeat-x;
color: #000000;
}
#content2 {
position:relative;
width: auto;
padding-top: 2px;
padding-bottom: 10px;
padding-right: 2%;
padding-left: 2%;
margin: 0;
float:left;/* contain clearing*/
}
#content2{margin:0 -1px}/* moz needs this*/
#pathway {
position:relative;
height: 20px;
width: auto;
padding-top: 3px;
padding-bottom: 3px;
padding-right: 2%;
padding-left: 2%;
margin: 0;
font-family: arial, helvetica, sans-serif;
font-size: 11px;
text-align: left;
}
#pathway {margin:0 -1px}/* moz needs this*/
/* left column */
#inner{
margin-right:150px;
background:#CCCCCC;/* left column colour*/
color: #000000;
}
#left{
width:150px;
margin-left:-154px;/*overlap for old mozilla*/
position:relative;
left:-1px;/* now line it up*/
float:left;
font-family: arial, helvetica, sans-serif;
font-size: 11px;
text-align: left;
}
/* right column */
#right{
width:140px;
margin-right:-140px;/*overlap for old mozilla*/
position:relative;
left: 5px;/* now line it up*/
float:right;
font-family: arial, helvetica, sans-serif;
font-size: 11px;
text-align: left;
}
* html #left{margin-right: 5px;}/* 3 pixel jog*/
* html #right{margin-left: 5px;}/* 3 pixel jog*/
/* footer */
#footer {
background: #FF8800;
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
width:100%;
height: 40px;
clear:both;
padding: 10px 0px 0px 0px;
}
#footer {
border-top: 1px solid #FFFFFF;
border-bottom: 1px solid #FFFFFF;
}
#footer a:link, #footer a:visited {
color: #FFFFFF;
background: #FF8800;
}
#footer a:hover {
color: #000000;
background: #FF8800;
}
#footer2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #FFFFFF;
text-align: center;
background: #888888;
margin: 5px 0px 0px 0px;
padding: 0px;
}
#footer2 a:link, #footer2 a:visited {
color: #FFFFFF;
background: #888888;
text-decoration: none;
}
#footer2 a:hover {
color: #000000;
background: #888888;
}
/* clear without structural mark-up */
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* mac hide - force layout in ie \*/
* html .clearfix,* html #inner, * html #middle {height: 1%;}
.clearfix {display: block;}
/* End hide */
p.expand a{display:block; clear:both}
p.expand a:hover{height:200px;}
#content p img{float:right;}
/* CSS Document */
ul#mainlevel-nav
{
list-style: none;
padding: 0;
margin: 0;
font-size: 0.8em;
}
ul#mainlevel-nav li
{
background-image: none;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
padding-left: 0px;
padding-right: 0px;
float: right;
margin: 0;
font-size: 11px;
line-height: 21px;
white-space: nowrap;
}
ul#mainlevel-nav li a
{
display: block;
padding-left: 15px;
padding-right: 15px;
text-decoration: none;
color: #FFFFFF;
background: #555566;
}
#buttons>ul#mainlevel-nav li a { width: auto; }
ul#mainlevel-nav li a:hover
{
color: #000000;
background: #CCCCCC;
}
table.content_table {
width: 100%;
padding: 0px;
margin: 0px;
}
table.content_table td {
padding: 0px;
margin: 0px;
}
table td.body_outer {
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-top: 6px;
}
.maintitle {
color: #FFFFFF;
background: #CCCCCC;
font-size: 40px;
padding-left: 15px;
padding-top: 20px;
}
.error {
font-style: italic;
text-transform: uppercase;
padding: 5px;
font-size: 14px;
font-weight: bold;
}
/** old stuff **/
.back_button {
float: left;
text-align: center;
font-size: 11px;
font-weight: bold;
border: 3px double #CCCCCC;
width: auto;
background: url(../images/button_bg.png) repeat-x;
padding: 0px 10px;
line-height: 20px;
margin: 1px;
}
.pagenav {
text-align: center;
font-size: 11px;
font-weight: bold;
border: 3px double #CCCCCC;
width: auto;
background: url(../images/button_bg.png) repeat-x;
padding: 0px 10px;
line-height: 20px;
margin: 1px;
}
.pagenavbar {
margin-right: 10px;
float: right;
}
ul
{
margin: 0;
padding: 0;
list-style: none;
}
li
{
line-height: 15px;
padding-left: 15px;
padding-top: 0px;
background-image: url(../images/arrow.png);
background-repeat: no-repeat;
background-position: 0px 2px;
}
td {
text-align: left;
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
}
h2 {
text-align: left;
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
h3 {
text-align: left;
font-size: 13px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.latestnews {
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
a.latestnews:link, a.latestnews:visited {
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
a.latestnews:hover {
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
/* Joomla core stuff */
a:link, a:visited {
color: #FF8000;
text-decoration: none;
font-weight: bold;
}
a:active {
color: #000000;
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #000000;
text-decoration: none;
font-weight: bold;
}
table.contentpaneopen {
width: 100%;
padding: 0px;
border-collapse: collapse;
border-spacing: 0px;
margin: 0px;
}
table.contentpaneopen td {
padding-right: 5px;
}
table.contentpaneopen td.componentheading {
padding-left: 4px;
}
table.contentpane {
width: 100%;
padding: 0px;
border-collapse: collapse;
border-spacing: 0px;
margin: 0px;
}
table.contentpane td {
margin: 0px;
padding: 0px;
}
table.contentpane td.componentheading {
padding-left: 4px;
}
table.contentpaneopen fieldset {
border-bottom: 1px solid #eee;
}
a.pathway:link, a.pathway:visited {
color: #FFFFFF;
background: #AAAAAA;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
font-size: 11px;
font-weight: bold;
}
a.pathway:hover {
color: #000000;
background: #AAAAAA;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
font-size: 11px;
font-weight: bold;
}
.button {
color: #FF8000;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
font-size: 11px;
font-weight: bold;
border: 3px double #CCCCCC;
width: auto;
background: #FFFFFF url(../images/button_bg.png) repeat-x;
padding: 0px 5px;
line-height: 18px;
height: 26px;
margin: 1px;
}
.inputbox {
padding: 2px;
border:solid 1px #CCCCCC;
}
.componentheading {
background: url(../images/subhead_bg.png) repeat-x;
text-align: left;
padding-top: 4px;
padding-left: 4px;
height: 21px;
font-weight: bold;
font-size: 12px;
}
.contentcolumn {
padding-right: 5px;
}
.contentheading {
height: 30px;
font-weight: bold;
font-size: 12px;
white-space: nowrap;
}
.contentpagetitle {
font-size: 13px;
font-weight: bold;
text-align:left;
}
table.searchinto {
width: 100%;
}
table.searchintro td {
font-weight: bold;
}
table.moduletable {
width: 100%;
margin-bottom: 5px;
padding: 0px;
border-spacing: 0px;
border-collapse: collapse;
}
div.moduletable {
padding: 0;
margin-bottom: 2px;
}
table.moduletable th, div.moduletable h3 {
background: url(../images/subhead_bg.png) repeat-x;
text-align: left;
padding-left: 4px;
height: 21px;
line-height: 21px;
font-weight: normal;
font-size: 11px;
margin: 0 0 2px 0;
}
table.moduletable td {
font-size: 11px;
padding: 0px;
margin: 0px;
font-weight: normal;
}
table.pollstableborder td {
padding: 2px;
}
.sectiontableheader {
font-weight: bold;
padding: 4px;
}
.sectiontablefooter {
}
.sectiontableentry1 {
}
.sectiontableentry2 {
}
.small {
font-size: 11px;
}
.createdate {
height: 15px;
padding-bottom: 10px;
font-size: 11px;
}
.modifydate {
height: 15px;
padding-top: 10px;
font-size: 11px;
}
table.contenttoc {
border: 1px solid #cccccc;
padding: 2px;
margin-left: 2px;
margin-bottom: 2px;
}
table.contenttoc td {
padding: 2px;
}
table.contenttoc th {
background: url(../images/subhead_bg.png) repeat-x;
text-align: left;
padding-top: 2px;
padding-left: 4px;
height: 21px;
font-weight: bold;
font-size: 10px;
}
a.mainlevel:link, a.mainlevel:visited {
display: block;
background: #CCCCCC url(../images/menu_bg.gif) no-repeat;
line-height: 24px;
height: 24px;
width: auto;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-align: left;
padding-left: 14px;
text-decoration: none;
font-weight: bold;
}
a.mainlevel:hover {
display: block;
background: #CCCCCC url(../images/menu_bg.gif) no-repeat;
line-height: 24px;
height: 24px;
padding-left: 14px;
width: auto;
background-position: 0px -24px;
color: #FF8000;
font-weight: bold;
}
a.mainlevel#active_menu {
display: block;
background: #CCCCCC url(../images/menu_bg.gif) no-repeat;
line-height: 24px;
height: 24px;
padding-left: 14px;
width: auto;
background-position: 0px -24px;
color: #FF8000;
font-weight: bold;
}
a.mainlevel#active_menu:hover {
display: block;
background: #CCCCCC url(../images/menu_bg.gif) no-repeat;
line-height: 24px;
height: 24px;
padding-left: 14px;
width: auto;
background-position: 0px -24px;
color: #FF8000;
font-weight: bold;
}
a.sublevel:link, a.sublevel:visited {
padding-left: 1px;
vertical-align: middle;
font-size: 11px;
font-weight: bold;
color: #555566;
background: #CCCCCC;
text-align: left;
}
a.sublevel:hover {
color: #000000;
background: #CCCCCC;
text-decoration: none;
}
a.sublevel#active_menu {
color: #000000;
background: #CCCCCC;
}
.highlight {
background-color: Yellow;
color: Blue;
padding: 0;
}
.code {
border: 1px solid #bbb;
}
form {
/* removes space below form elements */
margin: 0;
padding: 0;
}
div.mosimage {
border: 1px solid #ccc;
}
.mosimage {
border: 1px solid #cccccc;
margin: 5px
}
.mosimage_caption {
margin-top: 2px;
background: #efefef;
padding: 1px 2px;
color: #666;
font-size: 10px;
border-top: 1px solid #cccccc;
}
span.article_seperator {
display: block;
height: 1.5em;
}
#mod_templatechooser_jos_change_template.button {
padding: 0px;
margin: 5px 0px 5px 0px;
}
Displays perfectly in Firefox 2, but not in IE7 - the background colour of the left-hand sidebar should be grey (#CCCCCC), but for some reason IE shows yellow.
Can anybody please spot the problem?