Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:28 PM
Mark Constant
Guest
 
Posts: n/a
Default Cells resize

This is going to be hard to explain so please bear with me. I have a
webpage that contains one big table that I want to enclose everything
in. The table is broken up into 2 main rows. One contains my GIF
banner. The second row contains two columns. The first column contains
8 subrows and the second column spans the 8 subrows. When I add a
table to my second column and resize it it resizes the rows in the
second column. How can I make it so putting something in the second
column doesn't effect the first column? Is there a way to lock a row?
Here is my code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>index</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<STYLE type="text/css"> A:link { TEXT-DECORATION: none }
A:visited { TEXT-DECORATION: none }
A:active { TEXT-DECORATION: none }
A:hover { TEXT-DECORATION: underline }
BODY { SCROLLBAR-FACE-COLOR: buttonface; SCROLLBAR-HIGHLIGHT-COLOR:
#999999; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-ARROW-COLOR:
#999999; SCROLLBAR-TRACK-COLOR: buttonface;
SCROLLBAR-DARKSHADOW-COLOR: black; SCROLLBAR-BASE-COLOR: buttonface }
</STYLE>
</HEAD>
<body bgColor="buttonshadow">
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="WIDTH: 71.85%; HEIGHT: 645px"
cellSpacing="4" borderColorDark="#000000" cellPadding="0"
borderColorLight="#000000" border="1" frame="box">
<TR>
<TD style="HEIGHT: 118px" vAlign="top" colSpan="2"><IMG
src="images/menu.gif"></TD>
</TR>
<TR>
<TD style="WIDTH: 18.25%; HEIGHT: 20px" vAlign="top"><IMG
src="images/basicinfo.gif"></TD>
<TD vAlign="top" align="middle" bgColor="#ffffff"
rowSpan="8"></TD>
</TR>
<TR>
<TD style="HEIGHT: 47px" bgColor="#000000"></TD>
</TR>
<TR>
<TD style="WIDTH: 20px; HEIGHT: 20px" valign="top"><IMG alt=""
src="images/movies.gif"></TD>
</TR>
<TR>
<TD style="HEIGHT: 55px" bgColor="#000000"></TD>
</TR>
<TR>
<TD style="HEIGHT: 20px" vAlign="top"><IMG alt=""
src="images/slackware.gif"></TD>
</TR>
<TR>
<TD style="HEIGHT: 43px" bgColor="#000000"></TD>
</TR>
<TR>
<TD style="HEIGHT: 20px" vAlign="top"><IMG alt=""
src="images/videogames.gif"></TD>
</TR>
<TR>
<TD bgColor="#000000"></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
  #2  
Old July 20th, 2005, 05:28 PM
Mark Parnell
Guest
 
Posts: n/a
Default Re: Cells resize

Sometime around 2 Nov 2003 21:14:11 -0800, Mark Constant is reported to
have stated:
[color=blue]
> This is going to be hard to explain so please bear with me.[/color]

OK....
[color=blue]
> I have a webpage[/color]

I follow you so far. :-)
[color=blue]
> that contains one big table that I want to enclose everything
> in.[/color]

Why?
[color=blue]
> The table is broken up into 2 main rows. One contains my GIF[/color]

PNG is better than GIF in most cases. :-)
[color=blue]
> banner. The second row contains two columns. The first column contains
> 8 subrows and the second column spans the 8 subrows. When I add a
> table to my second column and resize it it resizes the rows in the
> second column. How can I make it so putting something in the second
> column doesn't effect the first column? Is there a way to lock a row?[/color]

Doesn't sound like tabular data to me.
http://www.allmyfaqs.com/faq.pl?Tableless_layouts
[color=blue]
> Here is my code.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">[/color]

That Doctype won't trigger standards compliant mode in most browsers. You
need to use the full DTD (including URI), or use Strict instead of
Transitional (which you should be doing if this is a new page, anyway).
[color=blue]
> <HTML>
> <HEAD>
> <title>index</title>[/color]

That's not a very descriptive title.
[color=blue]
> <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
> <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
> <meta content="JavaScript" name="vs_defaultClientScript">
> <meta content="http://schemas.microsoft.com/intellisense/ie5"
> name="vs_targetSchema">[/color]

These meta tags are all pointless - get rid of them. And while you're at
it, get a decent program to write your site in. Anything not by Microsoft
would be a good start.
[color=blue]
> <STYLE type="text/css">[/color]

This section would be better placed in an external style sheet.
[color=blue]
> A:link { TEXT-DECORATION: none }
> A:visited { TEXT-DECORATION: none }
> A:active { TEXT-DECORATION: none }
> A:hover { TEXT-DECORATION: underline }[/color]

So your visitor can't tell that a link is a link until they happen to run
the mouse over the top of it? http://www.cs.tut.fi/~jkorpela/www/links.html
[color=blue]
> BODY { SCROLLBAR-FACE-COLOR: buttonface; SCROLLBAR-HIGHLIGHT-COLOR:
> #999999; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-ARROW-COLOR:
> #999999; SCROLLBAR-TRACK-COLOR: buttonface;
> SCROLLBAR-DARKSHADOW-COLOR: black; SCROLLBAR-BASE-COLOR: buttonface }[/color]

The scrollbar is part of *my* browser, not your page. Treat it
appropriately.
[color=blue]
> </STYLE>
> </HEAD>
> <body bgColor="buttonshadow">[/color]

bgcolor has been deprecated in favour of CSS, and "buttonshadow" is not be
a valid value for it anyway.
[color=blue]
> <form id="Form1" method="post" runat="server">[/color]

Why is your entire page in an invalid form?

<snip>

I'm not even going to attempt to go through the rest of the code.

HTH

--
Mark Parnell
http://www.clarkecomputers.com.au
  #3  
Old July 20th, 2005, 05:28 PM
Mark Constant
Guest
 
Posts: n/a
Default Re: Cells resize

Mark Parnell <webmaster@clarkecomputers.com.au> wrote in message news:<tw46lvdoce29$.7qtea5je8y2a.dlg@40tude.net>.. .[color=blue]
> Sometime around 2 Nov 2003 21:14:11 -0800, Mark Constant is reported to
> have stated:
>[color=green]
> > This is going to be hard to explain so please bear with me.[/color]
>
> OK....
>[color=green]
> > I have a webpage[/color]
>
> I follow you so far. :-)
>[color=green]
> > that contains one big table that I want to enclose everything
> > in.[/color]
>
> Why?
>[color=green]
> > The table is broken up into 2 main rows. One contains my GIF[/color]
>
> PNG is better than GIF in most cases. :-)
>[color=green]
> > banner. The second row contains two columns. The first column contains
> > 8 subrows and the second column spans the 8 subrows. When I add a
> > table to my second column and resize it it resizes the rows in the
> > second column. How can I make it so putting something in the second
> > column doesn't effect the first column? Is there a way to lock a row?[/color]
>
> Doesn't sound like tabular data to me.
> http://www.allmyfaqs.com/faq.pl?Tableless_layouts
>[color=green]
> > Here is my code.
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">[/color]
>
> That Doctype won't trigger standards compliant mode in most browsers. You
> need to use the full DTD (including URI), or use Strict instead of
> Transitional (which you should be doing if this is a new page, anyway).
>[color=green]
> > <HTML>
> > <HEAD>
> > <title>index</title>[/color]
>
> That's not a very descriptive title.
>[color=green]
> > <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
> > <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
> > <meta content="JavaScript" name="vs_defaultClientScript">
> > <meta content="http://schemas.microsoft.com/intellisense/ie5"
> > name="vs_targetSchema">[/color]
>
> These meta tags are all pointless - get rid of them. And while you're at
> it, get a decent program to write your site in. Anything not by Microsoft
> would be a good start.
>[color=green]
> > <STYLE type="text/css">[/color]
>
> This section would be better placed in an external style sheet.
>[color=green]
> > A:link { TEXT-DECORATION: none }
> > A:visited { TEXT-DECORATION: none }
> > A:active { TEXT-DECORATION: none }
> > A:hover { TEXT-DECORATION: underline }[/color]
>
> So your visitor can't tell that a link is a link until they happen to run
> the mouse over the top of it? http://www.cs.tut.fi/~jkorpela/www/links.html
>[color=green]
> > BODY { SCROLLBAR-FACE-COLOR: buttonface; SCROLLBAR-HIGHLIGHT-COLOR:
> > #999999; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-ARROW-COLOR:
> > #999999; SCROLLBAR-TRACK-COLOR: buttonface;
> > SCROLLBAR-DARKSHADOW-COLOR: black; SCROLLBAR-BASE-COLOR: buttonface }[/color]
>
> The scrollbar is part of *my* browser, not your page. Treat it
> appropriately.
>[color=green]
> > </STYLE>
> > </HEAD>
> > <body bgColor="buttonshadow">[/color]
>
> bgcolor has been deprecated in favour of CSS, and "buttonshadow" is not be
> a valid value for it anyway.
>[color=green]
> > <form id="Form1" method="post" runat="server">[/color]
>
> Why is your entire page in an invalid form?
>
> <snip>
>
> I'm not even going to attempt to go through the rest of the code.
>
> HTH[/color]

Um okay. I used div tags and that fixed my problem anyway. Like you
must of saw most of this code was generated by VisualStudio.NET.
  #4  
Old July 20th, 2005, 05:28 PM
Mark Constant
Guest
 
Posts: n/a
Default Re: Cells resize

Mark Parnell <webmaster@clarkecomputers.com.au> wrote in message news:<tw46lvdoce29$.7qtea5je8y2a.dlg@40tude.net>.. .[color=blue]
> Sometime around 2 Nov 2003 21:14:11 -0800, Mark Constant is reported to
> have stated:
>[color=green]
> > This is going to be hard to explain so please bear with me.[/color]
>
> OK....
>[color=green]
> > I have a webpage[/color]
>
> I follow you so far. :-)
>[color=green]
> > that contains one big table that I want to enclose everything
> > in.[/color]
>
> Why?
>[color=green]
> > The table is broken up into 2 main rows. One contains my GIF[/color]
>
> PNG is better than GIF in most cases. :-)
>[color=green]
> > banner. The second row contains two columns. The first column contains
> > 8 subrows and the second column spans the 8 subrows. When I add a
> > table to my second column and resize it it resizes the rows in the
> > second column. How can I make it so putting something in the second
> > column doesn't effect the first column? Is there a way to lock a row?[/color]
>
> Doesn't sound like tabular data to me.
> http://www.allmyfaqs.com/faq.pl?Tableless_layouts
>[color=green]
> > Here is my code.
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">[/color]
>
> That Doctype won't trigger standards compliant mode in most browsers. You
> need to use the full DTD (including URI), or use Strict instead of
> Transitional (which you should be doing if this is a new page, anyway).
>[color=green]
> > <HTML>
> > <HEAD>
> > <title>index</title>[/color]
>
> That's not a very descriptive title.
>[color=green]
> > <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
> > <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
> > <meta content="JavaScript" name="vs_defaultClientScript">
> > <meta content="http://schemas.microsoft.com/intellisense/ie5"
> > name="vs_targetSchema">[/color]
>
> These meta tags are all pointless - get rid of them. And while you're at
> it, get a decent program to write your site in. Anything not by Microsoft
> would be a good start.
>[color=green]
> > <STYLE type="text/css">[/color]
>
> This section would be better placed in an external style sheet.
>[color=green]
> > A:link { TEXT-DECORATION: none }
> > A:visited { TEXT-DECORATION: none }
> > A:active { TEXT-DECORATION: none }
> > A:hover { TEXT-DECORATION: underline }[/color]
>
> So your visitor can't tell that a link is a link until they happen to run
> the mouse over the top of it? http://www.cs.tut.fi/~jkorpela/www/links.html
>[color=green]
> > BODY { SCROLLBAR-FACE-COLOR: buttonface; SCROLLBAR-HIGHLIGHT-COLOR:
> > #999999; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-ARROW-COLOR:
> > #999999; SCROLLBAR-TRACK-COLOR: buttonface;
> > SCROLLBAR-DARKSHADOW-COLOR: black; SCROLLBAR-BASE-COLOR: buttonface }[/color]
>
> The scrollbar is part of *my* browser, not your page. Treat it
> appropriately.
>[color=green]
> > </STYLE>
> > </HEAD>
> > <body bgColor="buttonshadow">[/color]
>
> bgcolor has been deprecated in favour of CSS, and "buttonshadow" is not be
> a valid value for it anyway.
>[color=green]
> > <form id="Form1" method="post" runat="server">[/color]
>
> Why is your entire page in an invalid form?
>
> <snip>
>
> I'm not even going to attempt to go through the rest of the code.
>
> HTH[/color]

Okay so I decided to implement some of your suggestions. All my links
are now underlined. I got rid of every MetaTag that was generated by
..NET. I enclosed all of my stylesheet into a seperate document. I put
the full URI and put it into strict mode instead of transitional. I
also added a more descriptive Title. I got rid of ButtonShadow for
bgColor and set my background color using CSS instead. I only have two
questions. Why are you saying that the page is in an invalid form?
Also since I put the page into strict mode it has added a space after
the banner. How do I get rid of the space?
  #5  
Old July 20th, 2005, 05:29 PM
kchayka
Guest
 
Posts: n/a
Default Re: Cells resize

Mark Constant wrote:
[color=blue]
> Mark Parnell <webmaster@clarkecomputers.com.au> wrote in message
> news:<tw46lvdoce29$.7qtea5je8y2a.dlg@40tude.net>.. .[color=green]
>> Sometime around 2 Nov 2003 21:14:11 -0800, Mark Constant is
>> reported to have stated:
>>[color=darkred]
>>> <form id="Form1" method="post" runat="server">[/color]
>>
>> Why is your entire page in an invalid form?[/color]
>
> Why are you saying that the page is in an invalid form?[/color]

If you validate your code, you could at least partly answer this
question yourself. <URL:http://validator.w3.org/>

# Line 21, column 41: there is no attribute "RUNAT" ...
<form id="Form1" method="post" runat="server">
^
# Line 21, column 49: required attribute "ACTION" not specified ...
<form id="Form1" method="post" runat="server">
^

This answers the "invalid" part, but the second part of that question is
why is the entire page content in a <form> at all when there are no form
fields on the page?
[color=blue]
> ... generated by .NET ...[/color]

Should we expect .NET to generate nothing more than a variation of
FrontPage sludge? <heavy sigh>

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles