I have a <div>
and I want to position it with position: fixed
. However, when I add the CSS rule position: fixed
, the <div>
shrinks.
https://i.sstatic.net/1Lh7I.jpg
https://i.sstatic.net/ljJ8o.jpg
Can someone please provide me with guidance on this issue?
This is my HTML code:
<div layout="row" style="background-color:#1CA5EA; position:fixed">
<div offset="25" flex="30" class="input-container">
<md-input-container flex >
<label style="color:white">Search</label>
<input ng-model="search" style="border-bottom:2px solid white;color:white;">
</md-input-container>
</div>
<div flex="10" class="input-container">
<button class="primary-button md-button md-default-theme">
<span class="ng-scope" ui-sref="company.addRecruitmentProject">
+ JOB AD
</span>
</button>
</div>
</div>