开发者

How can I design html like this? [closed]

It's difficul开发者_JS百科t to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

How can I design my div ("Personal Information" part) to look like the example below.

How can I design html like this? [closed]


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Title</title>
    <style type="text/css">
      .personal_information label { display: inline-block; padding-right: 10px; text-align: right; width: 200px; }
    </style>
  </head>
  <body>
    <div class="personal_information">
      <h1>Booking</h1>
      <fieldset>
        <legend>Personal Information</legend>
        <label for="first_name">First Name</label><input id="first_name" name="first_name" /><br />
        <label for="last_name">Last Name</label><input id="last_name" name="last_name" />
      </fieldset>
    </div>
  </body>
</html>


This probably is a <fieldset>.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜