DuncansOneLove
03-05-2004, 11:42 AM
Hello again(lol)
You know the absolute positioning can it be used for anything on your page and if so where and what would i insert into my page to use it?
Thanks in advance
stargrl329
03-05-2004, 12:08 PM
Absolute positioning works with most everything I have tried... I can't think of a page object specifically that it wouldn't work for. To use it, just add the following to an object tag:
style="position: absolute; top: #px; left: #px"
Then replace the # with pixel values from the left and top. (You can also use bottom and right if you want, but keep in mind that this will cause positioning to change with different resolutions.)
For example, if you wanted to absolute-position a div layer 100px from top and 200px from left, you would do this:
<div style="position: absolute; top: 100px; left: 200px">content here</div>
Hope that helped, and good luck! :)
DuncansOneLove
03-05-2004, 03:52 PM
Thankyou :)
So if i were to position an image or something i'd do <img src="URL OF IMAGE" style="position: absolute; top: #px; left: #px">?
MaGiCSuN
03-05-2004, 04:19 PM
yes :) that will work :)
Love,
Mirna
DuncansOneLove
03-05-2004, 09:38 PM
Ok :D
Is there any perticular part that position: absolute; top: #px; left: #px" should go or can it go anywere in the tag?(if it's called a tag? lol)
bourdelson
03-05-2004, 10:45 PM
Ok :D
Is there any perticular part that position: absolute; top: #px; left: #px" should go or can it go anywere in the tag?(if it's called a tag? lol)
It can fit anywhere inside of the tag, but I find it easier to put the style="position:absolute; top:#px; left:#px;" first. [Second if it's inside of an <img> tag.]
DuncansOneLove
03-06-2004, 02:51 PM
Thanks
And is that ok to go anywere in other tags?
bourdelson
03-06-2004, 02:52 PM
Yes, it can be placed anywhere in other tags, as well. :)