473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why can't I make a table cell any size I want?

I am trying to figure out how to do page layouts using tables (obviously not
my background). If I have, say, a 5x5 table defaulting to20px wide per cell,
why can't I make the cell in, for example, (3,1) 10 px wide? It seems to
want to use the widest cell in a column... i.e. 20px. Also, if I make any of
the cells greater than 20, all the rest in a column default to the same
larger width.

It seems that each row's cells should be rendered independant of other rows.
Nov 18 '05 #1
6 1323
Bill,

HTML specifications call for table cells to all be the same width as the
widest column in a table.

To do what you want create each row in a separate table.

Stack the tables and you'll have the result you want. You will probably want
to look into cascading style sheet commands to manipulate each tables
borders.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Bill" <nf*@nospam.com> wrote in message
news:e%****************@TK2MSFTNGP09.phx.gbl...
I am trying to figure out how to do page layouts using tables (obviously not my background). If I have, say, a 5x5 table defaulting to20px wide per cell, why can't I make the cell in, for example, (3,1) 10 px wide? It seems to
want to use the widest cell in a column... i.e. 20px. Also, if I make any of the cells greater than 20, all the rest in a column default to the same
larger width.

It seems that each row's cells should be rendered independant of other rows.

Nov 18 '05 #2
Tables are intended to present tabular data, and as such, one would expect
that a column would be the same size for the entire table. They are not, and
never were, meant for laying out the graphical appearance of a page. To do
that you should use CSS (look at float) and the div and span tags.

Colin

"Bill" <nf*@nospam.com> wrote in message
news:e%****************@TK2MSFTNGP09.phx.gbl...
I am trying to figure out how to do page layouts using tables (obviously not my background). If I have, say, a 5x5 table defaulting to20px wide per cell, why can't I make the cell in, for example, (3,1) 10 px wide? It seems to
want to use the widest cell in a column... i.e. 20px. Also, if I make any of the cells greater than 20, all the rest in a column default to the same
larger width.

It seems that each row's cells should be rendered independant of other rows.

Nov 18 '05 #3
"Colin Young" <x@nospam.com> wrote in message
news:O8**************@TK2MSFTNGP11.phx.gbl...
Tables are intended to present tabular data, and as such, one would expect
that a column would be the same size for the entire table. They are not, and never were, meant for laying out the graphical appearance of a page. To do
that you should use CSS (look at float) and the div and span tags.


I'm a little confused. Visual Studio supports two modes in the designer --
grid and flow. From what I understand, grid-mode uses CSS for layout but it
seems the consenses is to NOT use this.

So, if I use flow don't I then need to use tables for page layout?
Nov 18 '05 #4
Yes. Visual Studio does support two design modes, and to be honest, neither
is really a good example of good HTML or CSS, although the grid mode is
probably the more offensive of the two. All it means is that you will need
to get your hands dirty with the HTML rather than relying on VS to do the
layout for you. You could use tables, but based on what you are trying to do
it sounds like doing it the right way is the easier option (just in case
doing it right isn't incentive enough on its own). Unfortunately VS seems to
have inherited the HTML WYSIWYG designer from FrontPage and it quite
frequently does things that are not only very messy, but actually in
violation of the standards.

For a fine example of layout without tables, see http://glish.com/css/.
There are links there to other sites that have much more information about
how to effectively use CSS.

Using tables for layout is so 1997...

Colin

"Bill" <nf*@nospam.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
"Colin Young" <x@nospam.com> wrote in message
news:O8**************@TK2MSFTNGP11.phx.gbl...
Tables are intended to present tabular data, and as such, one would expect that a column would be the same size for the entire table. They are not, and
never were, meant for laying out the graphical appearance of a page. To do that you should use CSS (look at float) and the div and span tags.


I'm a little confused. Visual Studio supports two modes in the designer --
grid and flow. From what I understand, grid-mode uses CSS for layout but

it seems the consenses is to NOT use this.

So, if I use flow don't I then need to use tables for page layout?

Nov 18 '05 #5
Thanks for the recommendations.

I must say that I am dissapointed to hear that the VS designer is not up to
speed and that I will have to handcode the HTML. It's not that I am against
doing this, but it does strike me that needing to is really the equivilent
of handcoding a Word document in Notepad... complete with tags and
stylesheets. Or writing applications in assembler rather than a higher level
language.

I'm wondering why Microsoft (or SOMEONE) can't put together a decent visual
designer for Visual Studio.

"Colin Young" <x@nospam.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
Yes. Visual Studio does support two design modes, and to be honest, neither is really a good example of good HTML or CSS, although the grid mode is
probably the more offensive of the two. All it means is that you will need
to get your hands dirty with the HTML rather than relying on VS to do the
layout for you. You could use tables, but based on what you are trying to do it sounds like doing it the right way is the easier option (just in case
doing it right isn't incentive enough on its own). Unfortunately VS seems to have inherited the HTML WYSIWYG designer from FrontPage and it quite
frequently does things that are not only very messy, but actually in
violation of the standards.

For a fine example of layout without tables, see http://glish.com/css/.
There are links there to other sites that have much more information about
how to effectively use CSS.

Using tables for layout is so 1997...

Colin

Nov 18 '05 #6
BTW... your link is intriguing.

I also have a need to support templates. Is there any good info on the best
way to usee the CSS approacth and templating?

"Colin Young" <x@nospam.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
Yes. Visual Studio does support two design modes, and to be honest, neither is really a good example of good HTML or CSS, although the grid mode is
probably the more offensive of the two. All it means is that you will need
to get your hands dirty with the HTML rather than relying on VS to do the
layout for you. You could use tables, but based on what you are trying to do it sounds like doing it the right way is the easier option (just in case
doing it right isn't incentive enough on its own). Unfortunately VS seems to have inherited the HTML WYSIWYG designer from FrontPage and it quite
frequently does things that are not only very messy, but actually in
violation of the standards.

For a fine example of layout without tables, see http://glish.com/css/.
There are links there to other sites that have much more information about
how to effectively use CSS.

Using tables for layout is so 1997...

Colin

"Bill" <nf*@nospam.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
"Colin Young" <x@nospam.com> wrote in message
news:O8**************@TK2MSFTNGP11.phx.gbl...
Tables are intended to present tabular data, and as such, one would expect that a column would be the same size for the entire table. They are
not,
and
never were, meant for laying out the graphical appearance of a page.
To
do that you should use CSS (look at float) and the div and span tags.


I'm a little confused. Visual Studio supports two modes in the

designer -- grid and flow. From what I understand, grid-mode uses CSS for layout but

it
seems the consenses is to NOT use this.

So, if I use flow don't I then need to use tables for page layout?


Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Spanky | last post by:
Thanks for any help in advance! I have this order form where you add rows as you need them. The routine to add fields is working fine. I am trying to add the ability to delete rows if you...
0
by: BB | last post by:
I have an image in a table cell and several lines of text inside a second cell (see below) and the text moves into a skinny column as I make the window smaller. This is a nice feature, but my job...
2
by: zwylle | last post by:
Hi all, to avoid a nervous breakdown I finally decided to seek help :D I have a table defined with plain color background and in some cells I show pictures to frame my site. The problem I...
2
by: TAM | last post by:
Hi, I am using a table with height and width as 100%. I wish to use a background image of size W 62x H 314 pixels for one table cell. How do I make the background image stretch to fit the...
10
by: Andrew Thompson | last post by:
http://www.physci.org/test/chem/element.html, represents information on a chemical element. (http://www.physci.org/test/chem/ for the CSS's) Not yet coded for links to other forms of the...
2
by: David Bradbury | last post by:
I currently have an iframe on a webpage into which users can insert content. They can further customise the text as I've included buttons such as Bold, Italic, Bullet point etc. This is done along...
1
by: Doug | last post by:
I have a table with equal size cells, then i have div tags in each cell. The div tags have a border and a background, basically to make the contents look a little better. The problem is each div...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
4
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.