Announcement

Collapse
No announcement yet.

Replace Default Gray icon Video Play button with YouTube icon using CSS

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

  • Font Size
    #1

    Replace Default Gray icon Video Play button with YouTube icon using CSS

    Click image for larger version  Name:	image_682.png Views:	78 Size:	10.4 KB ID:	2305
    add this to css_additional.css
    Code:
    /*--START Replace Default Gray Video Play button with YouTube-like icon --*/
    .videothumbnail .videothumbnailoverlay {
    width: 50px;
    height: 36px;
    border-radius: 13px;
    border: solid 1px #f00;
    background-image: none;
    background-color: #f00;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -26px;
    margin-top: -18px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    }
    
    .videothumbnailoverlay:before {
    content: '';
    display: block;
    position: absolute;
    left: 20px;
    top: 11px;
    height: 0;
    width: 0;
    border-top: solid 6px transparent;
    border-left: solid 5px #333;
    border-bottom: solid 8px transparent;
    border-left: solid 14px #fff;
    }
    
    .videothumbnail .videothumbnailoverlay:hover,
    .videothumbnail:hover .videothumbnailoverlay {
    background-image: none;
    border-color: #e60000;
    background-color: #e60000;
    }
    /*--END Replace Default Gray Video Play button with YouTube-like icon --*/
    enjoy!
    Credit to glennrocksvb from https://vbmods.rocks/forum/vbulletin...using-pure-css
    Last edited by danielmorashov; 21.03.22, 14:11.
    visit my site :
    UNK - Content Channel Community
    Similar Threads

  • Font Size
    #2
    It worked perfectly. Thanks. 👏👍
    Attached Files

    Comment

    X

    Thread Information

    Collapse

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

      Those who read this thread

      Collapse

      Working...
      X

      AdBlock Detected

      Please Disable Adblock

      Please consider supporting us by disabling the ad blocker.

      I've Disabled AdBlock