Help Me/Question Urgent: Help Me To Solve Marquee Issue

Status
Not open for further replies.

DevonWebsites

Yellow Belt
Hi Guys,

I really need some help. I have implemented a scrolling header using an html marquee. There was an issue getting it to fit the width so I used a colspan=28 for the TD before the marqueeing table. As soon as I increased this value above 24ish the whole website isn't centered properly anymore.

Can anyone tell me what I need to do to get this back in the center again?


Thank you
 
Last edited by a moderator:

DevonWebsites

Yellow Belt
Can you post some code here ?
Yes but I dont think it will help you.

FILE: index.php
Code:
<?php require("./dbconn.php"); ?>

<HTML>
<HEAD>
<TITLE>UK Wholesale Giftware, Furniture & Stone Supplier :: Worldwide Trading Enterprises Ltd</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<META Name="Description" CONTENT="Worldwide Trading is a UK Wholesale Supplier who work very closely with our customers, from small independent outlets – Gift Shops, Furniture Shops and Market Traders – to some of the largest Garden Centres in the country, We pride ourselves on understanding the market and building a Wholesale Product Range that fully meets the consumers' needs and expectations.">
<META Name="Keywords" CONTENT="Uk wholesale supplier distributor garden centre gift shop market trader stock wholesaler carvings furniture handicraft stoneware terracotta pottery trade england devon">

<link rel="stylesheet" type="text/css" href="/shop/stylesheet.css">
<?php require("./wwt.css.php"); ?>
<?php require("./header.php"); ?>


	<TR>
		<TD COLSPAN=11 valign="top" height=100% bgcolor=#EDEFEE >
		<TABLE WIDTH=539 bgcolor=ffffff BORDER=1 CELLPADDING=0 CELLSPACING=0 align="centre">

        <tr><td width=539  height=173>


<?php
$content_name = 'index_page_1';
require ("./cms.php");
?>


        </td></tr>
        <tr><td colspan=2  width=539 height=94  >
                <div class="text2"><BR> 

<?php
$content_name = 'index_page_2';
require ("./cms.php");

$content_name = 'index_page_3';
require ("./cms.php");

$content_name = 'index_page_4';
require ("./cms.php");

$content_name = 'index_page_5';
require ("./cms.php");

$content_name = 'index_page_6';
require ("./cms.php");

$content_name = 'index_page_7';
require ("./cms.php");

$content_name = 'index_page_8';
require ("./cms.php");

$content_name = 'index_page_9';
require ("./cms.php");

$content_name = 'index_page_10';
require ("./cms.php");

$content_name = 'index_page_11';
require ("./cms.php");

$content_name = 'index_page_12';
require ("./cms.php");

$content_name = 'index_page_13';
require ("./cms.php");

$content_name = 'index_page_14';
require ("./cms.php");

$content_name = 'index_page_15';
require ("./cms.php");

$content_name = 'fairtrade';
require ("./cms.php");
?>



 </div>

        </td></tr>
	</table>
			</TD>

<?php require("./right.php"); ?>



<?php require("./footer3.php"); ?>

FILE: header.php
Code:
</HEAD>
<BODY BGCOLOR=#a0a0a0 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<TABLE WIDTH=777 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center" height=100%>
	<TR>

<?php require("./header_products.php"); ?>


	</TD>
	    <td rowspan=100><img src="./images/spacer.gif" border=0 width=1></td>
	</TR>
<TR><TD COLSPAN=20 valign="top" align=left height=100% bgcolor=#EDEFEE >
FILE: header_products.php
Code:
<td colspan=28><table width=780><tr><td width=780 height=180>

   <MARQUEE BEHAVIOR=ALTERNATE direction="left" loop="0" width="780">

<?php

$sql = "select header_id, header_title, header_desc, header_image, header_url from header_products";
$result = mysql_query($sql) or die ("Query '$sql' failed with error message: \"" . mysql_error () . '"');

echo "<P><table><tr>";
while ($row  = mysql_fetch_assoc($result)) 
{

  $header_id=$row['header_id'];
  $header_title=$row['header_title'];
  $header_desc=$row['header_desc'];
  $header_image=$row['header_image'];
  $header_url=$row['header_url'];

echo "<td class='text3' valign=top align=center><A alt='" . $header_desc . "' href=" . $header_url . "><img border=0 src='" . $header_image . "' height=160></a><br /><A  alt='" . $header_desc . "' href=" . $header_url . ">" . $header_title . "</a></td>";
}

echo "</tr></table></p>";

?>
   </MARQUEE>
</table></td>
 

notvaliduser

Yellow Belt
How about using div instead of TD ? set it for scroll and give it some margin with css . You test it few times until your site is centered. I'm not sure if that will help you but I guess you can give it a try.
 

DevonWebsites

Yellow Belt
How about using div instead of TD ? set it for scroll and give it some margin with css . You test it few times until your site is centered. I'm not sure if that will help you but I guess you can give it a try.
Thanks DS, I will try that on Monday. It is almost 6pm on friday and I want to be at home!
 

DevonWebsites

Yellow Belt
I have been working on three new "pathway" pages. I was studying the logs and came to the conclusion that people wernt going where I wanted them too. As we sell the three specific industries I have come up with a pathway for each (Giftware, Furniture & garden Centres) and integrated these pages into the main navigation.
 
Status
Not open for further replies.
Top