Skip to content

Commit 14f636f

Browse files
committed
Fixed Few Things And Added Creators.php for Mobile!
1 parent 0605cc6 commit 14f636f

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

creators.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
$randindex = rand (0,count($videos)-1);
1515
?>
1616

17-
<h1><?php echo $videos[$randindex][1]; ?> </h1><br /><br />
17+
<h1 class="videos_title"><?php echo $videos[$randindex][1]; ?> </h1><br /><br />
1818
<p>
1919

2020
<?php
21-
echo "<iframe class=\"video\" width=\"820\" height=\"630\" align=\"left\" src=\"https://www.youtube.com/embed/".$videos[$randindex][0]."\" frameborder=\"0\" allowfullscreen=\"\"></iframe>";
21+
echo "<iframe class=\"video\" align=\"left\" src=\"https://www.youtube.com/embed/".$videos[$randindex][0]."\" frameborder=\"0\" allowfullscreen=\"\"></iframe>";
2222
?>
2323

2424
<?php echo "<br><span class=\"videos_text\">" .$videos[$randindex][2] . "</span>"; ?>

css/stile.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ a:hover {
7777
margin-right:30px;
7878
padding-bottom: 50px;
7979
position: relative;
80+
width: 820px;
81+
height: 630px;
8082
}
8183
.mobile_bottom {
8284
display: none;
@@ -150,7 +152,7 @@ a:hover {
150152

151153
@media screen and (min-device-width: 930px) and (max-device-width: 1500px) {
152154
.video {
153-
padding-right: 100%;
155+
width: 100%;
154156
}
155157
}
156158
@media screen and (min-device-width: 190px) and (max-device-width: 930px) {
@@ -193,6 +195,13 @@ a:hover {
193195
width: 100%;
194196
padding-right: 20px;
195197
}
198+
.video {
199+
width: 100%;
200+
height: auto;
201+
}
202+
.videos_text, .videos_title {
203+
color: white;
204+
}
196205

197206
/* IDs */
198207

0 commit comments

Comments
 (0)