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!

Header Control Assistance Please

Status
Not open for further replies.

linuxjr

Programmer
Jun 2, 2001
135
US
I know this is an easy fix but I'm not seeing what could be the problem. Anyways I am reading C# Web Applications with Visual Studio .NET. I read in one of the chapters you can make a base class file that you can format all your web pages the same like a template html. Well the example has a header and footer section the rest of the page would be created by me. This is what I want to do I got the footer control made with no problem but my Header when I view it in design mode its what I want. Here is the code:
Code:
<table width="100%" background="../images/bgheader.jpg" runat="server">
	<tr>
		<td>
			<img src="../images/textHeader.gif" align="left" runat="server"><img src="../images/imageHeader.gif" align="right" runat="server">
		</td>
	</tr>
</table>

The textHeader and imageHeader are two transparent images. The bgheader is a gradiant background image. Like I stated early it looks correct but when I run it the two transparent images take the white background instead of my color one.

Any tips or suggestions be greatly appreciated.
 
Well I'm chuckling since it does work but how come it won't work with the ../images/bgheader.jpg??? Just curious if you have an explaination or if anyone does.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top