Re: Columns



dorayme wrote:
In article <wpp0j.41344$T8.21141@xxxxxxxxxxxxxxxxxxxx>,
Brian Robertson <brian@[nospam].com> wrote:

I am redesigning a web page that runs to some 1800 pages consisting mostly of tables to show data. (Hey, there may be better ways of doing it than tables, but what the hell?)

There is no better way to make a table than to use the tool that is designed to make them, tables.


I have tried converting the original pages from HTML formatting to CSS, but it is hard and frustrating work, ultimately doomed to failure IMHO. I may as well start at square one with a new layout.

You can at least not have inline styles as in your code, hive those off to the css in the head or otside css linked file.


What I want to know is this: how can I apply particular attributes to columns rather than rows, or can't I, or is there a next best fix?


You might have to study col and colgroup:

http://www.htmldog.com/guides/htmladvanced/tables/

Or if you want low tech, it is really simple, you simply class all the cells in each col and say what colour background you want in each cell:

http://netweaver.com.au/alt/robertson.html


Hiya. Thanks for that. Pretty much what I suspected. Just wanted confirmation really. It is going to be a hard slog, but I am a total convert to CSS and think it will be worth the effort.

The inline style info is there thanks to FrontPage and will be removed. Thanks for reminding me though.

Brian.
.



Relevant Pages

  • Re: specify language as in ?
    ... In reality, however, the choice of the default fonts for different languages/scripts/encodings is affected by _browser settings_ outside any CSS considerations. ... lang, dir, and style attributes are supposed to inherit from cols to ... On the other hand, such issues probably do not affect lang attribute considerations, so I'd expect that they are _meant_ to be "inherited" from columns to cells, in the absence of lang attribute for the cell or its row. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Misrendered table cells width specified with CSS (colspan)
    ... The CSS ... laying out a table with spanning cells can get ... translate widths on spanning cells to widths on the individual columns ... "Internet Explorer does support progressive rendering of content as it ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: grid structures: TABLE/TR/TD vs. DIV
    ... It must be a separate CSS file that works regardless of how many ... If the column widths are in the CSS then some ... At this point I am using TABLE/TR/TD because it is what works. ... | the cells. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: grid structures: TABLE/TR/TD vs. DIV
    ... It must be a separate CSS file that works regardless of how many ... different columns the HTML marked up content has. ... If the column widths are in the CSS then some ... Note that all the cells in each row have the same height regardless of ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Please help the newbee (Contract programmer for 20 years but new to PHP)
    ... dat for each record fits on one line. ... I am not functional with CSS ... So, 2 cells, OK. ... A more confortable construct is often: ...
    (comp.lang.php)