I'm attempting to create a table using the bootstrap grid system. The HTML code below is meant to generate the table, but I'm encountering an issue where the table cells overlap on screens with a width of 768px.
.row.header {
height: 44px;
border-top: 1px solid #CCCCCC;
border-top-right-radius: 5px;
border-top-left-radius: 5px;
background-color: #F3F3F3;
}
p.block-space {
margin: 15px 0 16px 0px;
}
div[class^="col"] > label {
margin: 15px 0 16px 0px;
text-align: center;
font: normal 14px Helvetica;
color: #666666;
}
.col-margin-header {
margin-left: 10px !important;
}
.col-margin {
margin-left: 15px !important;
}
.xs-col-margin {
margin-left: 5px !important;
}
dt.heading {
font: bold 14px Helvetica;
text-align: left;
color: #333333;
}
.dd-description {
font: normal 14px Helvetica;
color: #666666;
}
@media (min-width: 320px) {
div[class^="col"] {
padding-left: 2px;
padding-right: 2px;
}
.row {
background: #fff;
border-bottom: 1px solid #CCCCCC;
}
}
@media (min-width: 768px) {
div[class^="col"] {
padding-left: 10px;
padding-right: 10px;
}
.row {
background: #fff;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
}
/* Medium devices (desktops, 992px and up) */
}
@media (min-width: 992px) {
div[class^="col"] {
padding-left: 10px;
padding-right: 10px;
}
.row {
background: #fff;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
}
/* Large devices (large desktops, 1200px and up) */
}
@media (min-width: 1200px) {
div[class^="col"] {
padding-left: 15px;
padding-right: 15px;
}
.row {
background: #fff;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example of Bootstrap 3 Grid System</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<br/>
<br/>
<div class="row header visible-sm-block visible-md-block">
<div class="col-sm-1 col-md-1">
<label class="col-margin-header">Select</label>
</div>
<div class="col-sm-11 col-md-11">
<div class="col-sm-1 col-md-1">
<label>Bank</label>
</div>
<div class="col-sm-1 col-md-1">
<label>Agent</label>
</div...
The code works fine on desktop, but encounters issues specifically at 768px screen size.