This is a picture –> http://prntscr.com/mp0lj8
After that world image i have empty white space..I dont know what is the problem.
Can any Django user tell me were i went wrong
This is html code in base template with load static and {% block content %} inside of it
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{% static 'seo_marketing/main.css' %}">>
{% if title %}
<title>Web Marketing Site - {{ title }}</title>
{% else %}
<title>Home Page</title>
{% endif %}
</head>
<body id="body">
<header class="site-header">
<nav class="navbar navbar-expand-md navbar-light bg-steel fixed-top">
<div class="w-75 container-fluid">
<a class="logo nav-link" href="{% url 'index-page' %}">Web Marketing Services</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggle" aria-controls="navbarToggle" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarToggle">
<div class="navbar-nav mr-auto">
</div>
<!-- Navbar Right Side -->
<div class="navbar-nav">
<a class="nav-item nav-link" style="color:#f3f3f3;" href="{% url 'index-page' %}">Home</a>
<a class="nav-item nav-link" style="color:#f3f3f3;" href="#">About Us</a>
<a class="nav-item nav-link" style="color:#f3f3f3;" href="#">Services</a>
<a class="nav-item nav-link" style="color:#f3f3f3;" href="#">Portfolio</a>
<a class="nav-item nav-link" style="color:#f3f3f3;" href="#">Blog</a>
<a class="nav-item nav-link" style="color:#f3f3f3;" href="#">Contact</a>
</div>
</div>
</div>
</nav>
</header>
<div class="container-fluid">
{% block content %}{% endblock %}
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>
This is index_view that represents first home page that you see in printscreen link that i posted
{% extends "seo_marketing/base.html" %}
{% block content %}
<div class="container-fluid wrapper">
<div class="w-75 container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9 col-xl-6">
<h2 class="title">SERVING MOVING COMPANIES WITH MODERN SOLUTIONS IN THE ONLINE ENVIRONMENT</h2>
<div class="row">
<div class="col">
<div class="card" style="width:350px">
<img class="card-img-top" src="" alt="Card image">
<div class="card-body">
<h5 class="card-title text-center">Search Engine Optimization</h5>
<h5 class="card-text text-center">(SEO)</h5>
</div>
<a href="#" class="btn btn-dark btn-lg btn-block">LEARN MORE</a>
</div>
</div>
<div class="col">
<div class="card" style="width:350px">
<img class="card-img-top" src="" alt="Card image">
<div class="card-body">
<h5 class="card-title text-center">Search Engine Optimization</h5>
<h5 class="card-text text-center">(SEO)</h5>
</div>
<a href="#" class="btn btn-dark btn-lg btn-block">LEARN MORE</a>
</div>
</div>
<div class="col">
<div class="card" style="width:350px">
<img class="card-img-top" src="" alt="Card image">
<div class="card-body">
<h5 class="card-title text-center">Search Engine Optimization</h5>
<h5 class="card-text text-center">(SEO)</h5>
</div>
<a href="#" class="btn btn-dark btn-lg btn-block">LEARN MORE</a>
</div>
</div>
<div class="col">
<div class="card" style="width:350px">
<img class="card-img-top" src="" alt="Card image">
<div class="card-body">
<h5 class="card-title text-center">Search Engine Optimization</h5>
<h5 class="card-text text-center">(SEO)</h5>
</div>
<a href="#" class="btn btn-dark btn-lg btn-block">LEARN MORE</a>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3 col-xl-6">
<form class="form">
<div class=" text-center">
<h2 class="form-headline">Free Digital Marketing</h2>
</div>
<div class="row form-inside">
<div class="col-xl-6">
<div class="form-group">
<label for="exampleInputEmail1">Name</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="Name" placeholder="Enter your name">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<!-- <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small> -->
</div>
<div class="form-group">
<label for="phone">Your Website (URL)</label>
<input type="url" class="form-control" id="phone" placeholder="https://example.com" name="url">
</div>
<div class="form-group">
<label for="phone">Phone number</label>
<input type="tel" class="form-control" id="phone" placeholder="Enter phone number">
</div>
</form>
</div>
<div class="col-xl-1 vl"></div>
<div class="col-xl-4 div-p">
<p>✔Your current Google rankings and market position</p>
<p>✔Insight into the technical performance and potential of your website</p>
<p>✔Your online footprint, including backlinks and company mentions</p>
<p>✔Review of your content quality and level of optimization</p>
<small>*Done specifically for the moving industry</small>
</div>
<div class="text-center container">
<button type="submit" class="btn btn-block button1"><h2 class="display-2 get-now">GET NOW</h2></button>
</div>
</div>
</div>
</div>
{% endblock content %}
CSS
body {
background: #f5f2f2;
}
.wrapper {
background: url('http://pavbca.com/walldb/original/5/2/e/48792.jpg');
margin-top: 32px;
padding: 100px;
}
.bg-steel {
background-color: #073d3d;
}
.nav-link, .nav-item, a {
color: white;
}
.title {
font-weight: 400;
font-size: 26px;
color: #073d3d;
}
.form-headline {
background: #073d3d;
color: #ffffff;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding: 8px;
}
.form {
border: 1px solid black;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.col {
margin-top: 27px;
}
.form-inside {
padding: 20px;
}
.vl {
border-left: 1px solid gray;
height: 350px;
margin-left: 15px;
}
input {
font-size: 15px;
}
.get-now {
font-size: 25px;
color: white;
padding: 5px;
}
.button1 {
background: #8E6719;
margin-top: 15px;
}
.button1:hover {
background: #073d3d;
}
footer{
background: #073d3d;
}
.copyright {
background: #2e7070;
}
.container-fluid {
padding-right:0;
padding-left:0;
}
.footer {
color: white;
}
.div-p {
color: rgb(53, 0, 0);
font-size: 16px;
margin-left: -20px;
}
Check again : https://prnt.sc/mp0lj8
After i make footer it enters inside this section were i have form..Also when i make another section or div it enters again…Maybe i didnt put closing div somewere or similar to that but i cant find it…Can anybody tell me were i went wrong?
2
Answers
I added this footer after
in base.html Check now --> http://prntscr.com/mp0ut7
I copied what u sent me in index_view but it remains the same. I was searching closing tags because i was 100% sure i missed it. Rly cant find a mistake...