Click to See Complete Forum and Search --> : How to place a new HTML on a specific place on the screen?


haan
09-28-2003, 01:47 AM
Is it possible to start a new HTML somewhere else than as usual I mean bebinnning in the top left corner of the screen? Can I make it so that it starts form example top: 200 and left: 150?

Fang
09-28-2003, 03:29 AM
<p style="position:absolute; top:200px; left:150px;">Some text<p>
Read up on the basics (http://www.w3schools.com/css/css_positioning.asp) or the details (http://www.w3.org/TR/REC-CSS2/)

haan
09-28-2003, 04:16 AM
Sorry, probably I'm not clear. With your suggestion the text or image can be positioned as you say but the HTMP itself still starts in the left top corner. I'm making a gallery with small pop-ups which are HTML's that can be started by the user. Now I don't know how to prevent them from all be positioned in the upper left corner. Is there a way to solve this problem?

Fang
09-28-2003, 06:07 AM
msgWindow = window.open('mypage.html','newWin','width=100,height=100,top=200,left=150');

haan
09-28-2003, 10:40 AM
Great. Perfect!

Kippie