Is there a way to accomplish the following:
I currently have a navigation bar
with the class of "navbar-fixed-top"
, and I've also added a style of min-height: 50px;
Beneath the navigation bar, I have a content section
with a class style of padding-top: 70px;
The issue arises when resizing the window smaller - if the height of the navigation bar increases, the content below it is hidden underneath.
How can I monitor the height of the navigation bar in order to dynamically adjust the style of the content class "padding-top" to a higher value?
I attempted using this solution, but it required me to watch one element for changes and then assign something to another element.
Note: I'm seeking a solution using Angular only, not jQuery
A visual aid with further explanation