I have this code but div over the edge of webpage.
<html>
<head>
<style type="text/css">
body {
height: 100%;
width: 100%;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
.content {
text-align:center;
display: table-cell;
vertical-align: middle;
padding-left: 40px;
padding-right: 40px;
padding-top: 50px;
padding-bottom: 50px;
letter-spacing: 1px;
}
code {
font-family: "Sans Mono", "Consolas", "Courier", monospace;
font-size: 12px;
}
.code-container {
width: 100%;
position: relative;
box-shadow: 0px 0px 2px rgba(0, 0, 0, 1), 0px 2px 25px rgba(0, 0, 0, 0.6);
}
.code-numbers {
font-family: "Sans Mono", "Consolas", "Courier", monospace;
font-size: 12px;
float: left;
color: rgb(128, 128, 128);
border-right: 1px solid rgb(128, 128, 128);
width: 15px;
padding: 0px;
padding-left: 20px;
padding-right: 5px;
user-select: none;
text-align: right;
}
.code-line {
font-family: "Sans Mono", "Consolas", "Courier", monospace;
font-size: 12px;
float: right
padding: 0px;
padding-left: 7px;
padding-right: 30px;
white-space: pre;
text-align: left;
overflow: auto;
}
</style>
</head>
<body>
<div class="content">
<div class="code-container"><div class="code-numbers">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br></div><div class="code-line">:local iname "ether2";
ip firewall mangle
add action=mark-connection chain=prerouting comment=CommentABCDEF in-interface=$iname new-connection-mark=CommentABCDEF protocol=tcp
add action=mark-connection chain=postrouting comment=D-FUP-Upload new-connection-mark=D-FUP-Upload out-interface=$iname protocol=tcp
add action=mark-packet chain=prerouting comment=CommentERRWWRHEWRHR connection-mark=CommentABCDEF in-interface=$iname new-packet-mark=CommentERRWWRHEWRHR passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=Comment2462436246234 connection-mark=CommentABCDEF in-interface=$iname new-packet-mark=Comment2462436246234 passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=Comment35437345434263426 connection-mark=CommentABCDEF in-interface=$iname new-packet-mark=Comment35437345434263426 passthrough=no protocol=tcp
system scheduler
add interval=2s name=D-FUP-Processor on-event=D-FUP-Processor policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive start-time=startup
</div></div>
</div>
</body>
</html>
Currently, it goes beyond the page border and I do not want to go beyond the edge of the page. I wanted div window center in width and middle in height on webpage but i dont have idea how.
Any ideas?
Code have on demo on JSFiddle server: Demo jsfidle