0
I’m developing a website and I need to leave a lead pickup fixed on top, along with the top menu, to the button direct (as shown in the image).
.lp-menu{
min-height: 70px;
background-image: url('http://unifacex.com.br/wp-content/uploads/2017/08/menun-fixo.png');
position: fixed;
width: 100%;
}
.box-menu-lead{
float: right !important;
}
tr > td > div.cata-lead{
float: right !important;
}
.cata-lead{
background-color: black;
width: 340px;
height: 540px;
position: absolute;
}
.box-btn-menu{
margin: 12px 0px 12px 0px;
float: right !important;
}
img.btn-menu{
margin: 0;
padding: 0;
float: left;
}
img.btn-menu:hover{
box-shadow: 6px 6px 10px rgba(0,0,0,0.8);
}
.banner{
background-image: url('http://unifacex.com.br/wp-content/uploads/2017/08/banner.png');
width: 100%;
height: 650px;
background-repeat: no-repeat;
background-position: center;
}
div.logo > a > img{
height: 84px;
}
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="lp-menu">
<div class="container">
<div class="pull-left">
<div class="logo">
<a href="http://unifacex.com.br"><img src="http://unifacex.com.br/wp-content/uploads/2017/08/logo.png"></a>
</div>
</div>
<div class="box-btn-menu">
<img class="btn-menu" src="http://unifacex.com.br/wp-content/uploads/2017/08/img-btn.png"/>
<img class="btn-menu" src="http://unifacex.com.br/wp-content/uploads/2017/08/img-btn.png"/>
<img class="btn-menu" src="http://unifacex.com.br/wp-content/uploads/2017/08/btn-email.png"/>
<div class="cata-lead pull-right"></div>
</div>
</div>
</div>
</body>
</html>
A technique to fix an element in relation to its parent element is demonstrated [in this Pen](https://codepen.io/Maujor/pen/dzNdKe?editors=1100/ "Pen by Maujor"). I hope you can adapt to your case.
– Maurício Samy Silva