Announcement

Collapse
No announcement yet.

left and right border image

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

  • [vB4] left and right border image

    I am testing an upgrade from 3.8 to 4.2 and tested the 3.8 update style tool, Quite a fair bit missing. Sadly the styler is no longer around.

    The style is now missing the left and right border images.

    In additional css of the old style I found this

    .leftBorder {
    background:#000 url(http://cdn.gamerzneeds.com/images/ps...er_left_bg.gif) repeat-y;
    vertical-align:top;
    width:40px;
    }

    .rightBorder {
    background:#000 url(http://cdn.gamerzneeds.com/images/ps...r_right_bg.gif) repeat-y;
    vertical-align:top;
    width:40px;
    }

    you can see what the left and right border images are meant to look like in 3.8 here http://www.gamerzneeds.net/forums/


    I tried putting that code in additional css in vb4 but it did nothing.

    Does anyone have any tips on how to do this?

    Thanks.
    Selling my BigBoard GamerzNeeds.net/forums Threads: 193 502, Posts: 1 540 045, Members: 718 566 It is listed here http://forums.digitalpoint.com/showt...3#post18297060


  • #2
    Super easy. I do the same thing with shadows.

    Open template: header

    At the top (above everything else), add this:
    HTML Code:
    <div class="leftBorder"><div class="rightBorder">
    Open template: navbar

    Find:
    HTML Code:
    <!-- closing div for above_body -->
    Add below: *
    HTML Code:
    </div></div><div class="leftBorder"><div class="rightBorder">
    Open template: footer

    Find:
    HTML Code:
    <!-- closing div for body_wrapper -->
    Add below: *
    HTML Code:
    </div></div><div class="leftBorder"><div class="rightBorder">
    At the very bottom (below everything else) add:
    HTML Code:
    </div></div>
    Open template: additional.css

    Add:
    Code:
    .leftBorder {
    background:#000 url(http://cdn.gamerzneeds.com/images/psp/misc/border_left_bg.gif) repeat-y left;
    padding-left: 40px;
    }
    
    
    .rightBorder {
    background:#000 url(http://cdn.gamerzneeds.com/images/psp/misc/border_right_bg.gif) repeat-y right;
    padding-right:40px;
    }
    You could technically just use two DIV's instead of breaking them up like I did, but I find this way is the most compatible and follows the flow of the native template sections. If you don't want them to be segmented, you can ignore anything I placed an asterisk (*) next to.
    - Maurice Workin' in the Jira mine, goin' down, down, down

    Comment


    • #3
      Thanks! At first I thought it didnt work, but then realised you changed the additional css as well. Works great. That makes the style look so much better already. Thanks heaps
      Last edited by hornstar6969; Fri 25th May '12, 3:36am.
      Selling my BigBoard GamerzNeeds.net/forums Threads: 193 502, Posts: 1 540 045, Members: 718 566 It is listed here http://forums.digitalpoint.com/showt...3#post18297060

      Comment


      • #4
        I had modified your two CSS rules. Make sure you use my new ones are remove your old ones.
        - Maurice Workin' in the Jira mine, goin' down, down, down

        Comment

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