AtomCrafty Posted December 26, 2016 Posted December 26, 2016 Hey there, just a minor request: while writing a new version of out project introduction I noticed that the css property 'table-layout' is unavailable for forum posts. I am aware that html/css purification is a crucial step to prevent unwanted code injection but this particular property doesn't entail any security risks table-layout: fixed; causes equal row widths, with looks much nicer if you ask me: The forum also won't let me set the width of that table to calc(100% - 40px), is there any particular reason for that? As a temporary solution I will set a minimum cell width, but that will look weird on smaller screens like mobile devices ^^ - Atom RedK 1 Quote
AtomCrafty Posted December 26, 2016 Author Posted December 26, 2016 Update: min-width doesn't work for td elements either :/ RedK 1 Quote
Infernoplex Posted December 26, 2016 Posted December 26, 2016 Feels good to be a website developer You get to know how site presentation actually works "under-the-hood" Â AtomCrafty 1 Quote
Nayleen Posted December 26, 2016 Posted December 26, 2016 Hello fellow Germin. One would be more natural, since the cell with the longest content gets the widest width, the other one (fixed width) is more pleasing to OCD eyes. I'm not really particular to either. So, everyone: Post your opinions why one should be used over the other, and we'll use whatever. AtomCrafty 1 Quote
AtomCrafty Posted December 26, 2016 Author Posted December 26, 2016 @Nayleen I think it depends on what content you want to display. I'm not familiar with the IPS Community Software, but isn't there an option to whitelist specific css properties? That way everyone could use the settings most appropriate in their situation. Even though admittedly, most people probably won't use tables at all because they're not included in the wysiwyg editor ^^ - Atom Quote
Nayleen Posted December 26, 2016 Posted December 26, 2016 The only thing I can whitelist are CSS classes (IPB is a fairly shitty software, in general). Would adding one to the stylesheets of all themes fulfill your requirements? solidbatman and AtomCrafty 2 Quote
AtomCrafty Posted December 27, 2016 Author Posted December 27, 2016 sure, a .fixed-table-layout class would solve the problem for me Quote
Nayleen Posted December 27, 2016 Posted December 27, 2016 Test Testing all the Testable Tests Don't Mind Me Please Vs. Test Testing all the Testable Tests Don't Mind Me Please AtomCrafty 1 Quote
AtomCrafty Posted December 27, 2016 Author Posted December 27, 2016 Nice, thanks a lot! Good to see such an active community ^^ - Atom Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.