Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with this CSS, please

Status
Not open for further replies.

arst06d

Programmer
Nov 29, 2002
324
Hi

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?
 
Sorry, here's the output from IE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<title>Golf In Spain - Home</title>
<meta name="description" content="Joomla - the dynamic portal engine and content management system" />
<meta name="keywords" content="Joomla, joomla" />
<meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2006 Open Source Matters. All rights reserved." />
<meta name="robots" content="index, follow" />
<link rel="shortcut icon" href=" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href=" rel="stylesheet" type="text/css"/>
</head>

<body>
<div id="wrapper">
<div id="header">
<div id="header2">
</div>
<div id="search_inner">

<form action="index.php?option=com_search" method="get">
<div class="search">
<input name="searchword" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="search..." onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /> </div>

<input type="hidden" name="option" value="com_search" />
<input type="hidden" name="Itemid" value="" />
</form> </div>
</div>

<div id="inner">
<div id="middle" class="clearfix">
<div id="content">

<div id="left">
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
Main Menu </th>
</tr>
<tr>
<td>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href=" class="mainlevel" id="active_menu">Home</a></td></tr>
<tr align="left"><td><a href=" class="mainlevel" >Accomodation</a></td></tr>
<tr align="left"><td><a href=" class="mainlevel" >Resort</a></td></tr>
<tr align="left"><td><a href=" class="mainlevel" >Area</a></td></tr>
<tr align="left"><td><a href=" class="mainlevel" >Bookings</a></td></tr>
</table> </td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
Login Form </th>
</tr>
<tr>
<td>
<form action=" method="post" name="login" >

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<label for="mod_login_username">
Username </label>
<br />
<input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" size="10" />
<br />
<label for="mod_login_password">
Password </label>
<br />
<input type="password" id="mod_login_password" name="passwd" class="inputbox" size="10" alt="password" />
<br />
<input type="checkbox" name="remember" id="mod_login_remember" class="inputbox" value="yes" alt="Remember Me" />
<label for="mod_login_remember">
Remember me </label>
<br />
<input type="submit" name="Submit" class="button" value="Login" />
</td>
</tr>
<tr>
<td>
<a href=" Lost Password?</a>
</td>
</tr>
<tr>
<td>
No account yet? <a href=" Register</a>
</td>
</tr>
</table>

<input type="hidden" name="option" value="login" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="english" />
<input type="hidden" name="return" value=" />
<input type="hidden" name="message" value="0" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="j945193982314a3de68e350231d23e9fb" value="1" />
</form>
</td>
</tr>
</table>
</div>

<div id="right">
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
Polls </th>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
Who's Online </th>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
eWeather </th>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" style="border-collapse: collapse;" align="center" width="99%">
<tr>
<td colspan="2" align="center" style="border-bottom: 1px solid #CCCCCC;">
<div align="center"><strong>Almeria, Spain</strong></div>
</td>
</tr>
<tr>
<td>
<div align="center" valign="middle"><img src=" alt="" border="0"></div>
</td>
<td valign="top">
<table border="0" style="margin: 0px; padding: 0px;" cellspacing="0" cellpadding="0" width="99%" align="center">
<tr>
<td style="margin: 0px; padding: 0px; text-align: left;">
<strong>Temp:</strong>
</td>
<td style="margin: 0px; padding: 0px; text-align: right;">
20&#176;C
</td>
</tr>
<tr>
<td style="margin: 0px; padding: 0px; text-align: left;">
<strong>Wind Chill:</strong>
</td>
<td style="margin: 0px; padding: 0px; text-align: right;">
20&#176;C
</td>
</tr>
<tr>
<td style="margin: 0px; padding: 0px; text-align: left;">
<strong>Humidity:</strong>
</td>
<td style="margin: 0px; padding: 0px; text-align: right;">
64%
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="0" style="border-collapse: collapse;" align="center" width="99%">
<tr>
<td valign="top">
<table border="0" style="margin: 0px; padding: 0px;" cellspacing="0" cellpadding="0" width="99%" align="center">
<tr>
<td style="margin: 0px; padding: 0px; text-align: left;">
<strong>Speed:</strong>
</td>
<td style="margin: 0px; padding: 0px; text-align: right;">
50&nbsp;km/h
</td>
</tr>
<tr>
<td style="margin: 0px; padding: 0px; text-align: left;">
<strong>Direct.:</strong>
</td>
<td style="margin: 0px; padding: 0px; text-align: right;">
260&#176;
</td>
</tr>
<tr>
<td style="margin: 0px; padding: 0px; text-align: left;">
<strong>Barom.:</strong>
</td>
<td style="margin: 0px; padding: 0px; text-align: right;">
1010.2&nbsp;mb
</td>
</tr>
</table>
</td>
<td>
<div align="center"><img src=" alt="" border="0"></div>
<div align="center"><strong>W</strong></div>
</td>
</tr>
<tr>
<td colspan="2" style="border-top: 1px solid #CCCCCC; text-align: center; padding-top: 8px; float: none;" align="center">
<a class="button" style="float: none;" href="index.php?option=com_eweather&Itemid=0">Show more details</a>
</td>
</tr>
<tr>
<td colspan="2" align="right" style="padding-top: 15px;">
<div align="right"><font class="small">Provided by:&nbsp;<a href=" target="blank">
<img src=" border="0"></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>

<div id="pathway">
<span class="pathway">Home </span> </div>
<div id="content2">
<table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top"><div>
<table class="contentpaneopen">
<tr>
<td valign="top" colspan="2">
<div align="justify">Vera, in Almer&iacute;a, had been waiting years for a golf course and finally through Golf Valle del Este the dream of so many people came true in 2002.&nbsp; This is Europe&acute;s second desert course.&nbsp;&nbsp; Designed by Jos&eacute; Canales, who closely studied techniques in Arizona before moving machinery on to this prime site, the course winds through low hills and brush where there is a stark contrast between the green of the golf and its aird surroundings. The autoctonous trees, olives, algarrobos, figs, palms and sparta grasses add to the natural environment,which the developers have been careful to respect. The sea is visible from several holes. Valle del Este is located some 40 minutes east of Almer&iacute;a international airport, an hour from Murcia and two hours from Alicante.</div><div align="center">&nbsp;</div><div align="center"><img src=" width="480" height="361" hspace="6" alt="Valle del Este Golf Course" title="Valle del Este Golf Course" border="1" /></div> </td>
</tr>
</table>

<span class="article_seperator">&nbsp;</span>

</div></td></tr></table> </div>

</div>
</div>
</div>

<div id="footer">
<div align="center">
&copy; 2007 Golf In Spain</div>

<!--
<div align="center">
</div>
-->
</div>
</div>


<div align="center">
<div id="footer2">Designed by <a href=" target="_blank" title="red_evolution">Red Evolution</a>
</div>
</div>

</body>

</html><!-- 1173288642 -->

I appreciate everybody's time.
 
Ok, I figured this out and fixed my problem by adding just one line to the #inner

#inner{
margin-right:150px;
background:#CCCCCC;/* left column colour*/
color: #000000;
}
becomes
#inner{
margin-right:150px;
background:#CCCCCC;/* left column colour*/
color: #000000;
height:100%;
}

Thanks to you all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top