twitter bootstrap - Spring MVC Thymelaf Fragment Issue -
i building web application spring mvc 4.2
, thymeleaf 2.1
.
i using this admin dashboard template. created thymeleaf fragment "main" navigation , sidebar.
normally should this.
but getting this.
there other draw. , can see problem
when include main
fragment beginning of page can't reach id=page-wrapper
because page-wrapper
has inside of wrapper
element. in case hasn't wrapper
element.
it can't align left. how can iclude main fragment correctly this.
correct html.
<div th:fragment="main"> <div id="wrapper"> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> </nav> <div id="page-wrapper"> </div> </div> </div>
my html.
<div th:fragment="main"> <div id="wrapper"> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> </nav> </div> </div> <div id="page-wrapper"> </div>
i used page-wrapper
under wrapper
, made class = "container-fluid"
, solved problem.
Comments
Post a Comment