Div keep moving when I resize the screen
-
Hi everyone, hope can seeking some of your help.
The div I have created is drive me insane because it constantly moving every time I re-size my window. I have written various rules for different size screens like 600,768,962,1024,1152 and 1200 pixels all with different left pixels dimensions, but this still doesn’t do the job properly.
There are few buttons and one textbox that using div class.
any solution to prevent the div moving out somewhere?
The website : http://inovuus.com/<style>
body {width:100%;
margin:0px;
}.btn-danger1 {
position: absolute;
top:-72px;
left: 870px;
z-index: 8;
color: #fff;
background-size: 100% center;
background-color: #a80404;
-webkit-box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
}
.btn-danger1:active {
margin-top: 3px;
margin-bottom: -3px;
}
.btn-danger2 {
position: relative;
top:-290px;
left: 600px;
z-index: 8;
color: #fff;
background-color: #a80404;
-webkit-box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
}
.btn-danger2:active {
margin-top: 3px;
margin-bottom: -3px;
color: #fff;
background-color: #a80404;
}
.btn-danger3 {
position: relative;
top:-290px;
left: 600px;
z-index: 8;
color: #fff;
background-color: #a80404;
-webkit-box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.3);
}
.btn-danger3:active {
margin-top: 3px;
margin-bottom: -3px;
color: #fff;
background-color: #a80404;
}
.textbox
{
position: relative;
top: -290px;
left: 600px;
width: 600px;
z-index: 8;
color: #060957;
font-family: ‘helvetica_neue_ltregular’;}
- The topic ‘Div keep moving when I resize the screen’ is closed to new replies.