"Hans Börjesson" <hansb@vendimo.REM.com> wrote:
> Is it possible to use nested <div> tags?
Of course. Wasn't this easy to check from HTML specifications?
> The sample is not html validated
Why bother playing with it then? You can throw all kinds of tag soups
and sallads at browsers and watch them misbehave, but it's not
civilized entertainment.
> and require javascript to be enabled
Well, then it's not an HTML problem and surely has nothing to do with
the question on the Subject line.
> <div id="div1" name="div1" style="top:10;left:10;display:block;">
All correctly behaving browsers ignore that style sheet. Well,
technically they don't ignore the last declaration, but it coincides
with the initial (default) setting. This, in turn, has nothing to do
with HTML and nothing to do with JavaScript.
Hint: Create an HTML page that works robustly. Use validators to
help you in this if you understand what a DTD is. Time permitting, add
then some optional CSS. Don't forget to use available CSS checkers.
Having done this, you might try to play with JavaScript, and then
comp.lang.javascript is surely the best group to ask for help.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html