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.

table border=0 not working

3 posters

Go down

Solved table border=0 not working

Post by Handyy October 1st 2009, 5:44 pm

Hello,

I just changed my forum theme to Invision Pro. Otherwise it looks and works great, but all my tables I have created to different posts appear with standard borders, even though I've set the code for "[table border=0]".

Is there any way to change this, probably something to do with the CSS? I only have basic CSS so there is nothing to change. But would be awesome to get a fix for this!

Thanks in advance.
avatar
Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: table border=0 not working

Post by Black star October 1st 2009, 6:07 pm

ok try to add qoutaion marks on the code to be
Code:
<table border="0">
and not
Code:
<table border =0>
table border=0 not working Icon_cool
Black star
Black star
Forumember

Female Posts : 46
Reputation : 0
Language : Arabic - English
Location : Iq

http://iraq.super-forum.net/

Back to top Go down

Solved Re: table border=0 not working

Post by Handyy October 1st 2009, 6:16 pm

That doesn't seem to do any difference.

But as I was testing, I noticed that the border=0 is actually not the standard, but 1px border. Border=1 creates the "standard" border.

Here's a table with 0 border on this forum with 2 columns. Works like it should. I wonder what's the problem with Invision Pro theme?

col 1col 2
avatar
Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: table border=0 not working

Post by RoNo October 1st 2009, 6:19 pm

Add style attributes to your td tags
Code:
[table][tr][td style="border-style: solid; border-width: 0px;"]Content[/td][/tr][/table]

Html
Code:
<table>
<tr>
<td style="border-style: solid; border-width: 0px;">Content</td>
</tr>
</table>
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: table border=0 not working

Post by Handyy October 1st 2009, 6:53 pm

Thanks for the answer. I was hoping though there would be some sort of CSS code, since that TD style will add a lot of extra code for a relatively big table...
avatar
Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: table border=0 not working

Post by RoNo October 1st 2009, 7:09 pm

Try adding the code to "table" to remove a large table border
Code:
<table style="border-style: none">
<tr>
<td>Content</td>
</tr>
</table>
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: table border=0 not working

Post by Handyy October 1st 2009, 7:25 pm

RoNo wrote:Try adding the code to "table" to remove a large table border
It seems to be working only in the TD...
avatar
Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: table border=0 not working

Post by Guest October 1st 2009, 7:35 pm

Handyy wrote:That doesn't seem to do any difference.

But as I was testing, I noticed that the border=0 is actually not the standard, but 1px border. Border=1 creates the "standard" border.

Here's a table with 0 border on this forum with 2 columns. Works like it should. I wonder what's the problem with Invision Pro theme?

col 1col 2
There are numerous bugs in the BBCode on forumotion boards. phpBB2/phpBB3 boards have trouble with list and video BBCode tags. Invision boards have trouble with table BBCode tags. (PunBB is such a buggy program that I don't even care about it.)

The solution to your problem is to use HTML, not BBCode, to create your tables. Here's your example done in HTML. Try it on your board, and I bet it works fine.
Code:
<table border="0"><tr><td>col 1</td><td>col 2</td></tr></table>
avatar
Guest
Guest


Back to top Go down

Solved Re: table border=0 not working

Post by RoNo October 1st 2009, 7:51 pm

Also... this Css to remove all borders will work with Html tables
Code:
<style type="text/css">


<!--
table { border: none }

td { border: none  }

th { border: none  }

-->


</style>

</head>

 

<body>

<table>

<tr><th>Header 1</th><th>Header 2</th><th>Header 3</th></tr>
<tr><td>Content</td><td>Content</td><td>Content</td></tr>

</table>
</body>

</html>
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: table border=0 not working

Post by Handyy October 1st 2009, 8:20 pm

Hey thanks, using HTML works perfectly! That's the easiest solution no doubt, works even without using that CSS code.
avatar
Handyy
Forumember

Posts : 32
Reputation : 0
Language : English

Back to top Go down

Solved Re: table border=0 not working

Post by RoNo October 1st 2009, 8:26 pm


Since the issue appears to be resolved, this topic is closed.

table border=0 not working Locked1table border=0 not working Lock2
RoNo
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Back to top

- Similar topics

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