Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Specifying a cell width in [table] BBcode tags
Topic Started: Feb 14 2018, 07:46 AM (214 Views)
Shard01
Member
[ * ]
Hi, all,

I would like to ask for some guidance in customising the [table][c][/table] BB code tags. I continually get requests from board members who dislike the way the widths of tables & cells are determined, forcing them to use 'invisible' spacer images or flash links to display content the way they want (and often looks terrible when viewed on mobile etc., as setting a static width that way obviously doesn't scale with window size).

Is there a way to add an optional component to these tags to define the width of a cell/table? For example, a way to make the following table have cells of an equal width:

Since this cell contains much more text, the width of it stretches across the screen and forces the cell on the right to squish. In a forum where people enjoy creating aesthetically pleasing posts, being able to control this width factor is a very frequent request. Can it be done?This cell is smaller!


I'm looking to add a width component to these tags, instead of just changing the way the [table] tag is displayed itself, so that the formatting of existing tables does not change. Our forum has been active for many years, so I want to avoid changing anything that would have an affect old, pre-existing post content.

By adding an optional 'width' element to the [table] tag, I'd like users to be able to - if they choose - control the width (in percentages) of the tables & cells they create. If no width is specified, I'd like tables to continue behaving as before.

Alternatively, I'm open to introducing a new/alternative table tag, if there is anything pre-existing that can incorporate this function?

Any help or recommendations would be really appreciated, thanks! I don't seem to have the permissions to create topics in the 'coding request' forum, so I hope this area will be close enough...
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply