Announcement

Collapse
No announcement yet.

Attachment border in Postbit

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

  • Attachment border in Postbit

    Going crazy attempting to change the border around attachments in the legacy postbit..

    hilp!
    Attached Files

  • #2
    That is a fieldset... Double check you have these code:
    Code:
    			<if condition="$show['thumbnailattachment']">
    				<fieldset class="fieldset">
    					<legend>$vbphrase[attached_thumbnails]</legend>
    					<div style="padding:$stylevar[formspacer]px">
    					$post[thumbnailattachments]
    					</div>
    				</fieldset>
    			</if>
    		
    			<if condition="$show['imageattachment']">
    				<fieldset class="fieldset">
    					<legend>$vbphrase[attached_images]</legend>
    					<div style="padding:$stylevar[formspacer]px">
    					$post[imageattachments]
    					</div>
    				</fieldset>
    			</if>
    			
    			<if condition="$show['imageattachmentlink']">
    				<fieldset class="fieldset">
    					<legend>$vbphrase[attached_images]</legend>
    					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    					$post[imageattachmentlinks]
    					</table>
    					</fieldset>
    			</if>
    			
    			<if condition="$show['otherattachment']">
    				<fieldset class="fieldset">
    					<legend>$vbphrase[attached_files]</legend>
    					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    					$post[otherattachments]
    					</table>
    				</fieldset>
    			</if>
    			
    			<if condition="$show['moderatedattachment']">
    				<fieldset class="fieldset">
    					<legend>$vbphrase[attachments_pending_approval]</legend>
    					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    					$post[moderatedattachments]
    					</table>
    				</fieldset>		
    			</if>
    in your postbit_legacy template.
    Best Regards,
    Andy Huang

    Comment


    • #3
      That I do Sir..verbatim.

      And to clarify, I would like to change the color of the border. I see the fieldset defined in the CSS, but no mention of border color....?
      Last edited by John_770; Sat 10 Mar '07, 2:34am.

      Comment


      • #4
        The css definition for fieldset border is the same as any other border-allowed component in css. You can either choose to edit the template manually, and make <fieldset> tags say:
        Code:
        <fieldset style="border: 1px solid green">
        or edit it globally (for ALL fieldsets) via Admin CP > Style Manager > Main CSS (edit at the very last big text area on that page) by adding something like:
        Code:
        fieldset { border: 1px solid green; }
        Please note, I've used 1px solid green as an example, you can use anything you want for that following the css border guidelines.
        Best Regards,
        Andy Huang

        Comment


        • #5
          hmmm..weird stuff with fieldsets - my pea brain can't decipher it.

          With the default, no modifications to CSS VB template, the fieldsets are 'rounded' utilizing two colors (as in attachment below).

          When adding the global fieldset { border: 1px solid green; } the borders are no longer rounded - the're 1px wide with said color.

          If I delete solid from the code, said color appears on the right and bottom of the table, and another color (don't know where it's coming from) on the top and left sides of the table.

          Regardless, my question is this: The attachment below is a cut from the default VB template with no addtl CSS input and only thing defined in legends is the font color (black). Where is fieldset pulling the 2 colors used in the border from?
          Attached Files

          Comment


          • #6
            Bump for an unanswered question (#5)

            Comment


            • #7
              Sorry, I was away yesterday.
              I believe the other color is automatically selected by the browser based on the defined color and the background color...

              You can try: 1px inset #color

              IE: style="1px inset #336699;" or fieldset { border: 1px inset #336699; }

              to see if that does achieve the effect you want... it is worth while noting that the rounded border thing is only appearing in Internet Explorer because its rendering engine does that on its own; on other browsers, it doesn't get curved, and is fairly ridget.
              Best Regards,
              Andy Huang

              Comment


              • #8
                Thanks for the response Andy..certainly no need for apologies.

                Inset creates the same effect as border - 1px square box vs a 2px rounded corner box..in IE anyway.

                Seems that if you further define the fieldset it throws it out of whack...not a coding guru myself - obviously. No big deal..perhaps the answer is out there somewhere - don't want to beat the dead horse any more than it has to.

                Interesting about the IE engine - never realized that. Suppose I should start testing the site in other browsers as well..bah!

                Comment

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