Click to See Complete Forum and Search --> : picture freeze
Code One
03-02-2003, 06:04 PM
I have a picture on mypage that I positioned like this:
<div style="position:absolute; right300:; bottom:495">
Now when I resize the window the dag on picture moves too, so it repositions itself to meet the settings, now I know there has to be a way to keep that from happening, please someone enlighten me.
Code One
Nedals
03-02-2003, 06:47 PM
Try...
<div style="position:absolute; top:xxx; left:xxx">
Code One
03-02-2003, 07:27 PM
I have a img i positioned like this:
<div style="position:absolute; right300:; bottom:495">
The problem is when I resize my window the img moves too, I want to keep this from happening when I make the window smaller or bigger, I just want it to stay in the same place wether I change the size of the window or not.
For ex:
fig:01
---------------
|.............x....|
|..................| --->Normal window size, (x=img src)
|..................| --->(now this is were I want x to stay)
|..................|
---------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fig:02
------------
|.....x........|
|..............|
|..............|---->Window resized to be smaller, (x= img src)
|..............|---->(now this is my problem, notice when the
------------ ---->window is resized the img src i.e.(X) moves
------------------> also.)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ihope you can understand what I mean. If anyone knows why thiss is happening besides the obvious, and how I can stop this from happening, please, please tell me.
Anyone, any help.
Stefan
03-02-2003, 07:55 PM
Originally posted by Code One
I have a img i positioned like this:
<div style="position:absolute; right300:; bottom:495">
The problem is when I resize my window the img moves too, I want to keep this from happening when I make the window smaller or bigger, I just want it to stay in the same place wether I change the size of the window or not.
Obviously it will change position if you specify location relative right and bottom, since you are CHANGING where right and bottom is.
Place it relative top and left instead.
Also in the above posted code there are a few errors. It should look something like this
<div style="position:absolute; left:300px; top:495px">
Code One
03-02-2003, 08:09 PM
I just got rid of that dang <div blah blah> tag, cuz it sucks!!!!
I just went like this:
<img src="blah.bmp" align="middle">
That did the trick . .
thanks for the help though
CO
Stefan
03-02-2003, 08:11 PM
Originally posted by Code One
I just got rid of that dang <div blah blah> tag, cuz it sucks!!!!
I just went like this:
<img src="blah.bmp" align="middle">
That did the trick . .
thanks for the help though
CO
align="middle" does NOT solve the problem you are describing. The image will STILL move when you change the size of your window.
Code One
03-02-2003, 08:43 PM
I tested it and it works just fine . . . oh well maybe I should also tell you that I added the ugly looking but useful code: -&-n-b-s-p-;- to span across the entire table locking it in place horzontially, and the align=middle code locks it in the middle.
Its primative but effective.
Code One