No announcement yet.

How to Add Right Border Selectively

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Add Right Border Selectively

    I would like to add a right border to a table but not to elements above/below that table. In the attached picture, the right red line is where I'd like to add a border. Thanks in advance.
    Attached Files

  • #2
    It looks like you have modified your templates to separate the category tables, so you should be able to edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level1_nopost

    Add the red code. Your code may look slightly difference because your style is customized, but it should be at least similar:

    <br />
    <table [color=red]<if condition="$forum[forumid] == [color=blue]X[/color]">style="border-right: [color=blue]5[/color]px solid [color=blue]#123456[/color];"</if>[/color] class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    			<if condition="$childforumbits">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
    			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
    			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
    			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    <if condition="$childforumbits">
    <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
    Where X is the forumid of the crowdSPRING Community category.


    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.