Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
I want to add a floating text on a video in case of full screen

I added a text on a video in normal case and it works fine but in full screen case the text disappeared i tried :

<div class="homepage-video">
'.$OUTPUT->box($content, "generalbox center clearfix").'
<div class="text-over-video">
  <h1>id: '.$USER->id.'</h1>
</div>
</div>

the style :

<style>
.homepage-video, .homepage-video video {
    position: relative;
  }
  .homepage-video video {
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: 50% !important;
  }
  
  .text-over-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    z-index: 1;
  }
</style>

any ideas to appear this text also in full screen

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You should try to look here, and use a video tag. Otherwise I think it will be complicated to add text on fullscreen..

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!