Looking to incorporate a footer on my website, but experiencing issues with text shifting positions.
<div id="footer">
<div id="footerchild">
<a href=".html">1</a>
</div>
<div id="footerchildone">
<a href=".html">2</a>
</div>
<div id="footerchildtwo">
<a href=".html">3</a>
</div>
<div id="footerchildthree">
<a href=".html">4</a>
</div>
</div>
Here is the relevant CSS:
#footer {
margin-left: 100px;
background: #812;
box-shadow: 1px 2px 40px 1px #444;
border: 1px solid black;
width: 1040px;
height: 300px;
position: absolute;
}
#footerchildone {
float: right;
margin-right: 500px;
margin-top: -22px;
}
#footerchildtwo {
float: right;
margin-right: 350px;
margin-top: -22px;
}
#footerchildthree {
float:right;
margin-top: -22px;
margin-right: -250px;
}
The goal is for each column to be centered at a specific distance. However, when moving one child element like "footerchildthree", another element also shifts. Despite having separate divs for each, they seem to move together. What could be causing this issue?