I’ve created a very basic web page that has an image displayed on the screen. However I was wondering why is the alignment different when deployed to Gitlab pages and how can I resolve this?
Locally:
Deployed version on Gitlab:
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="GitLab Pages">
<title>Title</title>
<link rel="stylesheet" href="style.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</head>
<body style="background-color: #edeccc;">
<div class="container" style="padding-top: 20px; text-align: center;">
<p>
<img src="image3.jpg" style="max-width: 1400px; width:90%;"></img>
</p>
</div>
</body>
</html>