473,396 Members | 1,792 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,396 software developers and data experts.

Need help with tables

I am trying to build a page that scales to fit the browser window regardless
of size or resolution. The navigation on the top of the page is framed in
dark red/brown using CSS with a background color specified in a custom class
tag.

I only want those cells that are using this custom class to be 1 pixel wide.
In the code I did not specify the <td> width but instead inserted a
single-pixel, transparent GIF and specified the dimensions of that image as
1 pixel wide by 10 pixels tall. For some unknown reason, however, the cells
that act as dividers between the navigation boxes are 4 pixels wide.

Here's the URL to see what I mean:
http://myweb.cableone.net/mstanley/w...lbr/index.html

I know CSS would be a cleaner, more efficient way to position the elements
and control layout, but unfortunately I don't have the luxury of time to
master those concepts before the project is due. For now I'm going to have
to settle with using tables.

How can I get this to work as intended? Please advise.

TIA,

Stanman
Jul 20 '05 #1
4 1818
DU
Matt Stanley wrote:
I am trying to build a page that scales to fit the browser window regardless
of size or resolution. The navigation on the top of the page is framed in
dark red/brown using CSS with a background color specified in a custom class
tag.

I only want those cells that are using this custom class to be 1 pixel wide.
In the code I did not specify the <td> width but instead inserted a
single-pixel, transparent GIF and specified the dimensions of that image as
1 pixel wide by 10 pixels tall. For some unknown reason, however, the cells
that act as dividers between the navigation boxes are 4 pixels wide.

Here's the URL to see what I mean:
http://myweb.cableone.net/mstanley/w...lbr/index.html

I know CSS would be a cleaner, more efficient way to position the elements
and control layout
Right there. You said it.

, but unfortunately I don't have the luxury of time to master those concepts before the project is due.
Even if you don't use CSS, it seems to me that you need to learn how to
use tables for non-tabular anyway. So why not learn what is the correct
way to design a webpage the way you want it.

For now I'm going to have to settle with using tables.

Are you actually saying that given a choice, you would choose an awkward
design done fast than a robust, small size and interoperable design
(with many more benefits) done with more time? If you chose the awkward
design done fast, aren't you promising yourself to redo the design
eventually? I think it's better to spend more time now and do the right
thing than to start all over later again.
How can I get this to work as intended? Please advise.

TIA,

Stanman


Why tables for layout is stupid:
problems defined, solutions offered
http://www.hotdesign.com/seybold/

How do I design my site for any size browser?
http://allmyfaqs.com/faq.pl?AnySizeDesign

CSS Layout Techniques
Look Ma, No Tables.
http://glish.com/css/

(W3C) Tableless layout HOWTO
http://www.w3.org/2002/03/csslayout-howto

Liquid Web Design: Build it right and it will work no matter what the
container.
http://www.digital-web.com/tutorials..._1999-10.shtml

DU
Jul 20 '05 #2
> 1 pixel wide by 10 pixels tall. For some unknown reason, however, the
cells
that act as dividers between the navigation boxes are 4 pixels wide.


Because sum of your percentable columns is not 100%.

Andrew Fedoniouk.
http://blocknote.net

Jul 20 '05 #3

"Matt Stanley" <ma**@lebois.com> wrote in message
news:10*************@corp.supernews.com...
I am trying to build a page that scales to fit the browser window regardless of size or resolution. The navigation on the top of the page is framed in
dark red/brown using CSS with a background color specified in a custom class tag.

I only want those cells that are using this custom class to be 1 pixel wide. In the code I did not specify the <td> width but instead inserted a
single-pixel, transparent GIF and specified the dimensions of that image as 1 pixel wide by 10 pixels tall. For some unknown reason, however, the cells that act as dividers between the navigation boxes are 4 pixels wide.

Here's the URL to see what I mean:
http://myweb.cableone.net/mstanley/w...lbr/index.html

I know CSS would be a cleaner, more efficient way to position the elements
and control layout, but unfortunately I don't have the luxury of time to
master those concepts before the project is due. For now I'm going to have
to settle with using tables.

How can I get this to work as intended? Please advise.


All the cells in a column are the same width. In the same column as these
graphics, you have cells whose contents are &nbsp; which is wider than one
pixel. Therefore, all the cells in that column are wider than one pixel.
There's nothing you can do about it as long as those non-breaking spaces are
in that column.

What's not clear is why, even without restructuring your page to use CSS for
presentation, you felt that the nav bar should be but a few rows in a huge,
complicated table that encompasses the entire page. There's no reason,
especially given the straightforward top-to-bottom layout of your page, why
the banner, the nav bar, the content, and the footer shouldn't be
constructed as mutually independent blocks.

There's no reason to have seven consecutive rows of blank space. Even given
that you're going to use the outdated practice of using table rows for
vertical spacing, you could have a single row with its height set. You've
got some study ahead of you in efficient page layout techniques.

Jul 20 '05 #4
Thanks man... I appreciate the fact that you included those links instead of
just telling me I was choosing poor design. I've got some stuff to chew on,
now. :)

"DU" <dr*******@hotWIPETHISmail.com> wrote in message
news:c7**********@news.eusc.inter.net...
Matt Stanley wrote:
I am trying to build a page that scales to fit the browser window regardless of size or resolution. The navigation on the top of the page is framed in dark red/brown using CSS with a background color specified in a custom class tag.

I only want those cells that are using this custom class to be 1 pixel wide. In the code I did not specify the <td> width but instead inserted a
single-pixel, transparent GIF and specified the dimensions of that image as 1 pixel wide by 10 pixels tall. For some unknown reason, however, the cells that act as dividers between the navigation boxes are 4 pixels wide.

Here's the URL to see what I mean:
http://myweb.cableone.net/mstanley/w...lbr/index.html

I know CSS would be a cleaner, more efficient way to position the elements and control layout


Right there. You said it.

, but unfortunately I don't have the luxury of time to
master those concepts before the project is due.


Even if you don't use CSS, it seems to me that you need to learn how to
use tables for non-tabular anyway. So why not learn what is the correct
way to design a webpage the way you want it.

For now I'm going to have
to settle with using tables.


Are you actually saying that given a choice, you would choose an awkward
design done fast than a robust, small size and interoperable design
(with many more benefits) done with more time? If you chose the awkward
design done fast, aren't you promising yourself to redo the design
eventually? I think it's better to spend more time now and do the right
thing than to start all over later again.
How can I get this to work as intended? Please advise.

TIA,

Stanman


Why tables for layout is stupid:
problems defined, solutions offered
http://www.hotdesign.com/seybold/

How do I design my site for any size browser?
http://allmyfaqs.com/faq.pl?AnySizeDesign

CSS Layout Techniques
Look Ma, No Tables.
http://glish.com/css/

(W3C) Tableless layout HOWTO
http://www.w3.org/2002/03/csslayout-howto

Liquid Web Design: Build it right and it will work no matter what the
container.
http://www.digital-web.com/tutorials..._1999-10.shtml

DU

Jul 20 '05 #5

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

Similar topics

0
by: B. Fongo | last post by:
I learned MySQL last year without putting it into action; that is why I face trouble in formulating my queries. Were it a test, then you would have passed it, because your queries did help me...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
6
by: Chad A. Beckner | last post by:
Does anyone know how to make common database connections "common" in all aspx files? In other words, instead of creating a SQLConnection, then a DataAdapter in every ASPX file for my application,...
48
by: phillip.s.powell | last post by:
MySQL 3.23.58 - 4.0.17 (yep, several database server instances, don't ask) I have database Spring with table Students I have database Summer with table Students I am tasked to produce a...
9
by: cj | last post by:
I'm trying to forge ahead with Visual Basic .Net but recently I've suffered several major set backs in demonstrating VB is the future and we should move from Visual FoxPro. I really need to find...
5
by: manmit.walia | last post by:
Hello All, I am stuck on a conversion problem. I am trying to convert my application which is written in VB.NET to C# because the project I am working on currently is being written in C#. I tried...
3
by: david | last post by:
I have trouble with it. I have created a sproc in SQL Server, called SearchClass, which returns a searched key from a table. I have tested this procedure in Analyzer and it works fine. However,...
5
by: Will | last post by:
- I know enough ASP and Access to be dangerous :) - I need to put up a data base on our web server with 3 related tables. - They will be accessed by a limited number of people. - Each user will...
16
by: Okonita via DBMonster.com | last post by:
Hi all, I am comming along with all this Linus/DB2/scripting business...I am no longer scared of it!! (LOL). But, I need to create a .ksh script that does a REORGCHK and output only tables...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.