-
1 Attachment(s)
Optimise table
Hi,
i have a test-page with the table-tag:
http://regio-portal.wiki/wiki/Testseite#Testbereich
Three questions:
- How to set the border = 0, that there is no border around the table?
- How can i set the table-options that the content begins at the top of the cell?
- Is it possible to have the border-line between the cells?
Attachment 1477
-
You can use CSS styles on the table to set the border.
You can also use CSS styles on each cell to set internal borders.
If you're not sure how to add the styles, there's an example here: https://www.vaultwiki.org/pages/spec...codelist#table
-
I have the html-code for a cell:
HTML Code:
<td valign="top">
Code from wiki-codes:
HTML Code:
[table] border="1"
|-
| class="tcat" colspan="2" | Example Header
|-
| style="font-style: italic" | Example Data 1
| Example Data 2
|-
[/table]
Where to set the cell-styles?
-
Sorry, but it is not easy for non-programmers :-(
-
In the example, the style="font-style: italic" is a cell style.
-
And set the text to the top of the cell would be:
HTML Code:
style="text-style: top"
?
-
-
HTML Code:
[table] border="0"
isn't working...
-
Short question:
Would it work with an extended editor like here: https://xenforo.com/community/resour...-bbcodes.1881/ ?
Because my members are even less well versed in html and css than me...
-
"border" is not a valid HTML 5 attribute. It only works in vBulletin, only non-wiki pages, because vBulletin uses XHTML 1.0 Transitional, not HTML 5. XenForo uses HTML 5.
You need style="border: none"
Depending on your forum CSS, what kind of context the table is in, etc, you might need to apply this to every cell. It all depends on your forum styles.
It might be easier to invent a CSS class, add it to the TABLE whitelist, and use that class for the table.
Sure, you are welcome to use a different TABLE BB-Code if you think it might be easier.