Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

Bootstrap column is cutting off the left edge of my rows

$
0
0

I have a python/flask/html project I'm currently working on. I'm using bootstrap 4 for a grid system with multiple rows and columns. When I try to run my project, it cuts off a few pixels on the left side of the screen. I've looked all over my code and I'm still not sure as to why this is. Here is a jsfiddle with my code, as well as a hard copy of it. Thank you for any help!

<!DOCTYPE html>

<!-- Link to css file -->
<link rel="stylesheet" type="text/css" href="/static/main.css" mesdia="screen"/>

<!-- Bootstrap CDN-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>

<meta charset="UTF-8">
<title>Layout</title>
<!--<h1>Welcome to the layout</h1>
<p>Where would you like to navigate to?</p>-->

<div class="row" id="navcols">

    <div class="col">
        <div class="row h-50">Row</div>
        <div class="row h-50">Row</div>
    </div>


    <div class="col-sm-6">
        <div class="row h-100">Row</div>
        <div class="row h-100">Row</div>
        <div class="row h-100">Row</div>
        <div class="row h-100">Row</div>
        <div class="row h-100">Row</div>
    </div>

    <div class="col">
        <div class="row">Row</div>
    </div>

</div>

<!--
<div class="container-fluid">
    <h1 id="test">Welcome to my page! Where do you want to navigate to?</h1>
</div>-->

    html,body {
  height: 100%;
  width: 100%;
}

.col {
    background-color:red;
}

Viewing all articles
Browse latest Browse all 67441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>