The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tables (Styles) in ModernBB

4 posters

Go down

In progress Tables (Styles) in ModernBB

Post by Castiel September 13th 2022, 11:44 pm

Technical Details


Forum version : #ModernBB
Position : Founder
Concerned browser(s) : Mozilla Firefox
Who the problem concerns : All members
When the problem appeared : Always
Forum link :

Description of problem

Hello,

I'm trying to use ModernBB and noticed that HTML tables look incredibly weird in posts as it completely ignores everything in the style. I have enabled HTML in both the ACP and my profile. The table codes look perfectly fine on PunBB.

It's really basic:
Code:
<table style="background: #fff; color: #000; border: solid 5px #000; line-height: 250%; padding: 60px;"><tbody><tr><td><strong>Lorem Ipsum:</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas leo vitae maximus gravida. Nulla condimentum, nunc at maximus ullamcorper, ipsum velit condimentum purus, sit amet ultrices elit est sit amet nisl. Maecenas rutrum porttitor augue, maximus finibus nisi. Fusce consectetur sagittis sapien vel pulvinar. Fusce non mi eget lectus tincidunt facilisis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Proin in nibh neque. Integer a sagittis libero. </td></tr></tbody></table>

Has anyone experienced similar problems on ModernBB and knows how to solve it?

on PunBB:
Tables (Styles) in ModernBB AEBeRhP

on ModernBB:
Tables (Styles) in ModernBB QuJfoDg
Castiel
Castiel
Forumember

Male Posts : 155
Reputation : 0
Language : English

Back to top Go down

In progress Re: Tables (Styles) in ModernBB

Post by Razor12345 September 14th 2022, 10:14 am

Good afternoon!
Add the property:

Code:
!important

to the parameters of your table:

Code:
<table style="background: #fff !important; color: #000 !important; border: solid 5px #000 !important; line-height: 250% !important; padding: 60px !important;"><tbody><tr><td style="border: none !important; text-align: justify !important;"><strong>Lorem Ipsum:</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas leo vitae maximus gravida. Nulla condimentum, nunc at maximus ullamcorper, ipsum velit condimentum purus, sit amet ultrices elit est sit amet nisl. Maecenas rutrum porttitor augue, maximus finibus nisi. Fusce consectetur sagittis sapien vel pulvinar. Fusce non mi eget lectus tincidunt facilisis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Proin in nibh neque. Integer a sagittis libero. </td></tr></tbody></table>

In my version, I removed the cell border:

Code:
border: none !important;

I also aligned the text to the width using the:

Code:
text-align: justify !important;

Result:

Tables (Styles) in ModernBB Ouo11


Tables (Styles) in ModernBB Screen51
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1462
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine

Ape and TonnyKamper like this post

Back to top Go down

In progress Re: Tables (Styles) in ModernBB

Post by Niko September 14th 2022, 11:29 pm

Dear @Castiel

do you have a link on ModernBB where we can see live the table?

Thanks :rose:
Niko
Niko
Helper
Helper

Male Posts : 3108
Reputation : 245
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

TonnyKamper likes this post

Back to top Go down

In progress Re: Tables (Styles) in ModernBB

Post by skouliki September 21st 2022, 8:07 am

When your request is complete, please mark it as Solved.
skouliki
skouliki
Manager
Manager

Female Posts : 15133
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum