...

View Full Version : How to make x-position of layer absolute and y-position relative?



kippie
07-04-2005, 01:20 PM
In the HMLT I try to give a layer an absolute x-position and the same layer a relative y position. Is such a thing possible at all?

Here is the HTML:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
</head>
<style type="text/css"><!--
#layer1 { position-x: absolute; position-y: absolute; top: 20px; left: 10px; width: 450px; height: 465px; visibility: visible }
-->
</style>

<body>
<div id="layer1">
This is layer1
</div>
</body>
</html>

jscheuer1
07-04-2005, 02:12 PM
No. You can nest your division:


<style type="text/css">
#adiv {
position:absolute;
left:105px;
}

#rdiv {
position:relative;
top:30px;
}
</style>


<div id="adiv"><div id="rdiv">Some Text</div></div>Oh, this isn't really javascript.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum