Closed Thread Icon

Topic awaiting preservation: Coordinates (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8493" title="Pages that link to Topic awaiting preservation: Coordinates (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Coordinates <span class="small">(Page 1 of 1)</span>\

 
Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 01-27-2003 19:13

I was just thinking/wondering (i need to stop doing that) why can't the 0,0 point for X/Y coordinates system that is used for absolute positioning be moved to any where else within the browser window other than TOP/LEFT? For instance why couldn't the browser programmers allow TOP/RIGHT to be the origin for 0,0 and to adjust everything from there you could use for instance -10,10 to place a DIV ten pixels from the right and ten pixels down? Anyone get my drift?

I know align right exists but that doesn't handle absolute positioning...

This could really be an exciting change for CSS if you think about it...





[This message has been edited by Boudga (edited 01-27-2003).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 01-27-2003 19:31

position:absolute;
right:10px;
bottom:10px;

=)

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 01-27-2003 19:33

I guess this is the most "natural" way. You can use <div style="position: absolute; right: 10px;">content</div> though.

edit: Grr @ Slime



[This message has been edited by HZR (edited 01-27-2003).]

Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 01-27-2003 19:39

ahh but what if you want your 0,0 origin to be top/center in the browser window? wouldn't this require a change in the CSS specs?



[This message has been edited by Boudga (edited 01-27-2003).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 01-27-2003 22:08

Ah. Well, you can always do this:

position:absolute;
left:50%;
top:50%;
margin-left:-100px; /* 100 pixels left of center */
margin-top:-100px; /* 100 pixels above center (in theory) */

« BackwardsOnwards »

Show Forum Drop Down Menu