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.

normal

but getting this.

anormal

there other draw. , can see problem

enter image description here

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -