The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to remove default padding in bbcode tables (in Invision version)?

View previous topic View next topic Go down

Solved How to remove default padding in bbcode tables (in Invision version)?

Post by Handyy on February 28th 2013, 6:37 am

Hi,

I was trying to change my forum version to Invision, but I have a lot of posts that have bbcode tables in them. It seems that for some reason Invision version adds padding between [td] cells that you can't control with the normal bbcode cellpadding/cellspacing=0. What would I need to change in the CSS to make the padding disappear?

Here's an example what I'm talking about. The first screenshot is using Invision which creates the unwanted padding, the 2nd is using Phpbb3 that shows it how I intended it to show up.



Thanks in advance!

Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: How to remove default padding in bbcode tables (in Invision version)?

Post by Cassius Dio on February 28th 2013, 6:40 am

Hi! Very Happy

Add to CSS Stylesheet:
Code:
.postbody table{
border-spacing: 0px !important;
}

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: How to remove default padding in bbcode tables (in Invision version)?

Post by Handyy on February 28th 2013, 6:48 am

Wow, that was a quick reply, thanks Smile

Although I tried that and it didn't make a difference. I used the default Invision skin and added that code to the CSS as an only entry to avoid any clashes with custom themes.

Any other ideas...?

Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: How to remove default padding in bbcode tables (in Invision version)?

Post by Handyy on February 28th 2013, 8:52 am

Found the solution! With lots of trial and error, but finally found the right code that takes padding and borders away:

Code:
table.posting-table td {
   padding: 0px;
   border: 0px;
   border-collapse: collapse;
   }

Thanks for the help anyways!

Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: How to remove default padding in bbcode tables (in Invision version)?

Post by Sanket on February 28th 2013, 9:20 am

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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