Announcement

Collapse
No announcement yet.

How to center forum

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

  • [Forum] How to center forum

    My forum has a fixed with. It's aligned to the left, how can I center it?

    Anyone who can give me a direction?
    Please vote for:
    - Lightbox for all uploads
    - Attachment permissions for unregistered users

  • #2
    If I recall, just set the right and left doc_margins to auto.

    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


    • #3
      ^ That didnt work for me

      I tried setting it to auto on both max/min and leaving the units box empty. but to no avail?

      Comment


      • #4
        I should have researched a bit more... found the solution

        1)set doc_width and doc_maxwidth same value , this is your custom width of forum
        2)doc_magin:
        Use the 'top' value for all sides :Yes
        Top:auto

        Comment


        • #5
          ^ Yes! Good man. Does the trick for me. *REP*

          Comment


          • #6
            Originally posted by TheOzSnowman View Post
            I should have researched a bit more... found the solution

            1)set doc_width and doc_maxwidth same value , this is your custom width of forum
            2)doc_magin:
            Use the 'top' value for all sides :Yes
            Top:auto
            Thanks this fixed it!

            Only the doc width and max docwidth don't have to be the same value.
            Please vote for:
            - Lightbox for all uploads
            - Attachment permissions for unregistered users

            Comment


            • #7
              doc_margin

              Right - auto
              Left - auto

              Nothing more.

              Comment


              • #8
                Excellent thank you this fixed mine as well

                Comment


                • #9
                  where i found doc_margins any photo ??

                  Comment


                  • #10
                    doc_margins is a stylevar - styles & templates > style manager > find your style > stylevars from the dropdown

                    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


                    • #11
                      Cool,thanks

                      Comment


                      • #12
                        Didn't work for me, must be my own problem.

                        Comment


                        • #13
                          I've done as above to center my forum, but when opening via internet explorer, if the window gets resized, some objects center, others remain in their original position
                          until you refresh the page, or click a link..

                          Its fine in Chrome. Is anybody else having this issue ?

                          Comment


                          • #14
                            I found that you have to set all values to Auto for this to work. So the option to set all values the same as top works as long as you put "auto" in the top field.

                            Hope that helps!

                            Comment

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