View Full Version : aligning and centering images and text

Dec 3rd, 2002, 11:19 AM

How does one align and centre both images(jpgs/gifs etc) and text (in document.write("") method) in javascript in an html doc?
So for example an image is centred at the top of the browser and text is centred or aligned right or left?

Also what fonts are supported by javascript and how to change font and size please.

Many Thanks

Dec 3rd, 2002, 11:28 AM
it is basically a HTML question.
if you know this stuff in HTML, it's just a matter of outputting them using Javascript