Sidebar Blocks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RobDog888
    Senior Member
    • Apr 2007
    • 115
    • 4.2.X

    [vB4] Sidebar Blocks

    How can I add vertical padding/spacing between them? I figured there may be a stylevar for sodebar block footer but sadly no.

    Thanks
    Jedi Software Developer
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    From my CSS cheatsheet, add to additional.css:
    HTML Code:
    /* Put spaces between blocks on forumhome page */
    #sidebar_container .underblock {background: none; height: 10px;}
    #sidebar_container > ul {
        -moz-border-radius:0px;
        -webkit-border-radius:: 0px;
        -moz-box-shadow: none;
        background-color:transparent;
        border:0px;
    }
    #sidebar_container .block {
        background-color:{vb:stylevar forum_sidebar_background.backgroundColor};
        border:{vb:stylevar forum_sidebar_border}; 
        -moz-border-radius:{vb:stylevar border_radius}; 
        -webkit-border-radius: {vb:stylevar border_radius}; 
        -moz-box-shadow:-2px 2px 2px {vb:stylevar shadow_color}; 
    }

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    • RobDog888
      Senior Member
      • Apr 2007
      • 115
      • 4.2.X

      #3
      Thank You Lynn!

      I'll search for your cheat sheet to see what else you have in there.
      Jedi Software Developer

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        It's not a published cheatsheet. I have several pages of stuff with notes when I help on the forums and one of the pages is full of CSS I've written for users before.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools <- awesome site for html/css help

        Comment

        • RobDog888
          Senior Member
          • Apr 2007
          • 115
          • 4.2.X

          #5
          Ohhhh sounds like an upcoming css tips and tricks article?
          Jedi Software Developer

          Comment

          • Noctavia
            Senior Member
            • May 2006
            • 346

            #6
            What code would I need to put the same spacer between the blocks on the user's profile page?
            Last edited by Noctavia; Tue 1 Jun '10, 12:23am.

            Comment

            • Lynne
              Former vBulletin Support
              • Oct 2004
              • 26255

              #7
              Try this (may need some adjusting):
              HTML Code:
              /* Put spaces between blocks on member page */
              #profile_tabs {background: none;}
              #profile_tabs .underblock {background: none;}
              #profile_tabs.member_summary {-moz-border-radius: 0; -moz-box-shadow: none; border: 0;}
              #profile_tabs .block {
                  background-color:{vb:stylevar profile_sidebar_background.backgroundColor};
                  border:{vb:stylevar profile_sidebar_border}; 
                  -moz-border-radius:{vb:stylevar border_radius}; 
                  -webkit-border-radius: {vb:stylevar border_radius}; 
                  -moz-box-shadow:-2px 2px 2px {vb:stylevar shadow_color}; 
              }

              Please don't PM or VM me for support - I only help out in the threads.
              vBulletin Manual & vBulletin 4.0 Code Documentation (API)
              Want help modifying your vbulletin forum? Head on over to vbulletin.org
              If I post CSS and you don't know where it goes, throw it into the additional.css template.

              W3Schools <- awesome site for html/css help

              Comment

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