Jelajahi Sumber

Working on css positioning of the name box

allens 6 hari lalu
induk
melakukan
05a4aae56a
1 mengubah file dengan 13 tambahan dan 2 penghapusan
  1. 13 2
      ownchatbot/templates/rmilestone.html

+ 13 - 2
ownchatbot/templates/rmilestone.html

@@ -10,19 +10,30 @@ the alert is displayed for ten seconds. -->
         body {
             background-color: transparent;
             position: relative; /* Ensure relative positioning for absolute children */
+            width: 300;
+            margin: 0 auto; 
+            text-align: center; 
+        }
+        
+        img {
+            margin: 0 auto;
+        }
+        
+        video {
+            margin: 0 auto;
         }
 
         #alertVid {
             display: none;
             max-height: 100px;
-            position: absolute; /* Allow positioning with top, left, etc. */
+            position: relative;
             z-index: 1; /* Ensure it's below nameBox */
         }
 
         #alertImg {
             display: none;
             max-height: 100px;
-            position: absolute; /* Allow positioning */
+            position: relative;
             z-index: 1; /* Ensure it's below nameBox */
         }