By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,244 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,244 IT Pros & Developers. It's quick & easy.

News from the builing site - some questions

P: n/a
Following the friendly advices I try to realize Strict HTML 4.01 with
CSS. It makes fun, but is not always trivial.

Changing from "tagsoup" to styles there are happening errors and some
non intended side effects:

- What is wrong here?
Line 33, column 69: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

...50px;" type="Submit" name="submit" value="CDOrg">

29: <table border cellspacing=1>
30: <tr>
31: <td align="center" style="width:150px">
32: <form style="margin:0" action="cdorg/index.php">
33: <input style="width:150px;" type="Submit" name="submit"
value="CDOrg">
34: </form>
35: </td>

- I got a special mozilla effect to be seen in:
http://www.sonoptikon.de/artemis/index.php

The two Texts in the banner "need" so much space that the cell of the
icon gets higher. The don't need so much space in IE.

This effect happened after I took the properties away from tags into
css-stylesheet, and it seems to be a mozilla/Netscape-problem.

These are the properties in the stylsheet:
..frame { width:100%; border-spacing:1px; padding:1px; }
..icon { background-color:#EEEEEE; vertical-align:middle; padding:4px;
width:1%; height:1%}
..banner { background-color:#EEEEEE; vertical-align:middle; padding:4px; }
..lframe { background-color:#EEEEEE; vertical-align:top;
text-align:center; padding:0 }
..doc { background-color:#FFFFFF; vertical-align:top; padding:4px;
text-align:left;}

icon, banner and frame should be as small as possible (therefore by icon
1%, perhaps not very sophisticated, but works).

Thanks for help.

Werner
--
-----------------------------------------------------------
Werner Partner * Tel +49 2366 886606 * Fax: 886608
mailto:ka****@sonoptikon.de * http://www.sonoptikon.de
hören Sie Klassik: http://www.drmk.ch/
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Werner Partner wrote:
Following the friendly advices I try to realize Strict HTML 4.01 with
CSS. 29: <table border cellspacing=1>
30: <tr>
31: <td align="center" style="width:150px">
This doesn't look like HTML 4.01 strict, nor that you have dropped
layout tables.
- What is wrong here?
Line 33, column 69: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

32: <form style="margin:0" action="cdorg/index.php">
33: <input style="width:150px;" type="Submit" name="submit"
value="CDOrg">
34: </form>


The dtd that you chose requires that form elements like <input> be in a
block level container.

<FORM ACTION="cdorg/index.php" METHOD="POST">
<DIV>
<LABEL FOR="user">user number</LABEL>
<INPUT TYPE="text" NAME="user" id="user">
</DIV>
<DIV>
<INPUT TYPE="submit" VALUE="CDOrg">
</DIV>
</FORM>

--
Brian
Jul 20 '05 #2

P: n/a
Werner Partner wrote:
Following the friendly advices I try to realize Strict HTML 4.01 with
CSS. 29: <table border cellspacing=1>
30: <tr>
31: <td align="center" style="width:150px">
This doesn't look like HTML 4.01 strict, nor that you have dropped
layout tables.
- What is wrong here?
Line 33, column 69: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

32: <form style="margin:0" action="cdorg/index.php">
33: <input style="width:150px;" type="Submit" name="submit"
value="CDOrg">
34: </form>


The dtd that you chose requires that form elements like <input> be in a
block level container.

<FORM ACTION="cdorg/index.php" METHOD="POST">
<DIV>
<LABEL FOR="user">user number</LABEL>
<INPUT TYPE="text" NAME="user" id="user">
</DIV>
<DIV>
<INPUT TYPE="submit" VALUE="CDOrg">
</DIV>
</FORM>

--
Brian
Jul 20 '05 #3

P: n/a
Brian schrieb:
Werner Partner wrote:
> Following the friendly advices I try to realize Strict HTML 4.01 with
> CSS.
> 29: <table border cellspacing=1>
> 30: <tr>
> 31: <td align="center" style="width:150px">


This doesn't look like HTML 4.01 strict, nor that you have dropped
layout tables.


Yes - I'm about to change all these old designs!
- What is wrong here?
Line 33, column 69: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

32: <form style="margin:0" action="cdorg/index.php">
33: <input style="width:150px;" type="Submit" name="submit"
value="CDOrg">
34: </form>

The dtd that you chose requires that form elements like <input> be in a
block level container.

<FORM ACTION="cdorg/index.php" METHOD="POST">
<DIV>
<LABEL FOR="user">user number</LABEL>
<INPUT TYPE="text" NAME="user" id="user">
</DIV>
<DIV>
<INPUT TYPE="submit" VALUE="CDOrg">
</DIV>
</FORM>


Thanks!

That's seem to be the solution.

Werner

--
-----------------------------------------------------------
Werner Partner * Tel +49 2366 886606 * Fax: 886608
mailto:ka****@sonoptikon.de * http://www.sonoptikon.de
hören Sie Klassik: http://www.drmk.ch/
Jul 20 '05 #4

P: n/a
Brian schrieb:
Werner Partner wrote:
> Following the friendly advices I try to realize Strict HTML 4.01 with
> CSS.
> 29: <table border cellspacing=1>
> 30: <tr>
> 31: <td align="center" style="width:150px">


This doesn't look like HTML 4.01 strict, nor that you have dropped
layout tables.


Yes - I'm about to change all these old designs!
- What is wrong here?
Line 33, column 69: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

32: <form style="margin:0" action="cdorg/index.php">
33: <input style="width:150px;" type="Submit" name="submit"
value="CDOrg">
34: </form>

The dtd that you chose requires that form elements like <input> be in a
block level container.

<FORM ACTION="cdorg/index.php" METHOD="POST">
<DIV>
<LABEL FOR="user">user number</LABEL>
<INPUT TYPE="text" NAME="user" id="user">
</DIV>
<DIV>
<INPUT TYPE="submit" VALUE="CDOrg">
</DIV>
</FORM>


Thanks!

That's seem to be the solution.

Werner

--
-----------------------------------------------------------
Werner Partner * Tel +49 2366 886606 * Fax: 886608
mailto:ka****@sonoptikon.de * http://www.sonoptikon.de
hören Sie Klassik: http://www.drmk.ch/
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.