Welcome to WebmasterWorld Guest from 54.211.17.91

Forum Moderators: not2easy

Message Too Old, No Replies

Opera and positioning

   
5:21 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



Opera (6.05) displays the following code at the very left of the browser window. What can I do?

<div style="position: absolute; right: 5px; top: 5px">
<img src="pic.jpg" alt="Alt" />
</div>

Thanks,
globay

5:37 pm on Apr 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can think of three ways:

1) Specify a width to the div that's the same as the image.

2) Use text-align: right; on the div.

3) Position the image itself without the wrapper div.

Hope that helps.

6:07 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



1 ) did not work!
2 ) works perfectly
3 ) the shortest way, the way I will stick with!

Thanks alot birdman!

--
globay

6:26 pm on Apr 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm...The first way was the only way I tested and it worked for me but as you said, #3 makes more sense.

Birdman

6:34 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



The first one was the only one I came up with.

Fortunately, it didn't work. Now I use the shorter form. ;-)

7:53 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



<div style="[b]display:block;[/b] position: absolute; [b]left:auto;[/b] right: 5px; top: 5px"> 
<img src="pic.jpg" alt="Alt" />
</div>

I've seen instances where this has worked.

DE

 

Featured Threads

Hot Threads This Week

Hot Threads This Month