Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 05-03-2005, 03:41 AM Table layout probelm
kalkm's Avatar
Experienced Talker

Posts: 31
Trades: 0
Hi,

I have a page layout problem that I need some help with.

My page template that I am trying to design for our new site has four main areas: Header, Navigation, Body and Footer. I have designed the page using one table with a width of 100%.
The navigation that I am using is a treeview control.

So what I am trying to do is get the Body section of the page to dynamically change size depending on the treeview nodes that are expanded. This is all working well at the moment, my problem come in when I add the Header user control to the page! The width of the Header control is 100% and therefore throws the Body section of my page all the way to the right. Not sure how to sort this out?
Hope that my problem makes sense?

Here is the code from my Template page:

------------------------------------------------------------------------

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="test.aspx.vb" Inherits="BCP.test"%>
<%@Register tagprefix="MYTAG" tagname="header" src="header.ascx"%>
<%@Register tagprefix="MYTAG" tagname="Start_Navigation" src="navigation.ascx"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns >
<HEAD>
<title>test</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout">
<FORM id="Form1" runat="server">
<P>
<TABLE id="tbl_layout_frame" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px"
height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD colSpan="2" height="100"></TD>
</TR>
<TR>
<TD vAlign="top" width="157"><MYTAG:START_NAVIGATION id="Start_Navigation" runat="server"></MYTAG:START_NAVIGATION></TD>
<TD>
<TABLE id="tbl_body_frame" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD width="20" height="20">
<asp:image id="Image14" ImageUrl="./images/content_tl.gif" runat="server"></asp:image></TD>
<TD width="100%" background="./images/content_tm.gif" height="20"></TD>
<TD noWrap width="22" height="20">
<asp:image id="Image6" ImageUrl="./images/content_tr.gif" runat="server"></asp:image></TD>
</TR>
<TR>
<TD width="20" background="./images/content_ml.gif"></TD>
<TD width="100%" bgColor="#fafafa"></TD>
<TD width="22" background="./images/content_mr.gif"></TD>
</TR>
<TR>
<TD width="20" height="22">
<asp:image id="Image12" ImageUrl="./images/content_bl.gif" runat="server"></asp:image></TD>
<TD width="100%" background="./images/content_bm.gif" height="22"></TD>
<TD width="22" height="22">
<asp:image id="Image11" ImageUrl="./images/content_br.gif" runat="server"></asp:image></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD colSpan="2" height="10"></TD>
</TR>
</TABLE>
</P>
</FORM>
</body>
</HTML>


----------------------------------------------------------------------

Hope somebody can help….

Regards,

Mark.
kalkm is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-03-2005, 04:46 PM
Jared's Avatar
Skilled Talker

Posts: 52
Location: St. Anthony, ID
Trades: 0
Your code is kind of confusing, and I'm not sure if I correctly understand your goal, but would it be possible to join the body table and the head table together?

You'd probably have better luck trying to do this with a combination of CSS and Javascript.

Sorry I couldn't help more.
Jared is offline
Reply With Quote
View Public Profile Visit Jared's homepage!
 
Reply     « Reply to Table layout probelm
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30241 seconds with 12 queries