Bitcoin Forum
May 12, 2024, 05:51:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Are table borders a thing and if not can they be?  (Read 521 times)
hosseinimr93
Legendary
*
Online Online

Activity: 2394
Merit: 5235



View Profile
January 19, 2020, 12:54:02 AM
Last edit: January 19, 2020, 01:07:03 AM by hosseinimr93
 #21

*edit* Not sure why the left column has gone haywire...
It seems to be a bug. For testing that, I quoted your post. Everything is fine in preview page. But when you post it, it's not like what was shown in the preview page.
There are some bugs in creating tables that were mentioned above by LoyceV and tranthidung.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
1715493118
Hero Member
*
Offline Offline

Posts: 1715493118

View Profile Personal Message (Offline)

Ignore
1715493118
Reply with quote  #2

1715493118
Report to moderator
1715493118
Hero Member
*
Offline Offline

Posts: 1715493118

View Profile Personal Message (Offline)

Ignore
1715493118
Reply with quote  #2

1715493118
Report to moderator
1715493118
Hero Member
*
Offline Offline

Posts: 1715493118

View Profile Personal Message (Offline)

Ignore
1715493118
Reply with quote  #2

1715493118
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715493118
Hero Member
*
Offline Offline

Posts: 1715493118

View Profile Personal Message (Offline)

Ignore
1715493118
Reply with quote  #2

1715493118
Report to moderator
TryNinja
Legendary
*
Offline Offline

Activity: 2828
Merit: 6984



View Profile WWW
January 19, 2020, 10:22:16 AM
 #22

Like a table generator, say something like this: https://www.teamopolis.com/tools/bbcode-table-generator.aspx? Or the design aspect of how the table looks like, aesthetically,using some sort of a script perhaps?
I was thinking about something like this website. You make/edit the table as you see it and the page gives you the BBcode to make it work on BitcoinTalk.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12983


View Profile
January 19, 2020, 07:24:34 PM
 #23

It wouldn't be that difficult to add to the bbcode parser, but it might be a good opportunity to also fix the first-column bug. Maybe:
 - A border attribute would be added to the [table] tag. If you have it set, even to 0, then the first-column bug is fixed for your table (by adding/removing a CSS class)
 - Existing tables without a border specified would function exactly the same as now, for backwards-compatibility.

I'll do it if someone comes up with the ideal HTML+CSS which the table tag should produce, for all three cases: [table], [table border=0], and [table border=1]. You can't remove that problematic CSS rule without addressing the fact that it's actually supposed to do something (not sure off-hand what...), and that the behavior of old [table] tags need to remain identical for backward-compatibility. So you should either work around that CSS rule or figure out exactly what it's supposed to do and fix it to be more selective while also maintaining the old behavior on old [table]s.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
suchmoon
Legendary
*
Offline Offline

Activity: 3654
Merit: 8922


https://bpip.org


View Profile WWW
January 19, 2020, 09:32:02 PM
Last edit: November 30, 2020, 02:57:50 AM by suchmoon
Merited by 0x256 (1)
 #24

It wouldn't be that difficult to add to the bbcode parser, but it might be a good opportunity to also fix the first-column bug. Maybe:
 - A border attribute would be added to the [table] tag. If you have it set, even to 0, then the first-column bug is fixed for your table (by adding/removing a CSS class)
 - Existing tables without a border specified would function exactly the same as now, for backwards-compatibility.

I'll do it if someone comes up with the ideal HTML+CSS which the table tag should produce, for all three cases: [table], [table border=0], and [table border=1]. You can't remove that problematic CSS rule without addressing the fact that it's actually supposed to do something (not sure off-hand what...), and that the behavior of old [table] tags need to remain identical for backward-compatibility. So you should either work around that CSS rule or figure out exactly what it's supposed to do and fix it to be more selective while also maintaining the old behavior on old [table]s.

The buggy rule appears to be targeting this:

Loading...
Edited 2020-11-30 to fix a broken image

But someone forgot the "cascading" part of "CSS" and it now applies to post content as well.

For your suggested fix to work you would need:

  • No CSS class on the tables without the border attribute - the old rule would still apply then.
  • "table-new-style" class on tables with border attribute (any value), and the following CSS:
    • div#bodyarea div.post table.table-new-style > tbody > tr > td:first-child { width: auto; }
  • Additional "table-with-border" class on tables with border=1, and the following CSS:
    • div#bodyarea div.post table.table-with-border { border-spacing: 0px; border-collapse: collapse; }
    • div#bodyarea div.post table.table-with-border > tbody > tr > td { padding: 2px; border: 1px #555 solid; /* or whatever border spec you want to apply */ }

I would prefer an option to specify custom border colors but that gets a bit more complicated.

Here is an example of the suggested CSS on jackg's post: https://bitcointalk.org/index.php?topic=5217699.msg53633870#msg53633870

Loading...
Edited 2020-11-30 to fix a broken image
Timelord2o67
Member
**
Offline Offline

Activity: 372
Merit: 39

Ditty! £ $ ₹ € ¥ ¢ ≠ ÷ ™


View Profile
January 20, 2020, 12:07:31 AM
 #25

If @theymos is still reading this thread can he also consider adding the bbcode for countdowns which I mentioned in the bbcode thread   Instructions on how to use BBCode started by xtraelv please?

.★☆★ UNPAID ADVERTISEMENTS: ★☆★ ❖ Get Paid in BitCoin .
.CoinPlaza Exchange (IT)  ★☆★ .
.❖ Win Free Bitcoins every hour! - www.freebitco.in   .
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!