How to make numbered rows inside a table BCCode
+2
Sanket
jawa
6 posters
Page 1 of 1
How to make numbered rows inside a table BCCode
Hi I am interested in posting a table on my forums... it is in BBCode. But I would like to make the rows numbered, so that if i add another row, it will automatically give it the correct number.
ex:
^ i put the number in their manually to show what i want.. how can i do this so it automatically numbers my rows?
ex:
# | score | name |
1. | la | blahblah1 |
2. | la | blahblah2 |
^ i put the number in their manually to show what i want.. how can i do this so it automatically numbers my rows?
jawa- New Member
- Posts : 3
Reputation : 0
Language : english
Re: How to make numbered rows inside a table BCCode
I doubt if there is an automatic way of doing it.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: How to make numbered rows inside a table BCCode
As Sanket stated above, I don't believe that there is any way to have the numbers appear automatically with each [tr]. The only way is to just add '1.' in each column. Or, maybe the [list=1] would work for that.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: How to make numbered rows inside a table BCCode
I tried fitting [LIST] in there, but it seems that list wont go through table rows, and if you put it outside the table rows, the list get sposted outside the table itself.... Unless yall know of a way to fit it in there :3 I'm a noob in coding
jawa- New Member
- Posts : 3
Reputation : 0
Language : english
Re: How to make numbered rows inside a table BCCode
Well, if the [*] list won't work, then I guess there's no other way but to just list numbers manually.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: How to make numbered rows inside a table BCCode
Hello,
This works but only on google chrome and safari :
On firefox, opera and internet explorer I don't thinks there is a way.
Cordially.
This works but only on google chrome and safari :
- Code:
[list=1][table border=1]
[tr]
[td][*]case[/td][td]case[/td]
[/tr]
[tr]
[td][*]case[/td][td]case[/td]
[/tr]
[tr]
[td][*]case[/td][td]case[/td]
[/tr]
[/table][/list]
- case
- case
- case
case | |
case | |
case |
On firefox, opera and internet explorer I don't thinks there is a way.
Cordially.
Re: How to make numbered rows inside a table BCCode
thank you :O too bad it doesn't work on everything
jawa- New Member
- Posts : 3
Reputation : 0
Language : english
Re: How to make numbered rows inside a table BCCode
Oh man. I know how to do it in HTML, but not in BB code.
CharleX- Forumember
- Posts : 492
Reputation : 0
Language : English and Korean
Location : On The Comp
Re: How to make numbered rows inside a table BCCode
Hello,
You can use the following code for that.
But it won't make table rows that produce number automatically
Out put...
You can use the following code for that.
But it won't make table rows that produce number automatically
- Code:
[list=1]
[*]blah blah blah...list1
[*]blah blah blah...list2
[*]blah blah blah...list3
[/list]
Out put...
- blah blah blah...list1
- blah blah blah...list2
- blah blah blah...list3
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: How to make numbered rows inside a table BCCode
If you add in your CSS style sheet ( AP > Display > Colors > CSS Stylesheet ) :
Cordially.
- Code:
table.numbered { counter-reset: line-number; } table.numbered td:first-child:before { content: counter(line-number) "."; counter-increment: line-number; padding-right: 0.3em; }
- Code:
[table class="numbered"]
[tr][td][/td][td]cell 1[/td][td]cell 2[/td][/tr]
[tr][td][/td][td]cell 1[/td][td]cell 2[/td][/tr]
[/table]
Cordially.
Similar topics
» Translucent Table Rows
» Code for adding pictures to the Table Rows?
» instead of color table rows to insert a picture?
» Split 2 Table Inside Topics !!
» How to make the forum rows smaller?
» Code for adding pictures to the Table Rows?
» instead of color table rows to insert a picture?
» Split 2 Table Inside Topics !!
» How to make the forum rows smaller?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum