Menu
Hi,
I have been trying to figure this out for the last three days or so but if you can go to [url]http://dnet.apc-compunet.co.uk/main/login/recover/
But if you then go to it in i.e there is major difference and i cant seam to figure out why.
If you can help me that would be gr8, feel free to view source and css files.
Thank you so much in advance
Adam
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
what does the doc type do exactly and what differences can strict and transitional have.
[/QUOTE]
#cu_table td
{
border: solid 1px black;
margin: 0;
padding: 3px;
font: small Verdana,sans-serif;
text-align: left;
vertical-align:top;
width: 100%;
}
The doc-type tells the browser that you want it to conform to the W3C standards. I think the difference is that 'strict' is well... strict - you have to write good code and separate the presentation (which goes in the stylesheet) from the content (html). 'Transitional' allows deprecated tags such as <align="right">. I thought (though after searching I couldn't find anything to confirm this) that a 'loose' DTD let IE use quirks mode, which is bad. [/QUOTE]
I hope this helps.
... the HTML 4.01 Transitional(loose) DTD, which includes presentation attributes and elements that W3C expects to phase out as support for style sheets matures.
Authors should use the Strict DTD when possible, but may use the transitional DTD when support for presentation attribute and elements is required.[/QUOTE]
You have placed the width:100% in .cu_tdlbl. a class that is not used.
It should go in .cu_td, which could be removed and replaced by:[/QUOTE]
<form action="/main/login/recover/index.php?val=1" method="post">
<table class="cu_table">
<colgroup style="width:100%"><col></col><col></col></colgroup>
<tr>
<th colspan="2" class="cu_th"><p>Request a new username.</p>
<p class="cu_thsml">* Required entry</p></th>
</tr>
<tr>
<td><label for="PE_EmailAddress">*Email Address:</label></td>
<td><input id="PE_EmailAddress" name="E_EmailAddress" type="text" maxlength="150" size="25" style="margin-right:2em;" value="" /></td>
</tr>
<tr>
<td><label for="Password">*Password:</label></td>
<td><input id="Password" name="Password" type="password" maxlength="50" size="25" /></td>
</tr>
<tr>
<td colspan="2">
<div class="cu_proccess">
<input name="submit" type="submit" class="buttons" value="Submit" />
</div>
</td>
</tr>
</table>
</form>
<div style="width:40em;">
<div style="width:100%; border:1px solid black; padding:2px;">
<label style="float:left;" for="PE_EmailAddress">*Email Address:</label>
<input style="float:right;margin-right:3em;width:16em" id="PE_EmailAddress" name="E_EmailAddress" type="text" maxlength="150" value="" />
</div>
<div style="width:100%; border:1px solid black; border-top:0; padding:2px;">
<label style="float:left;" for="Password">*Password:</label>
<input style="float:right;margin-right:3em;width:16em" id="Password" name="Password" type="password" maxlength="150" value="" />
</div>
</div>
[code=html]<form action="/main/login/recover/index.php?val=1" method="post">
<table class="cu_table">
<tr>
<th colspan="2"><p>Request a new username.</p>
<p class="cu_thsml">* Required entry</p></th>
</tr>
<tr>
<td><label for="Username Email Address">*Email Address:</label></td>
<td><input id="Username Email Address" name="E_EmailAddress" type="text" maxlength="150" class="cu_input_large" value="" /></td>
</tr>
<tr>
<td><label for="Password">*Password:</label></td>
<td><input id="Password" name="Password" type="password" maxlength="50" class="cu_input_medium" /></td>
</tr>
<tr>
<td><label for="somin">*somin else:</label></td>
<td><input id="somin" name="somin" type="text" maxlength="50" class="cu_input_small" /></td>
</tr>
<tr>
<td colspan="2">
<div class="cu_proccess">
<input name="submit" type="submit" class="buttons" value="Submit" />
</div>
</td>
</tr>
</table>
</form>
/* 3 Input sizes, large, medium and small and the total including the right margin much add up to 240px (total width of the right column) */
.cu_input_large {
width:240px;
}
.cu_input_medium {
width:175px;
margin-right:65px;
}
.cu_input_small {
width:100px;
margin-right:140px;
}[/code]
0.1.9 — BETA 5.17