Get rid of gap between postbits

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdaniel
    Senior Member
    • Jun 2001
    • 571
    • 3.0.0 Release Candidate 4

    Get rid of gap between postbits

    I've been hunting for where to get rid of the gap between posts. See attached. Thanks for your help.
    Attached Files
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That gap is controlled by this setting:

    Admin CP -> Styles & Templates -> Style Manager -> All Style Options -> Table Cell Padding

    Comment

    • cdaniel
      Senior Member
      • Jun 2001
      • 571
      • 3.0.0 Release Candidate 4

      #3
      Hmmm, unfortunately that also removes cellpadding from other areas where I don't want it removed.

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Yes. Changing this behavior requires editing the templates. Go to your:

        Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates » -> postbit

        Find this code at the top and replace the red code with 0:

        Code:
        <!-- post #$post[postid] -->
        <if condition="$show['spacer']">
        	$spacer_open
        	<div style="padding:0px 0px [color=red]$stylevar[cellpadding][/color]px 0px">
        	<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>	
        </if>

        Comment

        • cdaniel
          Senior Member
          • Jun 2001
          • 571
          • 3.0.0 Release Candidate 4

          #5
          Beautiful! Worked perfectly. Thank you very much.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎