Forum Discussion

JustinBannister's avatar
JustinBannister
Contributor
12 years ago

I'm having issues styling the Board Page's tables that are automatically generated.

The page is generating this with a table inside:

 
<div class="thread-list"></div>
 

I've given the table name <div id="topic-table"></div> and I'm directly targeting topic-table but css is not applying.

6 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    12 years ago

    Hi Justin,

     

    I am not sure what do you mean by "given the table name <div id="topic-table"></div>" but my suggestion in these cases is to use tools such as the Chrome Developer Tools and inspect on the page the element which you have styled. By doing so - most of the times, you will find that your CSS rule is included in the page, but it has been overridden by another one. In that case, you can change your own CSS rule so that it takes precedence - worst case scenario you may have to use an !important directive to see it applied (although I would use that as a last resort)

     

    Hope this helps!

     

  • nathan's avatar
    nathan
    Executive
    12 years ago

    To add to what Paolo said, if you have defined a CSS rule within the skin but it doesn't seem to be having any effect, it may be the the rule isn't specific enough (in which case, your rule will get overridden by an in-built Lithium rule).

  • JustinBannister's avatar
    JustinBannister
    Contributor
    12 years ago

    That's not even working in this case, with the important aspect of it. 

     

    I'm going to this class ia-list-row in the row, but it's not doing anything at all with my min-height and padding.

     

    <tr class="lia-list-row lia-row-odd lia-js-data-messageUid-2852015 lia-js-data-messageRevision-1 t-first"><td colspan="1" rowspan="1" class="messageStatusIconColumn lia-data-cell-tertiary lia-data-cell-icon">

  • JustinBannister's avatar
    JustinBannister
    Contributor
    12 years ago

    Well I've added an id to the div in question to target it exactly and it's not even accepting the css.

  • AdamN's avatar
    AdamN
    Khoros Oracle
    12 years ago

    Hi Justin,

     

    Would it be possible for you to share an example of the CSS rule you're trying to use? That might help us more easily identify where the issue might be.

  • JustinBannister's avatar
    JustinBannister
    Contributor
    12 years ago
    Totally forgot about this. I got some help elsewhere, but thanks for all of the suggestions guys.