Announcement

Collapse
No announcement yet.

Table CSS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BirdOPrey5
    replied
    No reason I can think of why it wouldn't.

    Leave a comment:


  • SilverBoy
    replied
    Is this method still work on the last vb4 versions?

    Leave a comment:


  • thenamesgould
    replied
    The class option works like an absolute charm!!! Thanks so much - exactly what I was looking for.

    Leave a comment:


  • Riasat
    replied
    I am not aware of any way to assign certain css to certain tables. You can assign css to all tables using table.cms_table identifier.

    I have an idea which might work. Add a new bbcode called class

    tag: class
    replacement:
    Code:
    <span class="{option}">{param}</span>
    use option - YES
    remove if empty - YES
    all other - NO

    In additional css, post your custom css using
    .my_custom_table_class_name>table.cms_table


    Now when posting certain tables, use
    [class="my_custom_table_class_name"]
    <table goes here>
    [/class]

    Try it out and let me know if it works.


    EDIT: here is another way:

    Code:
    [noparse]
    [TABLE="class: custom_sports"]
    [TR]
    [TD]test
    [/TD]
    [/TR]
    [/TABLE]
    [/noparse]
    This table code will have this class: cms_table_custom_sports

    So you can just put your table css using table.cms_table_custom_sports
    Last edited by Riasat; Fri 14 Oct '11, 5:31am.

    Leave a comment:


  • BirdOPrey5
    replied
    If you view the source of your pages you will see tables have a class like cms_table_grid.

    You can edit your additional.css template and add additional css to it.

    This will make all tables made by the bbcode look however you set th CSS. There is no built in way to customize a specific table.

    Leave a comment:


  • thenamesgould
    started a topic [vB4] Table CSS

    Table CSS

    Hi there,

    Not sure if I'm posting this in the correct area, but the Table BB Code that is in the latest vBulletin - how do I go about altering the CSS for it? Can I assign a certain CSS to a certain table?

    I have an area of my site that has team listings from old sports events and would like these to look a certain way. The CSS is ready to go, I just need to know how to go about applying it to these particular tables.

    Is that possible? Or can anyone point me in the direction of how I can alter the appearance of an individual table? I can't seem to find anything anywhere about it!

    Thanks for any help.

Related Topics

Collapse

  • zanthor
    Tables Ignore Settings
    by zanthor
    Trying to arrange content in some posts using tables, and they ignore the alignment commands as well as the border commands. This image shows a table that I inserted with 500 width, 0 border and center...
    Thu 20 Feb '14, 10:34am
Working...
X