html - bootstrap modal bad positionned -


I am using a bootstrap model, when I put it inside a div which is a feature in a row , The model is not well conditioned

example

  & lt; Div class = "content" id = "content" align = "center" & gt; & Lt; Div id = "div" class = "modal hide fade" tabindex = "- 1" role = "dialog" aria-labelbedby = "myModalLabel" aria-hidden = "true" & gt; & Lt; Div class = "modal-header" & gt; & Lt; Button type = "button" class = "off" data-rejected = "modal" Aria-hidden = "true" & gt; And;; & Lt; / Button & gt; & Lt; H3 id = "divTitle" & gt; & Lt; / H3 & gt; & Lt; / Div & gt; & Lt; Div id = "divBody" class = "modal-body" & gt; & Lt; / Div & gt; & Lt; Div class = "modal-footer" & gt; & Lt; Input type = "button" class = "btn" class = "off" data-rejected = "model" value = "firmer" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;   

What is the solution?

You can accompany it with a fixed width in center and with width half and height half With negative margins. So for a division with ID that is 200x200 in your_with size, you want:

  #your_div {width: 200px; Height: 200 pixels; Status: fixed; Top: 50%; Left: 50%; Margin-left: -100px; Margin-top: -100px; }    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -