C
Chris
Anybody know of a good, online tutorial explaining how to use CSS instead of
tables?
tables?
Chris said:Anybody know of a good, online tutorial explaining how to use CSS
instead of tables?
Anybody know of a good, online tutorial explaining how to use CSS
instead of
tables?
Barry Pearson said:Strictly, you can't replace tables with CSS, because CSS2 doesn't support
"columns".
(You could try to emulate columns using CSS's "display" property,
but IE doesn't support what you need).
[snip]Kris said:Strictly you can, because CSS2 does supports column display.
Strictly you can, because CSS2 does supports column display.
So you are saying that strictly IE does not support it.
Then we're clear on that.
Chris said:Anybody know of a good, online tutorial explaining how to use CSS instead of
tables?
Barry said:CSS and tables are not in conflict or competition! You can use both, and the
vast majority of web pages in the world *do* use both.
Have a look at:
http://www.alistapart.com/topics/css/
http://www.mako4css.com/Tutorial.htm
http://www.w3schools.com/css/default.asp
http://www.projectseven.com/tutorials/css/css_td/
A problem is that designing a page to use CSS layout isn't a methodical task
(yet). It needs knowledge of browser bugs & non-compliances, and the hacks &
workarounds to overcome these.
that, your capability will tend to be determined by how many of those
non-compliances & hacks you can put to effective use. I have found this
useful:
http://www.richinstyle.com/
Strictly, you can't replace tables with CSS, because CSS2 doesn't support
"columns". (You could try to emulate columns using CSS's "display" property,
but IE doesn't support what you need). So, typically, what you are doing when
you use tableless-layout, is either implement a different visual design, or
find a way of doing with CSS what it wasn't actually intended to do. Over the
last few years, many such ways have been discovered & published.
Barry said:I know of no CSS feature, or proposed feature, that is intended to support
columns in the same way, or even close to the same way, as table-columns.
[snip]Toby said:"display:table" and friends (which is part of CSS 2 and 2.1, is
supported in Gecko since before Moz 1.0 and in Opera since 5.x and
will presumably be part of CSS 3) can exactly emulate tables that
don't use (row|col)span.
[snip]Kris said:Strictly you can, because CSS2 does supports column display.
Where?
CSS2 is about boxes. Columns are about separate "things" having the same
height. One of the things that has exercised the minds of experts over the
last few years is how to make CSS-layouts appear to have the characteristics
of columns.
If a vast majority of web pages in the world do use invalid code,
improper nesting, etc..., would that be a good reason to do so too?
YES!
BB
Using CSS for layout requires knowledge of CSS to begin with. It is the
absence of good tutorials on CSS, how to use CSS, etc.. that is more
detrimental than browser bugs.
Even if browser have bugs - and they do -, there is often a workaround
using code which is entirely valid. Browsers don't have bugs everywhere
and on everything. I'd say amateur web designers are the ones not
putting honest efforts into coding their pages: they rely on
copy-N-paste anyhere/everywhere they can, they rely on Front Page 2002
or older and on old (or not old) versions of DreamWeaver which promises
fast and easy results, etc..
The theory of CSS will get you so far - after
A wide majority of sites relying on table designs also resort
shamelessly and enormously on nested tables: does that makes sense? I'm
talking about as much as 50% of all webpages on the web here.
Can you just give me a good example of usage of nested tables?
A wide majority of sites use <font>, <center>, align and valign
senselessly, everywhere, insane amounts of <spacer> or <img
src="spacer.gif" ...>, etc.. You never address these issues and these
issues are closely related to the easy and mindless usage of tables for
designs to begin with.
DU
DU said:If a vast majority of web pages in the world do use invalid code,
improper nesting, etc..., would that be a good reason to do so too?
Using CSS for layout requires knowledge of CSS to begin with. It is
the absence of good tutorials on CSS, how to use CSS, etc.. that is
more detrimental than browser bugs.
Even if browser have bugs - and they do -, there is often a workaround
using code which is entirely valid. Browsers don't have bugs
everywhere and on everything. I'd say amateur web designers are the
ones not putting honest efforts into coding their pages: they rely on
copy-N-paste anyhere/everywhere they can, they rely on Front Page 2002
or older and on old (or not old) versions of DreamWeaver which
promises fast and easy results, etc..
A wide majority of sites relying on table designs also resort
shamelessly and enormously on nested tables: does that makes sense?
I'm talking about as much as 50% of all webpages on the web here.
Can you just give me a good example of usage of nested tables?
A wide majority of sites use <font>, <center>, align and valign
senselessly, everywhere, insane amounts of <spacer> or <img
src="spacer.gif" ...>, etc.. You never address these issues and these
issues are closely related to the easy and mindless usage of tables
for designs to begin with.
If a vast majority of web pages in the world do use invalid code,
improper nesting, etc..., would that be a good reason to do so too?
Using CSS for layout requires knowledge of CSS to begin with. It is the
absence of good tutorials on CSS, how to use CSS, etc.. that is more
detrimental than browser bugs.
A wide majority of sites relying on table designs also resort
shamelessly and enormously on nested tables: does that makes sense? I'm
talking about as much as 50% of all webpages on the web here.
Can you just give me a good example of usage of nested tables?
A wide majority of sites use <font>, <center>, align and valign
senselessly, everywhere, insane amounts of <spacer> or <img
src="spacer.gif" ...>, etc.. You never address these issues and these
issues are closely related to the easy and mindless usage of tables for
designs to begin with.
Whitecrest said:(e-mail address removed) says... [snip]A wide majority of sites use <font>, <center>, align and valign
senselessly, everywhere, insane amounts of <spacer> or <img
src="spacer.gif" ...>, etc.. You never address these issues and these
issues are closely related to the easy and mindless usage of tables
for designs to begin with.
These issues revolve around bad usage of table layout. But you don't
necessarily have to lose the tables to fix it. The use of a little
CSS would solve almost all of the issues.
Spacer-GIFs are often associated with bad use of tables. (Although I have used
those for sites where I wanted things to work right without CSS). But the
other issues are nothing to do with tables.
When I see someone like DU lump <font> & spacer-GIFs in with tables, then I
don't see a criticism of tables. I see a criticism of an old-style of web
development, or of inexperienced authors. That is fine, but it says nothing
about any modern use of simple tables, accompanied by a few gentle nudges from
CSS.
Whitecrest said:Totally agree.
<chirp>me too</chirp>
I have on occasion used an HTML table to lay out, well, not strictly tabular
things on a page, if only because there was nothing else available to
realize the design. Sure, CSS tables would have but, well, there is IE
In any case what are CSS tables if not, well, tables.
<aside>
There is a really good reason to use CSS to control things like font face
but is there a really good reason for using CSS tables over standard HTML
tables? Both technologies, after all, simply lay out things in colums and
rows. One could argue that one should not use CSS tables for anything other
than tabular data
</aside>
Sometimes the real modern four wheel drive can simply not make it up the
mountain side. Sometimes we have to use a tried and tested horse.
[snip]I have on occasion used an HTML table to lay out, well, not strictly
tabular things on a page, if only because there was nothing else
available to realize the design. Sure, CSS tables would have but,
well, there is IE In any case what are CSS tables if not, well,
tables.
<aside>
There is a really good reason to use CSS to control things like font
face but is there a really good reason for using CSS tables over
standard HTML tables? Both technologies, after all, simply lay out
things in colums and rows. One could argue that one should not use
CSS tables for anything other than tabular data
</aside>
<aside>
There is a really good reason to use CSS to control things like font face
but is there a really good reason for using CSS tables over standard HTML
tables? Both technologies, after all, simply lay out things in colums and
rows. One could argue that one should not use CSS tables for anything
other
than tabular data
</aside>
Sometimes the real modern four wheel drive can simply not make it up the
mountain side. Sometimes we have to use a tried and tested horse.
Strictly you can, because CSS2 does supports column display.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.