homepage Welcome to WebmasterWorld Guest from 54.83.133.189
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
Opera and positioning
globay




msg:1212511
 5:21 pm on Apr 29, 2003 (gmt 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

 

Birdman




msg:1212512
 5:37 pm on Apr 29, 2003 (gmt 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.

globay




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

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

Thanks alot birdman!

--
globay

Birdman




msg:1212514
 6:26 pm on Apr 29, 2003 (gmt 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

globay




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

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

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

DCElliott




msg:1212516
 7:53 pm on Apr 29, 2003 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved