<!-- Container Div -->
<div layout-fill>
<!-- Image Div -->
<div layout="column" layout-align="center center" class="coverImage" layout-fill>
<md-content class="md-padding">
Sample Text Here
</md-content>
<md-button class="md-raised md-primary">Sign Up</md-button>
</div>
</div>
Looking for some guidance on utilizing Angular Material's flexbox features to design a page with a full-page background image. The idea is to have text and a button centered on the image overlay.
Despite setting the outermost div to occupy the entire screen, the inner image div does not seem to expand accordingly. Instead, it only accommodates the space needed for the text and button. Suggestions or tips on why this may be happening would be greatly appreciated. While I am aware of alternative CSS methods to achieve this effect, my goal here is to understand the nuances of flexbox implementation.
Update:
Check out the JSFiddle link.