i'm totatally new in front-end technology. I try to write some code for my backend app. Now i'm using Html, Css and Bootstramp. I try to put searching form on the right side of my webpage. What i'm doing wrong.
page view:
html:
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
rel="stylesheet">
<nav >
<a style="color: white;">Students Manager</a>
<button type="button" data-toggle="collapse" data-
target="#navbarColor02" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span ></span>
</button>
<div id="navbarColor02">
<ul >
<li >
<a data-toggle="modal" data-target="#exampleModal">Add
student <span >(current)</span></a>
</li>
</ul>
<div >
<form >
<input name="key" id="searchName"
placeholder="Search student....">
</form>
</div>
</div>
</nav>
//resto of code
css file:
body{
margin-top:20px;
background: #f5f5f5;
}
.card {
border: none;
-webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
margin-bottom: 30px;
}
.w-60 {
width: 60px;
}
h1, h2, h3, h4, h5, h6 {
margin: 0 0 10px;
font-weight: 600;
}
.social-links li a {
-webkit-border-radius: 50%;
background-color: rgba(89,206,181,.85);
border-radius: 50%;
color: #fff;
display: inline-block;
height: 30px;
line-height: 30px;
text-align: center;
width: 30px;
font-size: 12px;
}
a {
color: #707070;
}
Thanks for any suggestions and understanding
CodePudding user response:
Try using Bootstrap's own grid system, you can position any element in the best way.
Documentation: https://getbootstrap.com/docs/4.0/layout/grid/
CodePudding user response:
Try adding this in css
.pull-right {
float: right;
}

