XF 2.2 Xenforo standard css layout classes

FoxSecrets

Active member
I'm building a html table for my add-on, and i'd like to know if there is some standard css layout for it such as the code below for 'divs':

Code:
<div class="block-container">
    <div class="block-body">
      <div class="block-row">

Something similar for table? Where can I find a list of available css classes from Xenforo?

Code:
<table>
    <thead>
      <tr>
        <th>
 
For tables, you can use the following:
HTML:
<xf:datalist>
    <xf:datarow>
        <xf:cell></xf:cell>
        <xf:cell></xf:cell>
        <xf:cell></xf:cell>
    </xf:datarow>
</xf:datalist>

datalist = table tag
datarow = tr tag
cell = td tag

You can use the rowtype and rowclass attributes on the <xf:datarow> to style the table even further.

HTML:
<xf:datarow rowtype="current">
    
<xf:datarow rowtype="header">
    
<xf:datarow rowtype="subheading">
    
<xf:datarow rowclass="your-css-class">
 
Last edited:
Back
Top Bottom