Tables (Styles) in ModernBB
4 posters
Tables (Styles) in ModernBB
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:

on ModernBB:

Castiel- Forumember
-
Posts : 155
Reputation : 0
Language : English
Re: Tables (Styles) in ModernBB
Good afternoon!
Add the property:
to the parameters of your table:
In my version, I removed the cell border:
I also aligned the text to the width using the:
Result:

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:

Razor12345- Forumember
-
Posts : 165
Reputation : 43
Language : Ukr, Rus, Eng
Location : Ukraine
Ape and TonnyKamper like this post
Niko- Hyperactive
-
Posts : 2527
Reputation : 144
Language : English, Italian, French
Location : Italy
TonnyKamper likes this post
Re: Tables (Styles) in ModernBB
When your request is complete, please mark it as Solved.
skouliki- Manager
-
Posts : 13318
Reputation : 1585
Language : English,Greek
Location : Greece

» ModernBB
» ModernBB themes?
» ModernBB : update
» connection to the chatbox in modernbb
» The new AWARDS system is coming on your forum
» ModernBB themes?
» ModernBB : update
» connection to the chatbox in modernbb
» The new AWARDS system is coming on your forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum