Comments form 4 : Comment « CSS Controls « HTML / CSS






Comments form 4

  
<!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" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />

<style type='text/css'>
/* --------------------------------------------------

   AUTHOR           :    Erwin Aligam
   WEBSITE          :   http://www.styleshout.com/
   TEMPLATE NAME    :   Enlighten
   TEMPLATE CODE    :   S-0011
   VERSION          :   1.2
   LAST MODIFIED    :   January 19, 2010

----------------------------------------------------- */
 
/* --------------------------------------------------
   HTML ELEMENTS
----------------------------------------------------- */

/* top elements */
* { padding: 0; margin: 0; outline: 0;}

body {
  margin: 20px 0;   padding: 0;
  font: normal .72em/1.5em 'Trebuchet MS', sans-serif;
  color: #444;
  background: #6D5434;
  text-align: center;  
  height: 100%;  
}

/* links */
a { background: inherit; color: #993333; text-decoration: none; }
a:hover { background: inherit; color: #006699; text-decoration: underline; }

/* headers */
h1, h2, h3 {
  font: bold 1em 'Trebuchet MS', Tahoma, Sans-serif;
  color: #333;
}
h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; text-transform: uppercase;}
h3 { font-size: 1.2em; }

p, h1, h2, h3 {
  margin: 10px 15px;
}
ul, ol {
  margin: 10px 30px;
  padding: 0 15px;    
}

/* images */
img {
  border: 1px solid #DDD; 
  padding: 8px;
  background-color: #FFF;
}
img.float-right {
  margin: 5px 0px 5px 15px;  
}
img.float-left {
  margin: 5px 15px 5px 0px;
}

code {
  margin: 5px 0;
  padding: 10px;
  text-align: left;
  display: block;
  overflow: auto;  
  font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace;
  /* white-space: pre; */
  background: #FAFAFA;
  border: 1px solid #eee;    
}
acronym {
  cursor: help;
  border-bottom: 1px solid #777;
}
blockquote {
  margin: 15px;   padding: 0 0 0 20px;    
    background: #FAFAFA url(Enlighten-images/quote.gif) no-repeat 3px 5px; 
  border: 1px solid #eee; 
  font: bold 1.2em/1.5em 'Trebuchet MS', Tahoma, sans-serif; 
  color: #666666;  
}

/* start - table */
table {
  border-collapse: collapse;
  margin: 15px;  
}
th strong {
  color: #fff;
}
th {
  background: #993333;
  height: 29px;
  padding-left: 12px;
  padding-right: 12px;
  color: #FFF;
  text-align: left;
  border-left: 1px solid #D68686;
  border-bottom: solid 2px #FFF;
}
tr {
  height: 30px;
}
td {
  padding-left: 11px;
  padding-right: 11px;
  border-left: 1px solid #E8E8E8;
  border-bottom: 1px solid #DFDFDF;
}
td.first,th.first {
  border-left: 0px;
}
tr.row-a {
  background: #F8F8F8;
}
tr.row-b {
  background: #EFEFEF;    
}
/* end - table */

/* form elements */
form {
  margin:10px 15px; padding: 0;
  border: 1px solid #eee; 
  background-color: #FAFAFA; 
}
label {
  display:block;
  font-weight:bold;
  margin:5px 0;
}
input {
  padding: 2px;
  border:1px solid #eee;
  font: normal 1em 'Trebuchet MS', verdana, sans-serif;
  color:#777;
}
textarea {
  width:400px;
  padding:2px;
  font: normal 1em 'Trebuchet MS', verdana, sans-serif;
  border:1px solid #eee;
  height:100px;
  display:block;
  color:#777;
}
input.button { 
  margin: 0; 
  font: bold 1em Arial, Sans-serif; 
  border: 1px solid #CCC;
  background: #FFF; 
  padding: 2px 3px; 
  color: #333;  
}

/* search form */
.searchform {
  background-color: transparent;
  border: none;  
  margin: 0; padding: 0;  
}
.searchform p { margin: 10px; padding: 0; }
.searchform input.textbox { 
  width: 130px;
  color: #333; 
  height: 20px;
  padding: 2px;  
  vertical-align: top;
}
.searchform input.button { 
  font: bold 12px Arial, Sans-serif; 
  color: #333;  
  width: 60px;
  height: 26px;
  border: none;
  padding: 3px 5px;  
  vertical-align: top;
}

/***********************
    LAYOUT
************************/
#wrap {
  width: 770px;
  margin: 0 auto;
  background: #FFF url(Enlighten-images/wrap-bg.jpg) repeat-y;
}

/* header */
#header {
  position: relative;
  height: 176px;
  text-align: left;    
  margin: 0; padding: 0;  
  background: #FFF;
}
#header .headerphoto {
  position: absolute;
  right: 15px ; top: 15px;
  width: 455px;
  height: 156px;
  background: #FFF url(Enlighten-images/headerphoto.jpg) no-repeat;  
}
#header #logo-box {
  position: absolute;
  left: 15px ; top: 15px;
  width: 280px;
  height: 156px;  
  background: #4E3525;
}
#logo-box h1#logo {
  position: absolute;  
  font: bold 50px 'Trebuchet MS', Sans-serif;
  letter-spacing: -2px; 
  color: #FFF;
  margin: 0; padding: 0;
  
  /* change the values of left and top to adjust the position of the logo */
  top: 25px; left: 34px;
}
#logo-box h1#logo a {
  text-decoration: none;
  color: #FFF;
}
#logo-box #slogan {
  position: absolute;  
  font: bold 12px 'Trebuchet Ms', Sans-serif;
  text-transform: none;
  color: #FFFFCC;  
  margin: 0; padding: 0;
  
  /* change the values of left and top to adjust the position of the slogan */
  top: 88px; left: 60px;
}

/* header menu */
#menu {  
  clear: both;
  margin: 0; 
  padding: 0 0 10px 0;    
  width: 770px;    
  background: #FFF url(Enlighten-images/wrap-bg.jpg) repeat-y;
  float: left;
}
#menu ul {
  font: bolder 14px 'Trebuchet MS', sans-serif;
  width: 740px;
  color: #FFF;
  background-color: #4E3525;       
  margin: 0 15px;
  padding: 0;
  display: inline;
  border-bottom: 6px solid #FFF;
  float: left;  
}
#menu li {
  float: left;
  list-style: none;
}
#menu li a {
  display: block;
  padding: 5px 15px;  
  color: #FFF;  
  text-decoration: none;  
}
#menu li a:hover {
  background: #C8935D;
  color: #FFF;
}
#menu li a#current  {
  background: #993333;
  color: #FFF;
}

/* content */
#content-wrap {
  clear: both;
  float: left;
  width: 100%;
  background: #FFF url(Enlighten-images/content.jpg) repeat-y;
}
#content {
  width: 740px;  
  clear: both;
  text-align: left;  
  padding: 0;
  margin: 0 auto;      
}

/* sidebar */
#sidebar {
  float: right;
  width: 30%;
  margin: 0 0 10px 0; padding: 0;  
}  
#sidebar h1 {
  padding: 10px 0px 5px 10px;
  margin: 0;  
  color: #660000;  
}
.sidebox {
  margin-bottom: 10px;  
}

/* sidebar menu */
#sidebar ul.sidemenu {
  list-style:none;
  margin: 10px 0 15px 0;
  padding: 0;    
}
#sidebar ul.sidemenu li {
  padding: 0px 10px;
}
#sidebar ul.sidemenu a {
  display:block;
  font-weight:normal;
  color: #333;
  height: 1.5em;  
  padding:.3em 0 .3em 15px;
  line-height: 1.5em;
  border-bottom: 1px dashed #D5D5D5;
  text-decoration:none;
}
#sidebar ul.sidemenu a.top{  
  border-top: 1px dashed #D5D5D5;
}
#sidebar ul.sidemenu a:hover {
  padding: .3em 0 .3em 10px;
  border-left: 5px solid  #993333;
  color: #993333;    
}

/* main */
#main {
  float: left;
  width: 67%;  
  margin: 0 0 10px 0; padding: 0;  
}
#main h1 {
  padding: 10px 0 5px 5px;
  margin: 0 0 0 10px;
  border-bottom: 1px dashed #D5D5D5;   
}
#main ul li {
  list-style-image: url(Enlighten-images/bullet.gif);
}

.post {
  margin: 0; padding: 0;  
}
.post .post-footer {
  background-color: #fafafa;
  padding: 5px; margin-top: 20px;
  font-size: 95%;
  border: 1px solid #eee;
}
.post .post-footer .date {
  background: url(Enlighten-images/clock.gif) no-repeat 0 center;
  padding-left: 20px; margin: 0 10px 0 5px;
}
.post .post-footer .comments {
  background: url(Enlighten-images/comment.gif) no-repeat 0 center;
  padding-left: 20px; margin: 0 10px 0 5px;
}
.post .post-footer .readmore {
  background: url(Enlighten-images/page.gif) no-repeat 0 center;
  padding-left: 20px; margin: 0 10px 0 5px;
}

/* footer */
#footer {
  clear: both;
  margin: 0; padding: 12px 0 0 0;
  font: normal .92em/1.5em 'Trebuchet MS', Tahoma, Arial, sans-serif;
  height: 45px;
  background: url(Enlighten-images/footer-bg.jpg) no-repeat left bottom;
  color: #666666;
  text-align: center;
}
#footer p {
  margin: 0; padding: 0;
}
#footer a {
  text-decoration: none;
  color: #993333;
}
#footer a:hover {
     color: #333;
}

/* alignment classes */
.float-left  { float: left; }
.float-right { float: right; }
.align-left  { text-align: left; }
.align-right {  text-align: right; }

/* additional classes */
.clear { clear: both; }
.gray  { color: #BFBFBF; }



</style>



<title>Enlighten</title>
  
</head>

<body>

<!-- wrap starts here -->
<div id="wrap">

  <div id="header">    
    
    <div id="logo-box">    
      <h1 id="logo"><a href="index.html" title="">enlighten</a></h1>  
      <h2 id="slogan">Put your site slogan here...</h2>    
    </div>        
        
    <div class="headerphoto"></div>
  
  </div>
  
  <div id="menu">
    <ul>
      <li><a href="index.html" id="current">Home</a></li>
      <li><a href="index.html">News</a></li>
      <li><a href="index.html">Downloads</a></li>
      <li><a href="index.html">Support</a></li>
      <li><a href="index.html">About</a></li>      
    </ul>  
  </div>
        
  <!-- content-wrap starts here -->
  <div id="content-wrap"><div id="content">        
    
    <!-- sidebar starts here -->
    <div id="sidebar" >
    
      <div class="sidebox">
      
        <h1>Short About</h1>
        
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. 
        Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu 
        posuere nunc justo tempus leo.</p>  
            
      </div>      

      <div class="sidebox">  
      
        <h1 class="clear">Sidebar Menu</h1>
        <ul class="sidemenu">
          <li><a href="index.html" class="top">Home</a></li>
          <li><a href="#TemplateInfo">Template Info</a></li>
          <li><a href="#SampleTags">Sample Tags</a></li>
          <li><a href="http://www.styleshout.com/">More Templates</a></li>
          <li>
          <a href="http://www.buywebtemplates.net" title="Web Templates">Web Templates</a></li>
        </ul>  
        
      </div>  
      
      <div class="sidebox">  

        <h1>Sponsors</h1>
        <ul class="sidemenu">
                    <li><a href="http://www.dreamtemplate.com" title="Website Templates"  class="top">DreamTemplate</a></li>
                    <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li>
                    <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li>
                    <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li>
                    <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li>
                    <li><a href="http://www.ehostinfo.com/" title="Web Hosting">Web Hosting</a></li>
        </ul>
        
      </div>
      
      <div class="sidebox">  
      
        <h1>Wise Words</h1>
        <p>&quot;If my life is fruitless, it does not matter who 
        praises me, and if my life is fruitful, it does not 
        matter who criticizes me.&quot;</p>          
        <p class="align-right">- John Bunyan</p>
          
      </div>    
      
      <div class="sidebox">
      
        <h1>Support Styleshout</h1>
        <p>If you are interested in supporting my work and would like to contribute, you are
        welcome to make a small donation through the 
        <a href="http://www.styleshout.com/">donate link</a> on my website - it will 
        be a great help and will surely be appreciated.</p>  
        
      </div>
      
      <div class="sidebox">  
            
        <h1>Search Box</h1>  
        <form action="#" class="searchform">
          <p>
          <input name="search_query" class="textbox" type="text" />
            <input name="search" class="button" value="Search" type="submit" />
          </p>      
        </form>      
        
      </div>
          
    </div>  
  
    <!-- main starts here -->
    <div id="main">    
    
      <div class="post">
      
        <a name="TemplateInfo"></a>
        <h1>Template Info</h1>
        
        <p>Posted by <a href="index.html">ealigam</a></p>

                <p><strong>Enlighten</strong> is a free, W3C-compliant, CSS-based website template
                by <a href="http://www.styleshout.com/">styleshout.com</a>. This work is
                distributed under the <a rel="license" href="http://creativecommons.org/licenses/by/2.5/">
                Creative Commons Attribution 2.5  License</a>, which means that you are free to
                use and modify it for any purpose. All I ask is that you give me credit by including a <strong>link back</strong> to
                <a href="http://www.styleshout.com/">my website</a>.
                </p>

                <p>
                You can find more of my free template designs at <a href="http://www.styleshout.com/">my website</a>.
                For premium commercial designs, you can check out
                <a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate.com</a>.
                </p>
        
        <p class="post-footer align-right">          
          <a href="index.html" class="readmore">Read more</a>
          <a href="index.html" class="comments">Comments (7)</a>
          <span class="date">Jan 09, 2007</span>  
        </p>
        
      </div>
      
        <a name="SampleTags"></a>
        <h1>Sample Tags</h1>
        
        <h3>Code</h3>        
        <p><code>
        code-sample { <br />
        font-weight: bold;<br />
        font-style: italic;<br />        
        }
        </code></p>  
      
        <h3>Example Lists</h3>
      
        <ol>
          <li>here is an example</li>
          <li>of an ordered list</li>              
        </ol>  
            
        <ul>          
          <li>here is an example</li>
          <li>of an unordered list</li>              
        </ul>        
        
        <h3>Blockquote</h3>      
        <blockquote><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy 
        nibh euismod tincidunt ut laoreet dolore magna aliquam erat....</p></blockquote>
      
        <h3>Image and text</h3>
        <p>
        <a href="http://getfirefox.com/"><img src="images/firefox-gray.jpg" width="100" height="121" alt="firefox-gray"  class="float-left" /></a>
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. 
        Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu 
        posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum, dui pede condimentum 
        odio, ac blandit ante orci ut diam. Cras fringilla magna. Phasellus suscipit, leo a pharetra 
        condimentum, lorem tellus eleifend magna, eget fringilla velit magna id neque. Curabitur vel urna. 
        In tristique orci porttitor ipsum. Aliquam ornare diam iaculis nibh. Proin luctus, velit pulvinar 
        ullamcorper nonummy, mauris enim eleifend urna, congue egestas elit lectus eu est.                 
        </p>
        
        <h3>Table Styling</h3>              
      
        <table>
          <tr>
            <th class="first"><strong>post</strong> date</th>
            <th>title</th>
            <th>description</th>
          </tr>
          <tr class="row-a">
            <td class="first">06.18.2007</td>
            <td><a href="index.html">Augue non nibh</a></td>
            <td><a href="index.html">Lobortis commodo metus vestibulum</a></td>
          </tr>
          <tr class="row-b">
            <td class="first">06.18.2007</td>
            <td><a href="index.html">Fusce ut diam bibendum</a></td>
            <td><a href="index.html">Purus in eget odio in sapien</a></td>
          </tr>
          <tr class="row-a">
            <td class="first">06.18.2007</td>
            <td><a href="index.html">Maecenas et ipsum</a></td>
            <td><a href="index.html">Adipiscing blandit quisque eros</a></td>
          </tr>
          <tr class="row-b">
            <td class="first">06.18.2007</td>
            <td><a href="index.html">Sed vestibulum blandit</a></td>
            <td><a href="index.html">Cras lobortis commodo metus lorem</a></td>
          </tr>
        </table>
      
        <h3>Example Form</h3>
        <form action="#">      
          <p>      
          <label>Name</label>
          <input name="dname" value="Your Name" type="text" size="30" />
          <label>Email</label>
          <input name="demail" value="Your Email" type="text" size="30" />
          <label>Your Comments</label>
          <textarea rows="5" cols="5"></textarea>
          <br />  
          <input class="button" type="submit" />    
          </p>    
        </form>        
        
        <br />  
              
    <!-- main ends here -->                
    </div>        
        
  <!-- content-wrap ends here -->    
  </div></div>

  <div id="footer">
      <p>
      &copy; 2010 Your Company |
        Design by <a href="http://www.styleshout.com/">styleshout</a> |
    <a href="http://www.cssportal.com/">CSS Portal</a> |
      Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> |
          <a href="http://validator.w3.org/check/referer">XHTML</a>
      </p>
  </div>
  
<!-- wrap ends here -->
</div>

</body>
</html>

   
    
  








Related examples in the same category

1.Post comment layout
2.Sidebar with latest comments
3.Comments form
4.Comments form 2
5.Read more and comments bar
6.Comments form 3
7.Comments form 5
8.Comments form 6
9.Comments form template
10.Comments form with background
11.Post by date
12.Contact information panel
13.?Add Comments.doc
14.Comments Form 7
15.Read more and comments
16.Comments form 8
17.Read more and comment links
18.Comment form
19.Comments form 9
20.Comment links below the summary