Button float: left; : button « Form « HTML / CSS






Button float: left;

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style rel="stylesheet" type="text/css">


.post {
  width: 675px;
  float: left;
  margin: 15px 0 40px 2px
}

#comment {
  background-image: url(images/comment-bg.gif);
  background-position: top left;
  background-repeat: no-repeat;
  width: 463px;
  height: 236px;
  float: left;
  padding: 14px 0 0 18px
}

#comment h5 {
  font-family: Arial;
  font-size: 12px;
  color: #140A00;
  font-weight: bold;
  padding: 0 0 10px 0
}

#comment p {
  line-height: 28px;
  width: 445px;
  float: left;
}

#comment span {
  line-height: 28px;
  padding: 0 8px 0 0;
  width: 63px;
  display: block;
  float: left;
  text-align: right
}

#comment input {
  float: left;
  height: 15px;
  width: 188px;
  border-bottom: 1px solid #847F7A;
  border-right: 1px solid #847F7A;
  border-top: 2px solid #847F7A;
  border-left: 2px double #847F7A;
  margin: 4px 0 0 0
}

#comment textarea {
  float: left;
  height: 72px;
  width: 370px;
  border-bottom: 1px solid #847F7A;
  border-right: 1px solid #847F7A;
  border-top: 2px solid #847F7A;
  border-left: 2px double #847F7A;
  margin: 4px 0 0 0;
  overflow: hidden
}

#comment button {
  border: 0px;
  width: 103px;
  height: 24px;
  padding: 0px;
  background: none;
  float: left;
  margin: 10px 0 0 70px;
  display: inline
}

</style>
</head>
<body>
       <div id="posts">
      <h1>SEO of sites using Social Networks</h1>
      
      <div class="post">
        Illum secundum exerci erat plaga illum, enim, venio. Tamen causa ut diam torqueo sagaciter inhibeo si quae exerci lobor- tis. Appellatio vel hos autem, ludus luptatum mauris ratis jugis interdico. Gilvus consequat abico demoveo lenis validus typicus ut commodo. Consequat, eu voco cui eros, euismod quis illum, commodo. Nibh valde tincidunt ex quae ratis meus neo aliquam. Esse, in damnum tation accumsan premo antehabeo mauris in in, ullamcorper virtus. Blandit te valde tation comis sed consequat hendrerit blandit oppeto brevitas amet illum camur quis. Iaceo tamen consequat inhibeo, consequat scisco sino iriure virtus vulpes nostrud. Accumsan ratis feugait vero dolus quae velit nimis facilisis, erat, ullamcorper, valde minim. <br />
        Bis vel, consectetuer dignissim velit feugiat quis. Autem exputo, metuo augue enim metuo, ut. Vicis neo et suscipere occuro haero feugiat paulatim. Vel velit erat, nullus ratis scisco, epulae aptent ullamcorper imputo. Decet, vulpes premo eros populus at abigo genitus. Hendrerit augue imputo fatua jugis, mara persto aliquip ad dolore luptatum velit. Probo abbas nisl tego, diam refoveo ea. Enim melior fatua jugis loquor delenit damnum jus luptatum fe Augue vindico valetudo qui, demoveo. Pagus importunus feugiat augue magna tation vereor utrum dolor. 
        Illum secundum exerci erat plaga illum, enim, venio. Tamen causa ut diam torqueo sagaciter inhibeo si quae exerci lobor- tis. Appellatio vel hos autem, ludus luptatum mauris ratis jugis interdico. Gilvus consequat abico demoveo lenis validus typicus ut commodo. Consequat, eu voco cui eros, euismod quis illum, commodo. Nibh valde tincidunt ex quae ratis meus neo aliquam. Esse, in damnum tation accumsan premo antehabeo mauris in in, ullamcorper virtus. Blandit te valde tation comis sed consequat hendrerit blandit oppeto brevitas amet illum camur quis. Iaceo tamen consequat inhibeo, consequat scisco sino iriure virtus vulpes nostrud. Accumsan ratis feugait vero dolus quae velit nimis facilisis, erat, ullamcorper, valde minim. <br />
        Bis vel, consectetuer dignissim velit feugiat quis. Autem exputo, metuo augue enim metuo, ut. Vicis neo et suscipere occuro haero feugiat paulatim. Vel velit erat, nullus ratis scisco, epulae aptent ullamcorper imputo. Decet, vulpes premo eros populus at abigo genitus. Hendrerit augue imputo fatua jugis, mara persto aliquip ad dolore luptatum velit. Probo abbas nisl tego, diam refoveo ea. Enim melior fatua jugis loquor delenit damnum jus luptatum fe Augue vindico valetudo qui, demoveo. Pagus importunus feugiat augue magna tation vereor utrum dolor. 
        <div class="link-after-post">
          <a href="#">Permalink</a>
        </div>
      </div>
      <div id="comment">
        <h5>Add a comment</h5>
        <form action="#">
          <p><span>Name:</span> <input type="text" /></p>
          <p><span>URL:</span> <input type="text" /></p>
          <p><span>E-mail:</span> <input type="text" /></p>
          <p><span>Comment:</span> <textarea></textarea></p>
          <button type="submit"><img src="images/add.gif" alt="" width="98" height="24" /></button>
        </form>
      </div>
    </div>

</body>

</html>

   
    
  








Related examples in the same category

1.'button' Example
2.Form button with label
3.Buttons using the button element
4.input types "submit" and "reset" insert buttons for submitting and clearing the form's contents
5.Define class for input button control
6.Set submit button style for input
7.Style for reset button
8.Style for button submit
9.Hide submit button
10.Set style for submit button: border, background color, padding, margin and width
11.Set style for submit hover: text decoration
12.Set margin and width for submit button
13.Set text-transform: uppercase for button
14.Change form button style
15.button font: bold 12px Arial, Sans-serif;
16.button height: 24px;
17.button color: #333;
18.button background: #e7e6e6 url(MarketPlace-images/button.jpg) repeat-x;
19.button border: 1px solid #dadada;
20.button margin: 0;
21.button font: bold 1em Arial, Sans-serif;
22.button border: 1px solid #EFEFEF;
23.button padding: 2px 3px;
24.button background: #F1F0E4;
25.Button border-bottom: 1px solid #d8d8d8;
26.Button border-left: 4px solid #ccc;
27.Button border-right: 1px solid #d8d8d8;
28.Button border-top: 1px solid #d8d8d8;
29.Button color: #505050;
30.Button font-weight: 700;
31.Button margin: 0 0 15px;
32.Button padding: 7px 7px 7px 11px;
33.Button width: 120px;
34.Button background-image: url(images/button.gif);
35.Button background-position: top left;
36.Button background-repeat: no-repeat;
37.Button background-color: #FFFFFF;
38.Button width: 128px;
39.Button border: 0px;
40.Button margin: 7px 0 5px 7px;
41.Button padding: 3px 0 6px 0;
42.Button cursor: hand;
43.Button cursor: pointer;
44.Button color: #2C2C2C;
45.Button font-family: Tahoma;
46.Button font-size: 11px;
47.Button width: 103px;
48.Button padding: 0px;
49.Button background: none;
50.Button margin: 10px 0 0 70px;
51.Button display: inline
52.button { line-height: 2; vertical-align: top; }