I'm struggling to understand why:
vertical-align - isn't behaving as expected in this scenario, even though the elements are aligned along a baseline and are inline elements. I've experimented without using float but that didn't solve the issue. What am I overlooking?
How are
<a>
's positioned within this DIV?I'm brainstorming a layout idea and trying to figure out how to position
<a>
's (specifically those with icons) below the<a>
's with the logo-main class. I attempted changing the display property of<a>
's to block, but they still did not move below. Any insights on how to achieve this using CSS?
https://i.stack.imgur.com/MFG8Q.jpg
.back-green {
max-width: 600px;
margin: auto;
}
.logo-main {
padding: 10px;
font-size: 40px;
}
.fa-book,
.fa-compact-disc {
font-size: 150%;
padding-top: 5px;
}
.rr {
float: right;
padding: 11px;
}
<div class="back-green">
<a class="logo-main">BOOKS&DVD</a>
<a class="rr"><i class="fas fa-compact-disc shad-logo2 "></i></a>
<a class="rr"><i class="fas fa-book shad-logo2 va"></i></a>
</div>