i see a lot of stuff going back and forth, tables are easy to use and do
exactly what the name says it does ROWS/COLUMNS
what is a GOOD reason to use DIVs instead ?
thanks
Mel
Jul 20 '05
21 8154
Mel wrote: i see a lot of stuff going back and forth,
You mean in ciwah? But you didn't want to comment in those threads? It's
hard to know exactly what you saw.
tables are easy to use and do exactly what the name says it does ROWS/COLUMNS
Absolutely. Rows using <tr> and columns in <td> (table data) or <th>
(table header). But then, I find most elements easy to use. In fact,
table markup is actually the most difficult to work with, since you must
make sure that each row has the same number of columns. Still, you are
right: it is not difficult to create the markup.
what is a GOOD reason to use DIVs instead ?
Instead? If you have tabular data, you should use table markup. That's
what it's for. Did you mean, "what is a GOOD reason to use DIVs instead
[of tables for layout]?"
--
Brian (remove "invalid" from my address to email me) http://www.tsmchughs.com/
Mel scribbled something along the lines of: i see a lot of stuff going back and forth, tables are easy to use and do exactly what the name says it does ROWS/COLUMNS
what is a GOOD reason to use DIVs instead ?
thanks Mel
The question is not "DIV or TABLE?".
Tables serve as a tool for presenting tabular data. DIVs serve as a
supplement for non-existent block level elements, i.e. you use them
where no other block level element would make sense.
Tables were never intended for presentation. CSS 3 provides some column
functionality (for any block level element) which is similar to the
layout used in newspapers and flyers though.
You should try to avoid tabular layout -- if it is needed, provide it
with CSS, the way it's meant to be.
Where p doesn't make sense because it's not a paragraph, table doesn't
make sense because it's not tabular data, a list doesn't make sense
because it isn't one and a blockquote doesn't make sense because it's
not a quote [and so on], that's where divs come into play.
DIVs are meant to be used as container elements to allow a certain way
of laying out the content in a graphical browser and to group content to
which certain styling should be applied, but which have no semantic
relationship which could be described using other block level elements.
I would suggest reading up some up-to-date info on (X)HTML and CSS.
--
Alan Plum, WAD/WD, Mushroom Cloud Productions http://www.mushroom-cloud.com/
Ashmodai wrote: Mel scribbled something along the lines of: i see a lot of stuff going back and forth, tables are easy to use and do exactly what the name says it does ROWS/COLUMNS
what is a GOOD reason to use DIVs instead ?
[snip] The question is not "DIV or TABLE?". Tables serve as a tool for presenting tabular data. DIVs serve as a supplement for non-existent block level elements, i.e. you use them where no other block level element would make sense.
Tables were never intended for presentation. CSS 3 provides some column functionality (for any block level element) which is similar to the layout used in newspapers and flyers though.
Right from their start in about 1993, tables were intended, inter alia, for
laying out complex material in rows & columns.
I suspect that, at that time, people didn't think of layout as presentation.
Besides, it was to be a number of years before CSS appeared, so it was
academic anyway - HTML was the *only* way of achieving presentation!
You should try to avoid tabular layout -- if it is needed, provide it with CSS, the way it's meant to be.
Some people, with no official standing whatsoever, say that. It is better to
look at the recommendations .
Where p doesn't make sense because it's not a paragraph, table doesn't make sense because it's not tabular data, a list doesn't make sense because it isn't one and a blockquote doesn't make sense because it's not a quote [and so on], that's where divs come into play.
But who, other than the author or the audience, is qualified to make a
judgement on an of these? The HTML recommendation doesn't require that authors
submit their mark-up to scrutiny by linguistic experts.
If an author marks-up something as <p>...</p>, that isn't an invitation for
the web infrastructure to determine whether that is a true paragraph. It is a
simple statement: "please treat this as a paragraph, and do with it whatever
is appropriate for a paragraph". Ditto table, list, blockquote, etc.
<div> tends to make most sense as a container of other elements (plural) for
which some overall rule is to be applied.
DIVs are meant to be used as container elements to allow a certain way of laying out the content in a graphical browser and to group content to which certain styling should be applied, but which have no semantic relationship which could be described using other block level elements.
They can be *used* for that. Whether they were *meant* for that is a different
matter.
I believe <div> appeared (perhaps mid 1996?) before CSS became a
recommendation (end 1996).
I would suggest reading up some up-to-date info on (X)HTML and CSS.
"A brief history of tables" http://www.barry.pearson.name/articl...es/history.htm
--
Barry Pearson http://www.Barry.Pearson.name/photography/ http://www.BirdsAndAnimals.info/ http://www.ChildSupportAnalysis.co.uk/
Barry Pearson scribbled something along the lines of:
<snip/> You should try to avoid tabular layout -- if it is needed, provide it with CSS, the way it's meant to be.
Some people, with no official standing whatsoever, say that. It is better to look at the recommendations .
Which I did.
Read my reply to the table thread <c5************ *@news.t-online.com>.
<snip/> I would suggest reading up some up-to-date info on (X)HTML and CSS.
"A brief history of tables" http://www.barry.pearson.name/articl...es/history.htm
That is not up-to-date info on (X)HTML.
--
Alan Plum, WAD/WD, Mushroom Cloud Productions http://www.mushroom-cloud.com/
Quoth the raven named Barry Pearson: Right from their start in about 1993, tables were intended, inter alia, for laying out complex material in rows & columns.
Is "inter alia" your word(s) of the day? Why not just say "among other
things?" I have never before heard your phrase used in normal
non-academic English conversation.
"laying out complex material in rows & columns"
You're probably the only one left who feels that "complex material"
means presentation, rather than content.
--
-bts
-This space intentionally left blank.
Beauregard T. Shagnasty scribbled something along the lines of: Quoth the raven named Barry Pearson:
Right from their start in about 1993, tables were intended, inter alia, for laying out complex material in rows & columns.
Is "inter alia" your word(s) of the day? Why not just say "among other things?" I have never before heard your phrase used in normal non-academic English conversation.
I'd say he just read that phrase this morning and found it quite catchy
so he just likes to use it now.
I heard Americans and British have a strange fascination with foreign
language phrases.
Carpet diet or how they say. =P
--
Alan Plum, WAD/WD, Mushroom Cloud Productions http://www.mushroom-cloud.com/
Beauregard T. Shagnasty wrote: Quoth the raven named Barry Pearson:
Right from their start in about 1993, tables were intended, inter alia, for laying out complex material in rows & columns. Is "inter alia" your word(s) of the day? Why not just say "among other things?" I have never before heard your phrase used in normal non-academic English conversation.
I've used it for many years, and seen it used for many years.
If it confused you, I apologise.
"laying out complex material in rows & columns"
You're probably the only one left who feels that "complex material" means presentation, rather than content.
I don't feel that. I feel that "complex material" means "complex material".
Please don't make up false statements about what I feel.
Raggett said in 1993: "Cells may contain, text, multiple paragraphs, lists and
headers". "Paragraphs can include the following: ... Images which act as
single characters and which can be vertically aligned relative to the text
line in which they are embedded ... Hypertext Links based on the URL or URN
notations". http://www.w3.org/MarkUp/HTMLPlus/htmlplus_1.html
That sounds like "complex material". And it got even more complex in 1997,
when nested tables were included. http://www.w3.org/TR/REC-html32#table
I'll repeat my statement that is under discussion here: "Right from their
start in about 1993, tables were intended, inter alia, for laying out complex
material in rows & columns".
--
Barry Pearson http://www.Barry.Pearson.name/photography/ http://www.BirdsAndAnimals.info/ http://www.ChildSupportAnalysis.co.uk/
Quoth the raven named Barry Pearson: Beauregard T. Shagnasty wrote:
Quoth the raven named Barry Pearson:
Right from their start in about 1993, tables were intended, inter alia, for laying out complex material in rows & columns.
Is "inter alia" your word(s) of the day? Why not just say "among other things?" I have never before heard your phrase used in normal non-academic English conversation.
I've used it for many years, and seen it used for many years.
If it confused you, I apologise.
No, it didn't confuse me. "laying out complex material in rows & columns"
You're probably the only one left who feels that "complex material" means presentation, rather than content.
I don't feel that. I feel that "complex material" means "complex material". Please don't make up false statements about what I feel.
Ok, my turn to apologize.
You're probably the only [regular poster] left [in these groups] who
feels that "complex material" [includes] presentation <strike>, rather
than content</strike>.
<snip rest of boilerplate>
--
-bts
-This space intentionally left blank. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: LRW |
last post by:
I have a querey formed with a few joins and a lot of fields, and no
kidding, it takes up to 2 minutes for the PHP page to poulate with all
the results (usually around 300).
Now, we have a pretty good server: dual Pentium 4 CPUs and a gig of
RAM. And all other queries seem to fly.
So there must be something about this querey that must be horribly
inefficient and badly written.
Can anyone give me any tips on how I can better this?
|
by: Martin Mrazek |
last post by:
Hi,
I have tables named like ag97a027, ag98a027, ... where 97 and 98 is
from year 1997, 1998 and a027 is just specification of product type. I
need carry out repeated operataions over these tables. To generate
their names is easy, for example
use
declare @Yint int, @Y char(2), @tabName char(8)
set @Yint = 1997
while @Yint < 2002
|
by: Mel |
last post by:
Are we going backwards ? (please excuse my spelling...)
In my opinion an absolute YES !
Take a look at what we are doing ! we create TAGS, things like <H1> etc.
and although there are tools (dreamweaver and the like), they are all at the
lowest level of programming (something like assembly as oposed to C++ etc.).
These tools create "brain-dead" developers that constantly have to plough
through tons of tags to do the simplest thing.
...
|
by: noone |
last post by:
I have a database file that I use an autonumber field as the primary key
index. Because of some rearrangements in the past, this index does not match
the order that I would like it to be in, that is date order. What I would
like to do is to eliminated the primary key field (I know how to do this),
sort on the date field, and then reindex with a new autonumber field. Every
time I try, however, the default sort field left over from the...
|
by: Nip |
last post by:
I am trying to make a database for my test participants. I have 10
participants and have a table with them called participants which
includes an auto number ID and then the participant number and start
date.
Now I want to rank these participants. So I have created 3 more
tables
one is called rankdescription and includes 5 ranking descriptions
which all 10 participants will have to rank.
The 2nd table is rankdate and includes 8...
| |
by: michael |
last post by:
Hi,
I am trying to write an ASP.NET web app, in Visual Basic.NET, using
Visual Studio.NET 2004, .NET framework 1.1.4322 SP1
Running the project/app on localhost while in dev/write/debug stage
When I say "trying", I do have it written, and it works ... sort of,
for some cases.
The problems/issues?
|
by: RICHARD BROMBERG |
last post by:
For the last couple of days I have been trying to learn how to solve this
problem.
I'm using Access 2000
I am posting it again and maybe I will be mofe successful.
I have a text box and a table. I want to enter a number into the text box
and using this number determine if there is a record in the table with a
primary key that matches it.
|
by: Earl Anderson |
last post by:
First, I feel somewhat embarrassed and apologetic that this post is lengthy,
but in an effort to furnish sufficient information (as opposed to too little
information) to you, I wanted to supply all of the relevant facts. Second,
despite the fact that I think the obvious 'quick' answer to my question
would be 'Yes', I am seeking your wisdom and recommendation to the question
as to this particular set of circumstances.
I have 20 Security...
|
by: raylopez99 |
last post by:
I ran afoul of this Compiler error CS1612 recently, when trying to
modify a Point, which I had made have a property. It's pointless to
do this (initially it will compile, but you'll run into problems
later). Apparently Point is a struct, a value type, and it does not
behave like a classic structure (in my mind's eye, and see below).
Traditionally I think of a classic structure as simply an object where
every member is public. But with...
|
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...
|
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,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |