View Full Version : Please Help Urgent


uv
11-06-2004, 10:57 AM
Hello all,
I'm new to JavaScript and I'm trying to createthe following HTML page:

In the page where should be 2 graphical elements: size of 50x50 pixels
(red DIV and a blue DIV).

The blue should be centered , and the red must be 200 pixels below the blue ,and 20 pixels to it's(the blue) left.

Now, whenever I resize the window, the blue should appear right at the middle..(centered) and the red should move accordingly to it's (the blue) left & bottom...

Thanks ,
Please Help !!! :confused:

relaxzoolander
12-19-2004, 12:53 AM
div positioning is a job for css...not javascript.
try w3schools.com/css/default.asp for css basics.
come back with more detailed questions if you need more help.

SEO_AM
12-19-2004, 01:32 AM
Is that THE MAN!! RZ you back or just making an appearance? Sure hope it is the former. :cool: