Welcome to WebmasterWorld Guest from 54.224.41.46

Forum Moderators: not2easy

Message Too Old, No Replies

Opera and positioning

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

Full Member

10+ Year Member

joined:Jan 9, 2003
posts:330
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


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)

Full Member

10+ Year Member

joined:Jan 9, 2003
posts:330
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


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)

Full Member

10+ Year Member

joined:Jan 9, 2003
posts:330
votes: 0


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)

New User

10+ Year Member

joined:Jan 27, 2003
posts:28
votes: 0


<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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members