I've been putting together a landing page for a website project and stumbled upon an amazing template online. After loading everything up and ensuring that the file links were set correctly, I decided to double click on the HTML file within my views folder. To my delight, everything loaded perfectly with all the CSS and JS elements working flawlessly. However, the real issue arises when I start the brick server and try to run it from localhost as the actual landing page - suddenly, everything appears skewed and oddly proportioned.
Most of the files that are being loaded come from external sources rather than locally, except for two files which are referenced directly from my local directory. Below is a snippet of the code extracted directly from my file.
Here is the landing page template I am attempting to implement: .
Below is the code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Grayscale - Free One Page Theme for Bootstrap 3</title>
<!-- Bootstrap Core CSS -->
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<!-- Fonts -->
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<!-- Custom Theme CSS -->
<link href="../../assets/stylesheets/grayscale.css" rel="stylesheet">
</head>
... (omitted for brevity)
<div id="map"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCRngKslUGJTlibkQ3FkfTxj3Xss1UlZDA&sensor=false"></script>
<script src="../../assets/javascripts/grayscale.js"></script>
My main concern revolves around what could be going wrong here. Could it be an issue with how Bootstrap is being executed? Are there any conflicting files causing this discrepancy between running it through a server versus just opening the file directly? I'm quite baffled by this situation, but I have a hunch that it might boil down to something relatively simple.
If you require access to the files I'm utilizing, they can be downloaded from the provided link on the Bootstrap site.