I am currently in the process of developing a simple version of a Content Management System (CMS). I have created a page that offers an HTML template, allowing users to insert their own text and image uploads to display on another screen.
The template functions correctly and stores the necessary data. However, my issue lies in the following:
When I send the template to its dedicated webpage to view it on a separate screen (such as a computer, TV, or phone), the entire page only appears on the left half of the screen, perfectly split down the middle regardless of the device.
I have attempted to remove all external CSS and scripts for troubleshooting purposes, but this action does not resolve the problem. The only change made is the removal of the global navigation menu present on other pages, as I desire this specific webpage (utilizing Bootstrap 4 grid) to occupy the full screen
Screenshot while templating: https://i.sstatic.net/I1IFr.png
Live preview: https://i.sstatic.net/CkpIg.png
My goal is for the body of the page to span the entirety of the viewport on any given device. Despite my efforts, it continues to display as only half the screen's width which appears rather perplexing. Do you notice an obvious mistake that could be causing this issue?
<!DOCTYPE html>
<html>
<head>
<title>Template One</title>
<style type="text/css">
html,
body {
height: 100vh;
width: 100vh;
}
.my-container {
display: flex;
flex-direction: column;
height: 100vh;
width:100vh;
}
.my-container>.top [class^="col-"],
.my-container>.bottom [class^="col-"] {
background-color: #929292 ;
color: white;
text-align: center;
}
.my-container>.middle {
flex-grow: 1;
padding:30px;
background-image: url('images/bg6.jpg');
background-size: cover;
}
.my-container>.middle>* {
}
#clock{
font-family: sans-serif;
font-size:40px;
text-shadow:0px 0px 1px #fff;
color:#fff;
}
#clock span {
color:#fff;
font-size:40px;
position:relative;
}
#date {
margin-top: -10px;
letter-spacing:3px;
font-size:20px;
font-family:arial,sans-serif;
color:#fff;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.css" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fb9c92919c94bbcad5c2d5cd">[email protected]</a>/css/gijgo.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://npmcdn.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dfabbaabb7baad9feef1edf1eb">[email protected]</a>/dist/js/tether.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c3a4aaa9a4ac83f2edfaedf5">[email protected]</a>/js/gijgo.min.js"></script>
<script type='text/javascript' src='//cdn.jsdelivr.net/jquery.marquee/1.4.0/jquery.marquee.min.js'></script>
</head>
<body onload="startTime()">
<!-- Container -->
<div class="container-fluid my-container">
<!-- Top Row -->
<div class="row top">
<div class="col-lg-12">
<div class="row">
<div class="col-lg-3">
<img style="height: 100px;width: 250px;" src="/images/img.svg">
</div>
<div class="col-lg-6">
<a class="weatherwidget-io" href="https://forecast7.com/en/35d16n84d88/?unit=us" data-label_1="" data-label_2="WEATHER" data-days="3" data-theme="original" data-basecolor="" > WEATHER</a>
</div>
<div class="col-lg-3 align-self-center">
<div id="clockdate">
<div class="clockdate-wrapper">
<div id="clock"></div>
<div id="date"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Middle Row -->
<div class="row middle">
<div class="col-lg-6" >
<div style="background-color: white; height: 100%;"><p>Left</p></div>
</div>
<div class="col-lg-6" >
<div style="background-color: white; height: 100%"><p>Right</p></div>
</div>
</div>
<!-- Bottom row -->
<div class="row bottom">
<div class="col-lg-12">
<div class="marquee"><h2>This is a test</h2></div>
</div>
</div>
<!-- end container -->
</div>
</body>
</html>