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

View user profile

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
Razor12345
Razor12345
Forumember

Male Posts : 51
Reputation : 11
Language : Ukr, Rus, Eng
Location : Ukraine

View user profile https://terranova.forumotion.me

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
Hyperactive

Male Posts : 2497
Reputation : 138
Language : English, Italian, French
Location : Italy

View user profile 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 : 12691
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile 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