jquery - How I can fix a simple html UI resolution for different different screen sizes -


i new in html development. design form designer showing desktop screen have size 1366 x 768 approx. when put on machine on different resolution ui effected badly. when zooming in , zooming out effected. problem.

i sharing css , html code , please see . there have body contains div , div have child div element div , properties div , resizeable div (that have big problem when resizing) .please see code:

<style>  .element-div {  	width:300px;  	box-shadow: 1px 1px 1px 1px grey;  	height:auto;  	border-radius: 10px;  	margin-left:20px;  	background-color:#fff;  	float:left;  	padding-bottom:18px;  }    .test {  	margin-top:5px;  	margin-left : 40px;  	width: 180px;  	height: auto;  	padding:15px;  	margin-bottom: 5px;  	border: 1px solid burlywood;  }    #drop {  	width: 700px;  	height: 650px;  	margin-bottom: 30px;  	border-radius: 10px;  	background-color: #fff;  	box-shadow: 1px 1px 2px 2px grey;  }    .dropped {  	width: 180px;  	height: auto;  	padding:15px;  	border : 1px solid burlywood;  	background-color: none;  }    .button-clone {  	background-color: coral;  	border: solid 1px;  	border-color: crimson;  	height:50px;  	width:100%;  }    .text-clone {  	border : solid 1px;  	border-color :cornflowerblue;  	height : 25px;  	width : 100%;  }    .dropdown-clone {  	height : 30px;  	width : 100%;  	background-color: cornflowerblue;  }    .date {  	border : solid 1px ;  	border-color: darkgoldenrod;  	height:25px;  	width:100%;  }    .save-form {  	background-color:#b35050;  	border: solid 1px;  	border-color:#861f03;  	height:40px;  	width:80px;  	float : right;  	border-radius : 5px;   }    h1 {  	font-family: sans-serif;  	color :brown;  }    #properties-ui {  	float:right;  	margin-top:15px;  	margin-right:10px;  	min-width:180px;  	min-height:100px;  	background-color: #afe1e6;  	padding-left:20px;  	padding-right: 20px;  	padding-bottom: 20px;  	border-radius: 10px;  	font-family: sans-serif;  	box-shadow: 1px 1px 1px 1px grey;  }    #header-properties {  	background-color: brown;  	color:#fff;  	font-family: sans-serif;  	margin-top: -33px;  	text-align:center;  	border-radius: 5px;  	box-shadow: 1px 1px 1px 1px grey;  }    #delete , #clear, #save{  	background-color:#ff7c7c;  	border: solid 1px;  	border-color:#ff000a;  	color : #fff;  	height:40px;  	width:80px;  	font-family: sans-serif;  	border-radius : 5px;   }    #set {  	background-color:#3d7007;  	color:#fff;  	width:45px;  	height:30px;  	margin-top:5px;  	float:right;  	border:1px solid white;  	border-radius:6px;;  }    .pre-button {  	background-color:#496ef3;  	color:#fff;  	width:55px;  	height:25px;  	float:right;  	border:1px solid white;  	border-radius:6px;;  }    </style>
<body style="background-color:ivory;">                   <div style="border:7px solid cadetblue;padding:10px;border-radius:20px;">              <div>                  <h1>form test<input type="submit" class="save-form" name="saveform" id="saveform" value="submit" style="float:right;color:#fff;" onclick="formsubmit();"></h1>                             </div>                           <div style="margin-left:50px;margin-bottom:10px;">                <input type="button" style="background-color:#77b337;border:1px #4e9205;"id="save" name="save" value="save"/>                  <input type="button" style="background-color:#7c9aff;border:1px #637ed8;" id="clear" name="clear" value="clear" onclick="clearcanvas();" />                  <input type="button" id="delete" name="delete" value="delete" onclick="delete_element();"/>                  <label style="margin-left:15%;">selected table:<input type="text" name="tablename" id="tablename" class="text-clone" style="border-color:green;width:15%;margin-left:2%; " readonly /></label>              </div>              <div id="properties-ui">                  <div id="header-properties"><p>properties</p></div>                    <input type="text" id="name" style="margin-bottom:8px;padding:3px;" placeholder="name"><br>                  <input type="checkbox" id="fieldbox" style="height:15px;width:15px;" name="fieldrequired" />                   <label style="font-size:14px;">field required</label><br><br>                  <input type="text" id="value" style="margin-bottom:8px;padding:3px;" placeholder="value"><br>                  <input type="color" name="colorpicker" id="bg" style="margin-top:5px;width:20px;" value="#fefefe">                  <label style="font-size:14px;">select color</label><br><br>                  <input type="text" id="addoption" name="addoption" style="margin-bottom:8px;padding:3px;width:100px;" placeholder="add options">                  <input type="button" class="pre-button" name="add" id="add" value="add" onclick="return addoptions();" /><br><br>                  <input type="text" id="deloption" name="deloption" style="margin-bottom:8px;padding:3px;width:100px;" placeholder="del options">                  <input type="button" class="pre-button" name="del" id="del" value="del"  style="background-color:#f95050" onclick="return deloptions();" /><br><br>                  <select id="data-column" class="dropdown-clone" style="background-color:rgb(208, 110, 6);margin-bottom:15px;height:25px;color:cornsilk" name="name"><option value="">name</option><option value="satinder">satinder</option></select><br>                  <input type="button" name="setproperties" id="set" value="set" onclick="return setproperties();"/>              </div>                                                 <div class="element-div">              <h3 style="margin-left:25px;margin-top:10px;color:goldenrod;">elements</h3>             <div class="test red square" style="cursor:move;"><input type="text" class="text-clone" name="default" style="cursor:not-allowed"></div>             <div class="test red square" style="cursor:move;"><textarea class="text-clone" name="default" style="cursor:not-allowed" placeholder=" label here..."></textarea></div>             <div class="test red square" style="cursor:move;"><input type="text"  class="date" name="date"  style="cursor:not-allowed" id="date" placeholder="&nbsp;&nbsp;dd-mm-year"></div>             <div class="test red square" style="cursor:move;"><select id="selectbox"  class="dropdown-clone"  style="cursor:not-allowed" name="1">                          <option id="select" value="">select</option>                                                    </select></div>             <div class="test red square" style="cursor:move;" ><input type="button" class="button-clone" value="button" style="height:50px;cursor:not-allowed;" ></div>             <label style="margin-left : 15%;">radio button</label>             <div class="test red square" style="cursor:move;"><input type="radio" style="width:15px; height:15px;cursor:not-allowed;" name="radiobutton" value="default"></div>             <label style="margin-left : 15%;">checkbox</label>             <div class="test red square" style="cursor:move;"><input type="checkbox" style="width:15px; height:15px;cursor:not-allowed;"></div>             <label style="margin-left : 15%;">combobox</label>             <div class="test red square" id="combobox" style="cursor:move;"><input type="text" name="example"  style="cursor:not-allowed" list="examplelist">      <datalist id="examplelist">      </datalist></div>          </div>                                        <div id="dd"><div style="margin-left:26%;resize: both;overflow:auto;" id="drop"></div>              </div>          </div>      </body>

have on this: responsive web design - media queries

this option you.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -