473,657 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS Tables not practical?

CSS Experts:

OK, I'm a stupid newby. Now, here's the question:

Can CSS replace slightly complicated Tables and work in three
browsers (e.g. MSIE 6.0, Net 7.1, Op 7.03) ?

After countless attempts I've concluded "no".

Thank you,

Mason C

( not pertinent; for identification only: http://masonc.home.netcom.com )
Jul 20 '05 #1
40 2701
On Wed, 14 Jan 2004 21:30:56 GMT, Mason A. Clark
<ma*******@THIS ix.netcom.comQ> wrote:
Can CSS replace slightly complicated Tables and work in three
browsers (e.g. MSIE 6.0, Net 7.1, Op 7.03) ?

After countless attempts I've concluded "no".


If it's a true table, with tabular data, use the table.

Depends on how you define "slightly complicated". Care to offer a URL to a
table design you would like to convert?

And BTW, it's a little like asking where you can find legal adult workers
who will give you comparable production as cheaply as you can employ child
slave labor. Obviously there are going to be layouts possible through the
misuse of table markup which aren't going to be easily replicated using
CSS. As CSS develops, I think you'll see more and more possible.
Jul 20 '05 #2
Mason A. Clark <ma*******@THIS ix.netcom.comQ> wrote:
CSS Experts:

OK, I'm a stupid newby. Now, here's the question:

Can CSS replace slightly complicated Tables and work in three
browsers (e.g. MSIE 6.0, Net 7.1, Op 7.03) ?

After countless attempts I've concluded "no".


IE does not support CSS tables. Note that CSS tables are to be used for
layout, not to replace regular tables.

--
Spartanicus
Jul 20 '05 #3
On Wed, 14 Jan 2004, Mason A. Clark wrote:
Can CSS replace slightly complicated Tables and work in three
browsers (e.g. MSIE 6.0, Net 7.1, Op 7.03) ?
Unclear. If I'm feeling generous, I think you're asking "can CSS be
used to do page layout, instead of (mis)using tables?", to which I
would answer "yes" with reasonable confidence. But, taking into
account the browsers that are out there, you have to be flexible and
pragmatic, and occasionally make significant compromises.

If I'm not so generous, then I worry that you have some misguided
notion of replacing tabular data by some kind of CSS positioning, to
which I would reply "don't do that".
After countless attempts I've concluded "no".
We also probably need to understand how you interpret the term
"works". For me, a web page "works" when it adapts calmly and without
fuss to a wide range of presentation situations; it should also,
naturally, be visually attractive in at least the mainstream browsing
situation, but no end-users are going to award points for pixel-exact
identity of the presentation in different browsers - that
interpretation of "works" is quite likely to be counterproducti ve in
my opinion.

It's my impression that you get much better results if you learn the
various aspects of stylesheet design from the ground up, so that you
can work with them confidently in their own terms, without any
reference to previous HTML3.2-ish techniques.

Once you've made the mistake of setting yourself the explicit target
of "replacing" some deprecated thing by some new replacement, you've
made the problem extra difficult by introducing unnecessary
constraints and compromises. After gaining a confident working
knowledge of the available features, it then becomes easier to solve
such an artificial task; but at the beginning it's better to work with
CSS page designs in their own right, rather than as some kind of
substitute for something that was inferior in the fundamental sense.
At any rate, that's my advice - worth at least what you paid for it
;-)

Until then, just toss out all the old layout markup, keep the content
and any structurally-significant markup that it may have, and start
designing from first principles of separating content from
presentation.
( not pertinent; for identification only: http://masonc.home.netcom.com )


You might get better advice from the participants on this group if you
were willing to actually post an example, though.

good luck
Jul 20 '05 #4
On Wed, 14 Jan 2004 16:47:50 -0500, Neal <ne*****@spamrc n.com> wrote:
Depends on how you define "slightly complicated". Care to offer a URL to a
table design you would like to convert?


http://home.earthlink.net/~frontal-l...ntentscss.html

is a simple *exercise*. Ignore the content and links.

<table<tr><td > etc works fine for this. But this CSS version does not.
These five boxes do not position in Netscape or Opera. I've tried countless
combinations of margins, width, etc. (again: this is only an exercise)

My project is a Javascript Dhtml "quiz" of considerable complexity and
working very well. I'd like to use styles for its layout. I won't post it
because its other complexities would obscure my question.

I looked at www.w3c.org uses CSS. If I hit the refresh button, F5, the
layout breaks up. (It's ok to hit Enter.) I conclude from this and
other observations that CSS pages have less stability (re different
browsers, key thumping) than table layouts.

Hey, thanks for the quick responses.

Mason C

Jul 20 '05 #5
On Thu, 15 Jan 2004 00:58:58 GMT, Mason A. Clark
<ma*******@THIS ix.netcom.comQ> wrote:
On Wed, 14 Jan 2004 16:47:50 -0500, Neal <ne*****@spamrc n.com> wrote:
Depends on how you define "slightly complicated". Care to offer a URL
to a
table design you would like to convert?


http://home.earthlink.net/~frontal-l...ntentscss.html

is a simple *exercise*. Ignore the content and links.

<table<tr><td > etc works fine for this. But this CSS version does not.
These five boxes do not position in Netscape or Opera.


Ok. Right off the top.

#upLeft { display: block; border: 2px solid red; width="48%"; height=330;
margin-top=12; margin-left=5%; padding=11px; background-color=#FFFFDD; }

You're mixing up HTML and CSS. No = signs. No quotes. No numbers without a
measurement unless they're 0. Check out the correct CSS.

#upLeft { display: block; border: 2px solid red; width:48%; height:330px;
margin-top:12px; margin-left:5%; padding:11px; background-color:#FFFFDD; }

IE will fix a lot of errors that Opera and Mozilla/Netscape won't. Fix all
your styles to be correct CSS, and try it then.
Jul 20 '05 #6
Neal wrote:

IE will fix a lot of errors that Opera and Mozilla/Netscape won't.
Fix all your styles to be correct CSS, and try it then.


Just a clarification on the above: IE will *ignore*, not fix errors,
displaying them as it "thinks" they should look.

Also, keep in mind that IE is extremely buggy when it comes to CSS and has
very lacking support of CSS2. When you design for Gecko (Mozilla, Netscape),
you can basically use straightforward CSS2; to emulate the same layout for
IE, in many cases you will need to use hacks. And not to mention the
terrible problem concerning widths in IE5 and IE6 (see
http://msdn.microsoft.com/library/en...ancements.asp).

Berislav
Jul 20 '05 #7
Spartanicus wrote:
IE does not support CSS tables. Note that CSS tables are to be used for
layout, not to replace regular tables.


In HTML (and still, browsers are using it: "table{display: table;}").

--
Anne van Kesteren
<http://www.annevankest eren.nl/>
Jul 20 '05 #8
Anne van Kesteren <ma**@annevanke steren.nl> wrote:
IE does not support CSS tables. Note that CSS tables are to be used for
layout, not to replace regular tables.


In HTML (and still, browsers are using it: "table{display: table;}").


What are you talking about?

--
Spartanicus
Jul 20 '05 #9
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote in message news:<Pi******* *************** *********@ppepc 56.ph.gla.ac.uk >...
On Wed, 14 Jan 2004, Mason A. Clark wrote:
( not pertinent; for identification only: http://masonc.home.netcom.com )


You might get better advice from the participants on this group if you
were willing to actually post an example, though.


Which he did.

http://home.earthlink.net/~frontal-l...ntentscss.html

EC
..
Jul 20 '05 #10

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

Similar topics

18
3745
by: Shannon Jacobs | last post by:
Trying to solve this with a regex approach rather than the programmatic approach of counting up and down the levels. I have a fairly complicated HTML page that I want to simplify. I've been able to mung most of it using several regular expressions, but I've become stuck at this point. I can't figure out how to grab only the <tr> tags that are associated with tables that are two levels deep. I feel like I got close, but it seems that...
44
3872
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with other browsers (I checked it under Konqueror). Thank you in advance for your help. Regards. /Mariusz <HTML>
81
5150
by: sinister | last post by:
I wanted to spiff up my overly spartan homepage, and started using some CSS templates I found on a couple of weblogs. It looks fine in my browser (IE 6.0), but it doesn't print right. I tested the blogs, and one definitely didn't print right. Surveying the web, my impression is that CSS is very unreliable, because even updated browsers fail to implement the standards correctly. So should one just avoid CSS? Or is it OK if used...
4
5578
by: niv | last post by:
Hi, I am unsure on how to retrieve data from tables 2 tables that are related through a relationship table.. TableOne -------- TableOneID TableOneDesc
3
3526
by: ramraj | last post by:
Hello people, I might sound a little bit crazy, but is there any possibility that you can incorporate 4^15 (1,073,741,824) tables into a SQL Database? I mean, is it possible at all? There might be a question of where anyone would want so many tables, but i'm a bioinformatics guy and I'm trying to deal with genomic sequences and was coming up with a new algorithm, where the only limit is the number of tables I can put into a Database.
7
6528
by: www.gerardvignes.com | last post by:
I was checking out a website offered as an example for another job, and I was struck by how clean and professional the site is. http://www.colorlines.com/ I was poking around, and I noticed that they are still using HTML Tables for content. I realize that many sites still use HTML Tables for their content, but it is generally discouraged in favor of CSS Layers.
5
14169
by: Lee Brotzman | last post by:
Hi, I have a sequence of data tables in an ordered list, like this: <ol> <li><table></table></li> <li><table></table></li> </ol> However it renders on the page with the list item number next to the
3
1162
by: Quarco | last post by:
I know.. i know.. tables are not the best solution to solve things.. But... What about an auto-scaling table like: <table width="100%" > <col /> <col width="400" /> <tr> <td><div id="googleMap" style="width: 100%"></div></td> <td>Menu-kind-of-thing</td> </tr>
7
1162
by: Jonathan Wood | last post by:
I've been given a spec that seems unwieldy to me. As I'm pretty new to DB design, I would appreciated any input this spec. The site has three types of users: ADMIN, RESELLERS, and CLIENTS. The database will be storing ITEMS and COLLECTIONS (COLLECTIONS are lists of the ITEMS). First, ADMIN users are to be able to create a MASTER LIST of items. Next, RESELLER users are to be able to maintain a list of ITEMS that
0
8385
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
8821
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
8723
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 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...
1
8502
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
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
5632
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
4150
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
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1941
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.