asp.net mvc 4 - CSS Dashboard with tab-content causes main area to display below navigation -


Using the VS 2012, the ASP MVC 4/5 project was received. Added bootstrap 3.2 is

I saw some other people who had problems with the Twitter Bootstrap dashboard example, but they did not enable me to solve the problem.

I have a dashboard, and I used tab-content and tab-pan CSS classes to show different pages. Although the main area ends and the right side of the navigation ends. Other similar questions refer to line-fluid, which is not the latest bootstrap.

This is my code:

  & lt; Div class = "container-fluid" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-sm-3 col-md-2 sidebar" & gt; & Lt; Ul class = "nav nav sidebar" & gt; & Lt; Li class = "active" & gt; & Lt; A href = "#" & gt; Overview & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#client" data-toggle = "tab" & gt; Customers & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# order" data-toggle = "tab" & gt; Order & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#stock" data-toggle = "tab" & gt; Stock & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Div class = "col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main tab-content" & gt; & Lt; H1 class = "page-header" style = "margin-top: 0! Important;" & Gt; Dashboard & lt; / H1> & Lt; Div class = "tab-panel" id = "client" & gt; @html.action ("index", "client") & lt; / Div & gt; & Lt; Div class = "tab-panel" id = "command" & gt; @html.action ("index", "order") & lt; / Div & gt; & Lt; Div class = "tab-panel" id = "stock" & gt; @html.action ("index", "stock") & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

Maybe my CSS is incorrect, or maybe my implementation is wrong for loading pages in the main area.

I tried other things: to link Ajax action with div as target update

If you are already using the col - * value, you do not need to use the offset classname:

  & lt; Div class = "row" & gt; & Lt; Div class = "col-sm-3 col-md-2 sidebar" & gt; ... & lt; / Div & gt; & Lt; Div class = "col-sm-9 col-md-10 main tab-content" & gt; ... & lt; / Div & gt; & Lt; / Div & gt;  

This


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -