I’m almost embarrassed to ask for help with this because the solution is probably a no brainer but I’ve been at it for over 2 hours. I’ll use it as a template so that in the future I can reference it. I’ve kept this stripped down and simple:
You can’t control the text alignment with the col/colgroup tags as only the following properties are allowed:
background-color
border
width
visibility
Although older browsers did vary in what was allowed the above list is the only safe options.
Usually you would use the colgroup as the wrapper and then have a col element for each column in the table although you can span more than one column with the span attribute.
So none of the COL tags work with tables? I don’t get it. Why have these tags if they can’t be used? I have some tableless templates so I may be returning to my thread.
No they only apply to tables. I’m not sure what you are saying?
You can style width, background, border and visibility as I mentioned above. Usually you would use thr col tag to provide column colours easily. Other styles are not really relevant as tds are not descendants of the col tag and cannot inherit text alignment.
It would be nice if more styles were allowed but that’s just the way it is. In the very very old days you could use the deprecated align attribute on the column but not these days.