473,804 Members | 3,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Doing a table in CSS

--
I am just beginning to get into CSS. I like to keep all
my html simple and generic looking.

I want to use a table, because I have, (gasp) tabular
data. I want it to look like a table. Not only that,
but I want it to look like a plain ordinary
uncomplicated vanilla table, to look like everyone
else's table.

Seems to me that the only reasonably easy way to do this
is to declare the style transitional, and use <TABLE >

Is there a better way?

--digsig
James A. Donald
6YeGpsZR+nOTh/cGwvITnSR3Tdzcl VpR0+pr3YYQdkG
I+ZMSazMMSKlfyX +QwvlSFcNl49Faf n5glRFYcFV
4SY3/GBXA3FTNgCjcJdo kwMMCbs5dlavAIp G3504w
--
http://www.jim.com
Jul 21 '05 #1
14 4193
James A. Donald wrote:
--
I am just beginning to get into CSS. I like to keep all
my html simple and generic looking.

I want to use a table, because I have, (gasp) tabular
data. I want it to look like a table. Not only that,
but I want it to look like a plain ordinary
uncomplicated vanilla table, to look like everyone
else's table.

Seems to me that the only reasonably easy way to do this
is to declare the style transitional, and use <TABLE >

Is there a better way?

--digsig


Since you have tabular data, I'd go with a table, that's what they're for.

=============== =============

http://www.allmyfaqs.com/faq.pl?Tableless_layouts

CSS-Based Layouts

HTML was never designed to be a layout language. The <table> element was
designed to mark-up tabular data (such as you'd find in a spreadsheet).
CSS (Cascading Style Sheets) was designed for design and presentational
issues - and makes pages easier and faster to code, more manageable,
accessible, and faster to download.

Do not let the term "tableless layouts" fool you, it means exactly what
it says, it does not mean "tableless webpages". You should continue to
use tables for tabular data.

=============== =============

http://webdesign.about.com/od/css/a/aa102102a.htm

....CSS Positioning (CSS-P) is the only way to create standards based Web
pages using XHTML. Why? Because XHTML requires that tables only be used
to define tabular data, and not be used for layout.

=============== =============

http://www.tableless.com.br/en/

What is Tableless?

Tableless isn't a technology, nor a programming language, much less an
application! Tableless is a rather misleading name for a method of
building clean, accessible and standard complaint websites.
Notwithstanding , "tableless" is what best describes the main concept
towards a more accessible web: the abolishing of tables as a means of
designing web sites.

We use CSS to format the information contained in the text markup files
or, if you prefer, (X)HTML files.

Clarifying: We don't use the infamous tables to structure the website.
For this we use exclusively CSS. We didn't get rid of the tables. In the
tableless method, all the tags are used semantially, i.e, each tag has
its own role. If you want to have an italic text, you should use the
<i></i> tag. Want a paragraph? Use <p></p> Got it? So, if you want to
display tabular data , e.g. a list of products with their prices, names,
if it's available in the stock; you should use tables. Therefore, using
tables to display tabular data is right but never use them to layout
structuring.

=============== =============

http://www.dcddesigns.com/folder/web...esign-Services

Tableless CSS Driven "Fluid" Website Design

So you may be asking "what are tables and why does removing them from my
website help?" Glad you asked! Tables have mistakenly been used for many
years by designers to piece a site's graphic layout back together,
similar to a jigsaw puzzle.

.... Removing tables from non-tabular data will also allow those with
disabilites and image disabled browsers a more meaningful experience
with your website and as more and more non computer devices are able to
access websites your site will be ready to go on them!
Jul 21 '05 #2
James A. Donald wrote:
--
I am just beginning to get into CSS. I like to keep all
my html simple and generic looking.

I want to use a table, because I have, (gasp) tabular
data. I want it to look like a table. Not only that,
but I want it to look like a plain ordinary
uncomplicated vanilla table, to look like everyone
else's table.

Seems to me that the only reasonably easy way to do this
is to declare the style transitional, and use <TABLE >

Is there a better way?


Yes, there is a better way. Use strict instead of transitional: TABLE
is not deprecated, just misused.
Jul 21 '05 #3
On Mon, 30 May 2005 17:02:21 -0700, James A. Donald
<ja****@echeque .com> wrote:
I want to use a table, because I have, (gasp) tabular
data. I want it to look like a table. Not only that,
but I want it to look like a plain ordinary
uncomplicate d vanilla table, to look like everyone
else's table.

Seems to me that the only reasonably easy way to do this
is to declare the style transitional, and use <TABLE >

Is there a better way?


Yes: declare it _strict_, and use a <table>.

The idea that "you mustn't use tables" is an oversimplificat ion. Not
even the most thoroughgoing purist would object to using <table> for
data that are actually tabular by nature. The objection is to using
<table> simply to enforce a layout -- _that_ is what should better
be done with CSS.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"I feel a wave of morning sickness coming on, and I want to
be standing on your mother's grave when it hits."
Jul 21 '05 #4
"C A Upsdell" <""cupsdellXXX\ "@-@-@XXXupsdell.com "> escribió en el mensaje
news:V7******** ************@ro gers.com...
James A. Donald wrote:
--
I am just beginning to get into CSS. I like to keep all
my html simple and generic looking.

I want to use a table, because I have, (gasp) tabular
data. I want it to look like a table. Not only that,
but I want it to look like a plain ordinary
uncomplicated vanilla table, to look like everyone
else's table.

Seems to me that the only reasonably easy way to do this
is to declare the style transitional, and use <TABLE >

Is there a better way?


Yes, there is a better way. Use strict instead of transitional: TABLE is
not deprecated, just misused.

there's nothing wrong with <table> if you have tabular data.
the use of <table> is not recommended when it comes to
layout design.
Jul 21 '05 #5
SorbitoL wrote:
Yes, there is a better way. Use strict instead of transitional: TABLE is
not deprecated, just misused.


there's nothing wrong with <table> if you have tabular data.
the use of <table> is not recommended when it comes to
layout design.


What else did you think I meant?
Jul 21 '05 #6
C A Upsdell
Use strict instead of transitional: TABLE
is not deprecated, just misused.


When I use "strict" I get the error messages such as
: : Line 46, column 12: there is no attribute "WIDTH"
: : <TD width="47%">

Doubtless there is a CSS equivalent of WIDTH and I should know it, but
I cannot seem to find any examples of tables done under strict. There
is a web page that seems to be about tables done under strict,
http://www.w3.org/TR/REC-CSS2/tables.html but without any examples, I
find the web page mystifying and overwhelming.

That web page tells me there is such a thing as a width property, yet
I get error messages about that property when I use the W3C Markup
Validation Service


--
http://www.jim.com
Jul 21 '05 #7
James A. Donald <ja****@echeque .com> wrote:
When I use "strict" I get the error messages such as
: : Line 46, column 12: there is no attribute "WIDTH"
: : <TD width="47%">

Doubtless there is a CSS equivalent of WIDTH
Called "width", difficult eh?
and I should know it, but
I cannot seem to find any examples of tables done under strict. There
is a web page that seems to be about tables done under strict,
http://www.w3.org/TR/REC-CSS2/tables.html
That explain the CSS table model, use the HTML spec:
http://www.w3.org/TR/html4/struct/tables.html
but without any examples, I
find the web page mystifying and overwhelming.

That web page tells me there is such a thing as a width property, yet
I get error messages about that property when I use the W3C Markup
Validation Service


The width attribute has been deprecated for table cells, but not for
other elements such as table. Deprecated means that it's not valid under
the Strict DTD. http://www.w3.org/TR/html4/index/attributes.html

The reason why certain seemingly presentational attributes such as
valign are still valid under the Strict DTD is that in certain
situations moving them to css could result in a loss of structure which
can negatively effect the user's ability to interpret the content.

--
Spartanicus
Jul 21 '05 #8
On Tue, 31 May 2005 21:33:14 -0700, James A. Donald
<ja****@echeque .com> wrote:
C A Upsdell
Use strict instead of transitional: TABLE
is not deprecated, just misused.
When I use "strict" I get the error messages such as
: : Line 46, column 12: there is no attribute "WIDTH"
: : <TD width="47%">

they are probably telling you in strict there is no inline style, so
no width inline
try defining width up in the head then move it to separate style
sheetDoubtless there is a CSS equivalent of WIDTH and I should know it, but
I cannot seem to find any examples of tables done under strict. There
is a web page that seems to be about tables done under strict,
http://www.w3.org/TR/REC-CSS2/tables.html but without any examples, I
find the web page mystifying and overwhelming.

http://www.sturgood.com/dna/result/
in this example I group floating tables inside separate divs. valid
strict html and css.
I define no width on the tables or divs though to allow for
flexibility. For people like me there is finally the ability to
increase the font size to read tabular data.

cheers
johnSteve

Jul 21 '05 #9
"Spartanicu s" <in*****@invali d.invalid> wrote in message
news:dh******** *************** *********@news. spartanicus.utv internet.ie...
James A. Donald <ja****@echeque .com> wrote:
That web page tells me there is such a thing as a width property, yet
I get error messages about that property when I use the W3C Markup
Validation Service


The width attribute has been deprecated for table cells, but not for
other elements such as table. Deprecated means that it's not valid under
the Strict DTD. http://www.w3.org/TR/html4/index/attributes.html


That would be in regard to attributes in the manner of <td width="10%">, as
opposed to <td style="width:10 %">, right?
Jul 21 '05 #10

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

Similar topics

4
2843
by: Benjamin | last post by:
Hello, I need some advice on a financial application I'm doing. First, I suppose I should give a little background so you know where I'm coming from. For 5 years I earned my living doing COBOL programming with some occasional VB and web programming with ASP. Prior to that I went to a technical college where I took a couple of courses in c, c++ and pascal. Although now about all I can do is the basic "hello world" type applications in...
8
4611
by: Sean Shanny | last post by:
To all, The facts: PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI drives in hardware RAID 0 configuration. Database size with indexes is currently 122GB. DB size before we completed the vacuum full was 150GB. We have recently done a major update to a table, f_pageviews, in our data warehouse. The f_pageviews table contains about 118 million rows.
0
3582
by: Bill Smith | last post by:
I am looking for an example 'after insert' trigger that performs an update to a column in the master table. For example, I have an 'orders' table that contains a 'PartNum' column. I would like to translate the part number coming in on the inserted record to a new part number by doing a lookup in a second table 'PartNumConversion' table that contains 2 columns 'oldPartNum', 'newPartNum'. I would also like to log the oldPartNum and...
1
2101
by: Chris Uwins | last post by:
Hi there, i know theres a number of ways I can achieve this but want to know the best, (but still quite simple). Up until a year ago I never used Access but have designed a few databases for work. I am working on Access 2000. I have basic SQL/VB skills - and am pretty accomplished at putting the databases together. Anyway...I've created a database to keep track of "Dayworks" we are
4
1298
by: Stefan Kowalski | last post by:
I recently posted a question which was answered by Allen Browne and gave me some tips to structure the tables. However, when it comes to searching the database, performance is unacceptably slow and I am now thinking of doing the unthinkable with my tables and wonder whether anyone has used (or still uses) this sort of approach. The database stores libraries and classifies the types of book they keep. So I have the classic 3-table...
1
1354
by: Kevin | last post by:
Hi All Can someone tell me if I am doing this correctly, or can possibly suggest better ways, if I'm not doing this correctly. I have a windows application that I am writing,So I have a UI and I have another class that handles the inserts,updates etc to a specific table/s in the database,(I actually have multiple classes that do more or less the same thing, but for different sets of tables in the database) Then in my UI code I have a...
3
1353
by: Lerp | last post by:
Hi all, I am building an app that has a lot of one to many relationships and was curious as to the best method in displaying rows of data from both tables on the same line. ie: row1 of 100 for example in my datagrid:
2
1872
by: mvl_groups_user | last post by:
I am trying to look up data on about 1000 records from a 6 million record view on a DB2 database using msaccess. The 6 million record DB2 view is connected through a linked ODBC table (table A), and the 1000 primary key numbers I want are in a local msaccess table (table B). The most obvious solution is to join table A and B, but this is excruciatingly slow performance-wise.
2
1198
by: Gorf | last post by:
Hi, all. Using Access 2K. I think what I'm trying to do is quite simple, but I've been out of the loop for a few years so I've forgotten much. I have a table of records each of which can belong to multiple categories. I have a table of all the categories available. I have a crossreference table which links records to categories.
4
3887
by: Arun Srinivasan | last post by:
Hi I was using a query previously, that was efficient select * from table where pred1 and pred2 and pred3; Later I was asked to introduce new ones, but they were not based on table columns but variables declared in SP. select * from table where pred1 and pred2 and pred3 and variable1 ='number1 and variable2 =number2;
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10593
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9163
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.