News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Header table colors in Firefox/Mozilla-Help!

Started by hotclub, March 12, 2005, 02:27:58 PM

Previous topic - Next topic

hotclub

I am trying to get my forum to look like the rest of my site. I figured out that I have to edit indes.template and I have everything displaying correctly. However, My table colors are not showing up. I checked style.css and could not find anythiing.

Here is the code I added for the header:</head>
<body>';



// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<div id="headerarea" style="padding: 12px 30px 4px 30px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 90%;' : '', '">';

//header
echo '<table border="0" align="center" cellpadding="0" cellspacing="0">
  <tr >
    <td><div align="right"><img src="../Lcorner.jpg" width="100" height="86"></div></td>
    <td width="90%" bgcolor="336699">
      <div align="center"><img src="../logo.jpg" width="600" height="86"></div></td>
    <td bgcolor="336699">
<p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="9%" valign="top" bgcolor="336699">
      <p><a href="../index.html">Home</a></p>
      <p><a href="#">Find Investors</a></p>
      <p><a href="#">Find Ideas</a> </p>
      <p><a href="../contact.html">Contact</a></p>
      <p><a href="../links.html">Links</a></p></td>
    <td bordercolor="#000000"> ';

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';


Andhere is the code I added for the footer: // Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

//footer
echo '</td>
    <td width="1%" bgcolor="336699">&nbsp;</td>
  </tr>
  <tr bgcolor="6B8EAE">
    <td colspan="3" bgcolor="336699">
      <div align="center"><font size="1" face="Geneva, Arial, Helvetica, san-serif">&copy;2005
        <a href="http://www.investorswanted.com"><font size="-2">InvestorsWanted.com</font></a>
        all rights reserved</font></div></td>
  </tr>
</table>';


echo '
</div>';

// This is an interesting bug in Internet Explorer AND Safari.  Rather annoying, it makes overflows just not tall enough.


Thanks in advance!


hotclub

Forgot to specify, this problem only exists with firefox. No prob with ie.

A.M.A

Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

hotclub

Quote from: A.M.A on March 12, 2005, 06:21:35 PM
replace:
bgcolor="336699"
with
bgcolor="#336699"

Thanks. I tried that and still no table bg colors in firefox.  :-[

[Unknown]


Advertisement: