Our web app is being embedded in a third party page as an iframe, but we need to add a bottom "toolbar" with 2 links. One link should be plain text and the other should display our company logo preceded by some text. We want the two links to be positioned in opposite corners of the toolbar div and be vertically aligned in the middle. I've made some progress using this method. Here's what I have so far on Fiddle:
<div id="main-app"></div>
<div id="my-footer">
<span id="full-link" class="assert-position"><a href="https://url.to.webapp" target="_blank" class="assert-position">View full size</a> </span> <div id="filler" class="assert-position"></div> Powered by
<a href="http://www.company-landing-page.co.uk" target="_blank" class="assert-position"> <img src="/images/my-company_logo.png"/></a>
</div>
<style>
*{
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
#main-app {
height: 90%;
width: 100%;
}
#my-footer {
height: 10%;
width: 100%;
background-color: #0f0f0f;
color: #FFF;
text-align: right;
font-family: Tahoma, Arial, "sans-serif"
}
#full-link {
float: left;
text-align: left;
font-family: Tahoma, Arial, "sans-serif";
font-size: small;
color: #FFF;
}
#filler {
height: 100%;
}
#my-footer img{
margin: 3px;
}
.assert-position{
display: inline-block;
vertical-align: middle;
}
#full-link a:visited{
color: #FFF
}
</style>
I'm having trouble vertically aligning the link on the left properly while maintaining horizontal alignment. As a backend developer, this front-end challenge is frustrating me. I don't want to use any third-party libraries like Bootstrap as they may interfere with my existing dependencies.