html - How do I deal with the issue of my divs being distorted greatly when zoomed in? -


there 2 issues in code i've written i'm unsure how resolve:

how page looks on google chrome

google chrome

that 2 columns of divs not scale zoom in , out.

image

if zoom in past amount, divs bust out containers , distort webpage completely.

enter image description here

here's fiddle relevant html , css code who'd @ it.

i divs scaled or down in position when user zooms in or out.

edit: line #130 relevant css tags describing elements coded page, rest of css bootstrap , irrelevant (to problem)

to have assign value width or container width of div. this:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>untitled document</title>  <style> body{         font-size:36px;         font-family:arial, helvetica, sans-serif;         } .mega_cont{     margin:0 auto;     padding-top:10%;     width:710px;     } .super_cont_lhs{     float:left;     width:300px;     margin-right:5px;     }  .cont1{     width:100%;     float:left;     height:auto;     background-color:#000;     margin-bottom:10px;     color:#ccc;     } .cont2{     width:100%;     float:left;     height:auto;     background-color:#000;     color:#ccc;     } .super_cont_rhs{     width:400px;     float:left;     height:auto;     background-color:#f60;     } </style> </head>  <body>  <div class="mega_cont"> <div class="super_cont_lhs">     <div class="cont1">p - s p e c t r a</div>     <div class="cont2">b e g n</div> </div> <div class="super_cont_rhs"> p-spectra enables practicing engineers design seismic retrofit solutions supplemental dampers using performance based design.  </div> </div> </body> </html> 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -