Can anyone help me with adding a border under my logos positioned at the top right of the page?
Prior to including position:absolute;
in the div, my two logos were correctly placed under the "Contact Me" section at the top right. However, when I added position:absolute;
, the left border of the page started moving and the logos shifted down the page.
https://i.sstatic.net/kfKql.png
css #para {
margin-right: 1.66%;
float: right;
font-family: indie flower;
position: absolute;
top: 0px;
right: 0px;
}
.fb {
width: 27px;
float: right;
right: 5px;
position: absolute;
margin-top: 3px;
top: 35px;
}
#in {
margin-top: 4px;
width: 25px;
float: right;
position: absolute;
right: 40px;
top: 35px;
}
div {
border-bottom: 1.5px solid red;
width: 60px;
right: 5px;
position: absolute;
}
<p id="para">Contact me </p>
<div>
<img class="fb" width="10" src="https://cdn3.iconfinder.com/data/icons/picons-social/57/46-facebook-512.png">
<img id="in" width="25" src="https://image.flaticon.com/icons/png/512/69/69366.png">
</div>