HighDots Forums  

moving div against edge of body tag

Javascript JavaScript language (comp.lang.javascript)


Discuss moving div against edge of body tag in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
SAM
 
Posts: n/a

Default Re: moving div against edge of body tag - 11-06-2009 , 10:11 AM






Le 11/6/09 3:45 PM, Osmo Saarikumpu a écrit :
Quote:
Thomas 'PointedEars' Lahn kirjoitti:
Osmo Saarikumpu wrote:
SAM kirjoitti:
#baner { position: absolute; top: 0; left:0;
width: 300px; height: 200px; }
..option { width: 100% }

The latter style rule is superfluous for:

No, it is not.

I'm sure that you are right, I can't see why, though. I suspect that I
may have some kind of blind spot with selectors.
In fact it would have to be :

<style type="text/css">
#baner { position: absolute; top: 0; left:0;
width: 200px; height: 200px; }
#baner.option { width: 100%; }
</style>

(tested Firefox)
--
sm

Reply With Quote
  #12  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: moving div against edge of body tag - 11-07-2009 , 12:44 PM






In comp.lang.javascript message <4271fbfd-5909-4704-a43f-78c86cfcb119@d5
g2000yqm.googlegroups.com>, Fri, 6 Nov 2009 06:33:31, Captain Paralytic
<paul_lautman (AT) yahoo (DOT) com> posted:
Quote:
On 4 Nov, 20:46, "Netman" <net... (AT) poczta (DOT) onet.pl> wrote:
Hello!

Is it possible to move div against the edge of body tag?
I would like to have div located in the same place on every monitor
nevermind if it is high resolution or low and nevermind if it is panoramic
monitor or old ordinary crt monitor or notebook monitor

If so, please give me the example how to move div...

I'm afraid it is impossible. DIVs and indeed any other browser based
content (apart from maybe a javascript alert), can only remain within
the confines of the browser itself.
All that seems absolutely necessary, in at least some browsers including
Firefox and Safari, is to put the DIV within a suitably-positioned child
window generated with window.open :

xx = window.open("", "")
xx.document.writeln("<pre>ABCDEFG<\/pre>")
xx.moveTo(10,10)
xx.document.close()

Settings may affect whether it opens a new window or a new tab.
You may need to advise the user on those and other settings.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF3 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.