Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Tekst na tle video
Naryu
post 15.12.2017, 00:17:01
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 15.12.2017

Ostrzeżenie: (0%)
-----


Witam chciałbym umieścić tekst na tle video lecz gdy próbuję to zrobić tekst jest pod video, proszę o pomoc.
Kod:
  1. <meta charset="UTF-8">
  2. <title>strona</title>
  3. body{ margin:0px; background:#000; }
  4. #bg_container{ height:720px; overflow:hidden; }
  5. #bg{ width:100%; }
  6. </head>
  7. <div id="bg_container">
  8. <video id="bg" src="vids/vid1080.mp4" autoplay="true" loop="true"></video>
  9. </div>
  10. </body>
  11. </html>
Go to the top of the page
+Quote Post
StrefaPi
post 15.12.2017, 03:13:04
Post #2





Grupa: Zarejestrowani
Postów: 232
Pomógł: 50
Dołączył: 2.03.2013

Ostrzeżenie: (0%)
-----


A gdzie jest ten tekst?


--------------------
https://studiostawki.com - studio fotograficzne i filmowe - ul. Inflancka 11, Warszawa
Go to the top of the page
+Quote Post
Naryu
post 18.12.2017, 19:03:02
Post #3





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 15.12.2017

Ostrzeżenie: (0%)
-----


Cytat(StrefaPi @ 15.12.2017, 03:13:04 ) *
A gdzie jest ten tekst?


Pełny kod
  1. <meta charset="UTF-8">
  2. <title>Strona</title>
  3. body{ margin:0px; background:#000; }
  4. #bg_container{ height:720px; overflow:hidden; }
  5. #bg{ width:100%; }
  6. #content{ position:absolute; top:0px; padding:30px; color:#FFF; text-shadow:#000 2px 2px; }
  7. </head>
  8. <div id="bg_container">
  9. <video id="bg" src="vids/page_bg.mp4" autoplay="true" loop="true"></video>
  10. </div>
  11. <div id="content">
  12. <h1>Tekst</h1>
  13. </div>
  14. </body>
  15. </html>


Tutaj akurat tekst się wyświetla ale nie mogę go wyśrodkować :/

Można zamknąć, problem rozwiązany.

Ten post edytował Naryu 15.12.2017, 04:16:24
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.03.2024 - 07:15