Some thoughts:

Consider a data-and-code solution as opposed to one that involves 
custom-editing each and every table.

In approx. the same time it takes you to mark up each table you could instead 
be logging each table (say giving each table an id (or probably better, a 
class), it’s column count, and preferred column sizing)

There are a number of ways to go about doing this. ( I prefer a JS-coded 
approach, but at very least you could create a central .css file that 
effectively lists all your table classes and their customized td widths. )

A number of interesting things come from this approach:
a) You get a centralized overview of all your tables.
b) When you want to make changes you don’t have to again edit all your tables, 
just the centralized file.
c) You typically discover patterns in your datasets and even your website you 
weren’t previously aware of, and you can start to think about how to leverage 
those discoveries in efficient, innovative ways.
d) You open up the possibility — if it makes a difference — of extracting the 
data out of all the html files into more data-friendly contexts (databases, 
JSON, etc)


> On Nov 26, 2019, at 07:25, Andrew Brown <[email protected]> wrote:
> 
> All custom, Harvey. — A.
> 
>> On 26 Nov 2019, at 16:09, Harvey Pikelberger <[email protected]> wrote:
>> 
>> Is there a logic pattern to how you want your columns sized, or is every 
>> column width a customized decision?
>> 
>> <table class="Type1">
>>      <colgroup>
>>          <col span="1" style="width: 30%;">
>>          <col span="1" style="width: 70%;">
>>      </colgroup>
>> 
>>>> On Nov 26, 2019, at 06:12, Andrew Brown <[email protected]> wrote:
>>> 
>>> We have a few hundred files to put up on our sites, many of which contain 
>>> tables, all different, currently coded in html.
>>> 
>>> Now that one is obliged to use css to fix column widths — a curious 
>>> development — I am looking for a way of inserting all the relevant 
>>> instructions in or immediately after the table tag. Can anyone offer an 
>>> improvement on 
>>> 
>>>  <table>
>>>      <colgroup>
>>>          <col span="1" style="width: 30%;">
>>>          <col span="1" style="width: 70%;">
>>>      </colgroup>
>>>      ...
>>> 
>>> AB
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/2FE6510B-23C9-4F53-AA1C-23BF5D7FD63E%40c18.org.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/D05A88F6-3D23-430D-B8C7-32E54A8D47D6%40gmail.com.

Reply via email to