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.
The forum of the forums
4 posters

    Tables (Styles) in ModernBB

    Castiel
    Castiel
    Forumember


    Male Posts : 155
    Reputation : 0
    Language : English

    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
    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    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

    Ape and TonnyKamper like this post

    Niko
    Niko
    Helper
    Helper


    Male Posts : 3231
    Reputation : 248
    Language : English, Italian, French
    Location : Italy

    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:

    TonnyKamper likes this post

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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.


      Current date/time is September 23rd 2024, 1:34 am