Netman said:
Is it possible to move div against the edge of body tag?
I would like to have div located in the same place on every monitor
nevermind if it is high resolution or low and nevermind if it is panoramic
monitor or old ordinary crt monitor or notebook monitor
I assume that by "the edge of body tag" you assume top-left, top-
right, bottom-left and bottom-right corners of the body element so -
lesser some special layouts - top-left, top-right, bottom-left and
bottom-right corners of the browser display area. In this case you
don't need scripting right away, CSS would make it, say:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
HTML {
width: 100%;
height: 100%;
}
BODY {
width: 100%;
height: 100%;
}
DIV#MyDiv1 {
position: absolute;
left: 0; top: 0;
width: 10%; height: 5%;
background-color: yellow;
}
DIV#MyDiv2 {
position: absolute;
left: 90%; top: 0;
width: 10%; height: 5%;
background-color: yellow;
}
DIV#MyDiv3 {
position: absolute;
left: 0; top: 95%;
width: 10%; height: 5%;
background-color: yellow;
}
DIV#MyDiv4 {
position: absolute;
left: 90%; top: 95%;
width: 10%; height: 5%;
background-color: yellow;
}
</style>
</head>
<body>
<div id="MyDiv1">My DIV 1</div>
<div id="MyDiv2">My DIV 2</div>
<div id="MyDiv3">My DIV 3</div>
<div id="MyDiv4">My DIV 4</div>
</body>
</html>
It is just an idea, comp.infosystems.
www.authoring.stylesheets
newsgroup may help you with the exact details. If you have further
questions about using CSS for your solution then please post in that
group. If you believe need an extra scripting then ask in this thread.