PDA

View Full Version : position: absolute question


BaBa2002
03-01-2003, 05:42 PM
hello dudes
have a litle question
want to do some reale changens to my header
but i have to work with style id because i wan to use "position: absolute" tag in a table
but when i want to try this i don't see the images

what i'm doing wrong

filburt1
03-01-2003, 05:55 PM
Aroo? What do you mean?

(damned 10 char limit)

BaBa2002
03-01-2003, 06:15 PM
i mean i want to change my header template
but have a lot of images so that i want something like that
<DIV ID="main4" STYLE=" position: absolute; left: 70px; top: 0px; height:0px; z-index: 4;left: 70px; top: 0px; visibility:visible;">
<IMG SRC="images/int2.gif" WIDTH="27" HEIGHT="29" BORDER=0 ALT="">
</DIV>
but i tested this but it won't show my image

filburt1
03-01-2003, 06:16 PM
Make sure that your zorder is correct, and remember absolute makes it relative to the exact top-left of the page.

BaBa2002
03-01-2003, 06:18 PM
Make sure that your zorder is correct, and remember absolute makes it relative to the exact top-left of the page.
what do you mean with a zorder?
and is it possible to use this in a table?

sorry if i ask some stupid question
but i'm litle bit of a newbie in to html

BaBa2002
03-12-2003, 02:15 PM
hello

filburt1
are you still alive?

BaBa2002
03-12-2003, 02:19 PM
it's just i want to creat a new header for my vb but i need to use the position: absolute;
i want to centred my images from the left and the top in to a table

what do i wrong?
when i use the position: absolute; it won't show my images

do you have a example for this?

filburt1
03-12-2003, 04:35 PM
hello


filburt1
are you still alive?
Busy moderating two huge forums and running my own, no time

Vladdy
03-12-2003, 05:31 PM
Hey man try this site out, this is what helped me with "position:absolute"

http://www.w3schools.com/dhtml/dhtml_css.asp

You can also run tests on their too...

BaBa2002
03-12-2003, 06:07 PM
hmmm
thx vladdy
ill try it out
and let it know when it's work

Vladdy
03-12-2003, 06:45 PM
nevermind :D

BaBa2002
03-12-2003, 07:23 PM
ok
when i'm used the Position:relative it's shows the image's but i can not use the top: position

what do i wrong
this is my code

<DIV ID="header1" STYLE="position:absolute; left: 0px; top: 0px; height:0px; z-index: 2;left: 0px; top: 0px; visibility:visible;">
<IMG SRC="images/blow1.gif" WIDTH="511" HEIGHT="31" BORDER=0 ALT="">
</DIV>

BaBa2002
03-12-2003, 07:24 PM
and this is the code for the next image

<DIV ID="header1" STYLE="position:absolute; left: 0px; top: 0px; height:0px; z-index: 2;left: 0px; top: 0px; visibility:visible;">
<IMG SRC="images/blow1.gif" WIDTH="511" HEIGHT="31" BORDER=0 ALT="">
</DIV>

<DIV ID="header2" STYLE="position:absolute; left: 511px; top: 0px; height:0px; z-index: 2;left: 511px; top: 0px; visibility:visible;">
<IMG SRC="images/blow2.gif" WIDTH="409" HEIGHT="11" BORDER=0 ALT="">
</DIV>

Vladdy
03-13-2003, 11:11 PM
I honestly am not sure, but maybe it is your DIV tags that isn't helping. I know when I've used "position:absolute" it's been with "td" tags...

BaBa2002
03-14-2003, 12:29 PM
do you have a example of your code?
because i try it with th TD ant still nothing

Vladdy
03-14-2003, 04:19 PM
Here is an example, however I wasn't moving an image so I am sure that's where the difference is:

<td style="position:absolute; top:253; right:32;">$styledropdown</td>