Center video thumbnails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ABDUR7MAAN
    Senior Member
    • Sep 2013
    • 139
    • 5.3.x

    [Site Builder] Center video thumbnails

    good morning ...
    I have a problem which is to center the thumbnails of the video turned centered by the code center and did not work and tried by the method did not work also is there a solution to this problem:
    Click image for larger version

Name:	3243244242.PNG
Views:	137
Size:	164.5 KB
ID:	4393358
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73976

    #2
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • ABDUR7MAAN
      Senior Member
      • Sep 2013
      • 139
      • 5.3.x

      #3
      The solution to the problem is to modify the following code in the template (css_global.css) :
      Code:
      .[COLOR=#008000]linkcontainer .videocontainer .videothumbnail,
      .post-content .videocontainer .videothumbnail,
      .OLD__post-content .videocontainer .videothumbnail {
          margin-{vb:stylevar right}:15px;
          margin-bottom:15px;
          border:1px solid {vb:stylevar slideshow_image_background.backgroundColor};
          background: {vb:stylevar slideshow_image_background};
          width:300px;
          height:225px;
          float:{vb:stylevar left};
          position:relative;[/COLOR]
      }
      Beginning with line 2318 to 2327
      Replace it :
      Code:
      [COLOR=#FF8C00].linkcontainer .videocontainer .videothumbnail,
      .post-content .videocontainer .videothumbnail,
      .OLD__post-content .videocontainer .videothumbnail {
          margin:0px auto;
          border:1px solid {vb:stylevar slideshow_image_background.backgroundColor};
          background: {vb:stylevar slideshow_image_background};
          width:300px;
          height:225px;
          position:relative;[/COLOR]
      }

      Comment


      • In Omnibus
        In Omnibus commented
        Editing a comment
        vBulletin will never recommend anyone edit the default templates. Do so at your own risk.

      • Wayne Luke
        Wayne Luke commented
        Editing a comment
        Now it is probably broken on mobile devices but it is your site. I have to worry about fixes for thousands of websites that will be maintained through upgrades.

      • ABDUR7MAAN
        ABDUR7MAAN commented
        Editing a comment
        I do not force anyone to use the amendments but I find the solution myself better than I wait 10 years until the problem is considered
        On the whole the modification is compatible with mobile :

    Related Topics

    Collapse

    Working...