Rowan,

Did you try the easy clearing method?

on Thursday, January 5, 2006 at 10:09 [email protected] wrote:


CSS:

dt {
        float: left;
        clear: left;
        width: 9.5em;
        font-weight: bold;
        text-align: right;
}
dd {
        margin-left: 9.5em;
}
dd.last:after {
     visibility: hidden;
     clear: left;
     font-size: 0;
     height: 0;
     display: block;
     content: ".";
}

HTML:
<form action="/" method="post">
  <fieldset>
    <legend>Login Details</legend>
    <dl>
      <dt><label for="user">Username</label></dt>
      <dd><input type="text" name="user" id="user" /></dd>
      <dt><label for="pass">Password</label></dt>

      <dd class="last"><input type="password" name="pass" id="pass" /></dd>

    </dl>
  </fieldset>
  <div class="buttons">
    <input type="submit" value="Login" />
  </div>
</form>

I did not test this but I'm pretty sure that it'll work.

regards

  Martin

 



******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to