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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

V-Align "TOP" Text not working

Status
Not open for further replies.

wilcoHead

Programmer
Feb 2, 2005
85
Hello; This code seems to work fine in FireFox but does not display right in I.E. 6.0.

I am trying to get the "Testing News" to go directly under the "NewsHeader.jpg" image.

Here is the code:

------------------------------------
<TABLE ALIGN="center" WIDTH="615" CELLSPACING="0" CELLPADDING="0" BORDER="0" BACKGROUND="img/tableBack.jpg" HEIGHT="100%" STYLE="border: 1px solid Black;">
<TR>
<TD COLSPAN="2" WIDTH="615" VALIGN="top"><IMG SRC="img/header.jpg" ALT="" WIDTH="615" HEIGHT="97" BORDER="0"></TD>
</TR>
<TR>

<TD ROWSPAN="2" width="174" VALIGN="top">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" width="174" height="269" id="NewsNav" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="NewsNav.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#333333" />
<embed src="NewsNav.swf" quality="high" bgcolor="#333333" width="174" height="269" name="NewsNav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" />
</object>
</TD>

<TD VALIGN="top" WIDTH="442" HEIGHT="37"><IMG SRC="img/newsHeader.jpg" ALT="" WIDTH="442" HEIGHT="37" BORDER="0"></TD>
</TR>

<TR>
<TD ROWSPAN="4" VALIGN="top">
<TABLE ALIGN="center" WIDTH="400" CELLSPACING="2" CELLPADDING="2" BORDER="0">
<TR>
<TD WIDTH="400">
<!-- ********************************************************************* -->
<!-- NEWS STARTS HERE -->
Testing News

<!-- NEWS ENDS HERE -->
<!-- ********************************************************************* -->
</TD>
</TR>
</TABLE>
</TD>
</TR>

<TR>
<TD VALIGN="top" HEIGHT="128"><IMG SRC="img/belowFlash.jpg" ALT="" WIDTH="174" HEIGHT="128" BORDER="0"></TD>
</TR>

<TR>
<TD BACKGROUND="img/backLeftCol.jpg" WIDTH="174" HEIGHT="100%">&nbsp;</TD>
</TR>

<TR>
<TD WIDTH="615" HEIGHT="18" COLSPAN="2" ALIGN="center" VALIGN="middle" BACKGROUND="img/footerBack.gif" STYLE="border-top: 1px solid Black;"><SPAN CLASS="Footer">singsugar.com and Sharon Jones &copy;2005 All Rights Reserved - Site by <A HREF=" TARGET="_blank">hifiSPIN</A></SPAN></TD>
</TR>
</TABLE>
---------------------------------------
---------------------------------------

Please help!

Thanks for your input;
WilcoHEAD
 
I gather that it is not directly under the header in IE6. Where is it? It is hard to help without the visual presentation and since we don't have your pictures we cannot recreate the problem. Do you have an online example of your problem?
 
mmm, looks like I have it working. I omitted some rows and took out the 100% height. That does the trick.

Thanks anyway,

Eric

Thanks for your input;
WilcoHEAD
 
Give this a try. I made the news area in the same <td> as the news header.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
	<link type="text/css" rel="stylesheet" href="css/style.css">
</head>

<body BOTTOMMARGIN="0" MARGINHEIGHT="0" TOPMARGIN="0" BACKGROUND="img/Tback.gif">
<TABLE ALIGN="center" WIDTH="615" CELLSPACING="0" CELLPADDING="0" BORDER="0" BACKGROUND="img/tableBack.jpg" STYLE="border: 1px solid Black;">
	<TR>
		<TD COLSPAN="2" WIDTH="615" VALIGN="top"><IMG SRC="img/header.jpg" ALT="" WIDTH="615" HEIGHT="97" BORDER="0"></TD>
	</TR>
	<TR>
	
	<TD width="174" VALIGN="top" BACKGROUND="img/backLeftCol.jpg">
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL unfurl="true"]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"[/URL] width="174" height="269" id="newsNav" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="newsNav.swf" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#333333" />
	<embed src="newsNav.swf" quality="high" bgcolor="#333333" width="174" height="269" name="newsNav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] /></object>
	<IMG SRC="img/belowFlash.jpg" ALT="" WIDTH="174" HEIGHT="128" BORDER="0">
	</TD>
	
	<TD VALIGN="top" WIDTH="442"><IMG SRC="img/newsHeader.jpg" ALT="" WIDTH="442" HEIGHT="37" BORDER="0"><br>
		<TABLE ALIGN="center" WIDTH="400" CELLSPACING="2" CELLPADDING="2" BORDER="0">
		<TR>
		<TD WIDTH="400" valign="top">
		<!-- ********************************************************************* -->
		<!-- NEWS STARTS HERE -->
		Start News Here
		<!-- NEWS ENDS HERE -->
		<!-- ********************************************************************* -->
		<BR>
		<BR>
		</TD>
		</TR>
		</TABLE>
	</TD>
	</TR>
	<TR>
		<TD WIDTH="615" HEIGHT="18" COLSPAN="2" ALIGN="center" VALIGN="middle" BACKGROUND="img/footerBack.gif" STYLE="border-top: 1px solid Black;"><SPAN CLASS="Footer">singsugar.com and Sharon Jones &copy;2005 All Rights Reserved - Site by <A HREF="[URL unfurl="true"]http://www.hifispin.com"[/URL] TARGET="_blank">hifiSPIN</A></SPAN></TD>
	</TR>
</TABLE>
</body>
</html>
 
Yup, that worked!

Thanks.

E

Thanks for your input;
WilcoHEAD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top