Is it possible to align elements within a </div>
using the align
attribute? For example, as shown in the image below:
- e1:
align="top"
- e2:
align="right"
- e3:
align="bottom"
- e4:
align="left"
EDIT: This query is purely for self-learning purposes in HTML/CSS and not related to any homework assignment or project. I am simply curious if achieving alignment using the align
attribute alone is feasible.
Reviewing this code snippet may provide better insight into my objective:
<div id="container">
<div id="nav-vbar">
<button class="btnV" align="top"></button>
<button class="btnV" align="bottom"></button>
</div>
<div id="navigation">
</div>
<div id="nav-hbar">
<button class="btnH" align="left"></button>
<button class="btnH" align="right"></button>
</div>
<div id="preview">
</div>
</div>
The desired outcome with focused divs highlighted in gray