Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Prakhar Patwa
11,260 PointsBootstrap-when i am shortning the screen,my labels are lil-bit sticky with others input field?how to rid of it?
when you resize the page to its minimum size at the end of for just have a look please give me a suggestion
<!DOCTYPE html> <html lang="en">
<head> <meta charset="utf-8"> <title>3-column - Bootstrap</title> <meta name="description" content="Hello World"> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<style>
.img-responsive{
margin: 5px auto;
}
.form-group1{
border:3px solid #43525a;
}
.form-group{
padding-top:5px;
margin-bottom:5px;
padding-right:3px;
padding-left:3px;
}
.col-lg-2 , .col-sm-2{
text-align:center;
}
</style>
</head>
<body>
<header>
<div class="container">
<img class="img-responsive" src="img/head.gif" alt="Chania" width="460" height="345">
<h1 style="text-align:center;">Business Use Of Motor Vehicle Worksheet</h1>
</div>
</header>
<hr>
<div class="container">
<form class="form-horizontal col-md-12" method="post" action="" role="form">
<div class="form-group1">
<div class="form-group">
<label for="clientName" class="col-lg-2 col-sm-2 control-label">Client Name</label>
<div class="col-lg-10 col-sm-10 ">
<input type="text" class="form-control" id="clientName">
</div>
</div>
<div class="form-group">
<label for="BusinessName" class="col-lg-2 col-sm-2 control-label">Business Name</label>
<div class="col-lg-10 col-sm-10 ">
<input type="text" class="form-control" id="BusinessName">
</div>
</div>
<div class="form-group">
<label for="MakeOfVehicle" class="col-lg-2 col-sm-2 control-label">Make Of Vehicle</label>
<div class="col-lg-10 col-sm-10 ">
<input type="text" class="form-control" id="MakeOfVehicle">
</div>
</div>
<div class="form-group">
<label for="Model" class="col-lg-2 col-sm-2 control-label">Model</label>
<div class="col-lg-10 col-sm-10 ">
<input type="text" class="form-control" id="Model">
</div>
</div>
<div class="row-fluid">
<div class="form-group">
<label for="AcquisitionDate" class="col-lg-2 col-sm-2 control-label">Acquisition Date</label>
<div class="col-lg-4 col-sm-4 ">
<input type="text" class="form-control" id="Acquisition Date" placeholder="mm/dd/yy">
</div>
<div class="col-xs1">
<label for="PurchasePrice" class="col-lg-2 col-sm-2 control-label ">Purchase Price</label>
</div>
<div class="col-lg-4 col-sm-4 ">
<input type="text" class="form-control" id="PurchasePrice">
</div>
</div>
</div>
<div class="form-group">
<label for="DisposalDate" class="col-lg-2 col-sm-2 control-label">Disposal Date</label>
<div class="col-lg-4 col-sm-4 ">
<input type="text" class="form-control" id="DisposalDate" placeholder="mm/dd/yy">
</div>
<label for="Proceeds" class="col-lg-2 col-sm-2 control-label">Proceeds</label>
<div class="col-lg-4 col-sm-4 ">
<input type="text" class="form-control" id="Proceeds">
</div>
</div>
<div class="form-group">
<label for="TotalKM" class="col-lg-2 col-sm-2 control-label">Total KM driven in the year</label>
<div class="col-lg-4 col-sm-4">
<input type="text" class="form-control" id="TotalKM" placeholder="in k.m.">
</div>
<label for="TotalKmDriven" class="col-lg-2 col-sm-2 control-label">Total KM driven for business</label>
<div class="col-lg-4 col-sm-4 ">
<input type="text" class="form-control" id="TotalKmDriven">
</div>
</div>
</div>
</form>
</div>
<footer>
<div class="container">
</div> <!-- end container -->
</footer>
<!-- Latest compiled and minified JavaScript -->
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body> </html>
1 Answer
David Royer
10,026 PointsHi Prakhar,
I took a look at your code but wasn't sure what you meant by sticky?