I am facing a problem where 2 elements are not responding to the specified margins of margin: 260px 0 0 0;
or margin-top: 260px;
. Despite inspecting the elements in IE's dev tools and confirming that the margin is set, the elements appear at the top of the div as if the margin setting was completely ignored.
I'm puzzled as to why the margin doesn't seem to be working for the a
element within the classes .SideContainer a {...}
or .RightSide a {...}
.
<section class="RightSide SideContainer">
<a href="~/Shared/Services/WebDevelopment">Packages & Pricing</a>
</section>
.SideContainer h1 {
color: white;
}
.SideContainer a {
margin: 260px 0 0 0;
padding: 10px 15px 10px 15px;
background-color: #ec462f;
color: white;
}
.RightSide {
float: right;
}
.RightSide a {
margin-top: 200px;
}