HTML/CSS Template - HTML 4 Transitional


/ Published in: HTML
Save to your folder(s)

HTML/CSS Template - HTML 4 Transitional


Copy this code and paste it in your HTML
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2.  
  3. "http://www.w3.org/TR/html4/loose.dtd">
  4.  
  5.  
  6.  
  7.  
  8.  
  9. <title>HTML 4.01 Transitional</title>
  10.  
  11. <meta http-equiv="content-type" content="text/html;charset=utf-8">
  12.  
  13. <meta http-equiv="Content-Style-Type" content="text/css">
  14.  
  15.  
  16.  
  17. <style type="text/css">
  18.  
  19.  
  20.  
  21. html,body {
  22.  
  23. background-color: #eae8db;
  24.  
  25. background-image: url();
  26.  
  27. background-attachment: fixed;
  28.  
  29. background-position: top;
  30.  
  31. background-repeat: no-repeat;
  32.  
  33. text-align: center; /* for center aligned sites in IE */
  34.  
  35. /* body font styles */
  36.  
  37. font-family: Arial, Helvetica, sans-serif;
  38.  
  39. font-style: normal;
  40.  
  41. font-variant: normal;
  42.  
  43. font-weight: normal;
  44.  
  45. color: #000;
  46.  
  47. text-decoration: none;
  48.  
  49. }
  50.  
  51.  
  52.  
  53. body { font-size: 76%; }
  54.  
  55. html { font-size: 100%; /* IE hack */ }
  56.  
  57. *{ margin: 0; padding: 0; }
  58.  
  59. img { border: none; }
  60.  
  61. div.clear { clear: both; height: 0;}
  62.  
  63.  
  64.  
  65. /* START: Page Formatting ------------------ */
  66.  
  67.  
  68.  
  69.  
  70.  
  71. div#pageContainer {
  72.  
  73. width: 800px;
  74.  
  75. margin: 0 auto;
  76.  
  77. background-color: #FFF;
  78.  
  79. text-align: left;
  80.  
  81. border-left: 1px solid #cac7b9;
  82.  
  83. border-right: 1px solid #cac7b9;
  84.  
  85. }
  86.  
  87.  
  88.  
  89.  
  90.  
  91. div#pageFooter {
  92.  
  93. width: 100%;
  94.  
  95. background-color: #3e4247;
  96.  
  97. border-top: 1px solid #0099ff;
  98.  
  99. text-align: left;
  100.  
  101. margin: 0 auto;
  102.  
  103. }
  104.  
  105.  
  106.  
  107. /* START: Font Styles ------------------ */
  108.  
  109.  
  110.  
  111.  
  112.  
  113. /* Headers */
  114.  
  115.  
  116.  
  117. h1 { font-size: 1.8em; font-weight: bold; color: #330000; }
  118.  
  119.  
  120.  
  121. h2 { font-size: 1.6em; font-weight: bold; color: #660000; }
  122.  
  123.  
  124.  
  125. h3 { font-size: 1.4em; font-weight: bold; color: #990000; }
  126.  
  127.  
  128.  
  129. h4 { font-size: 1.2em; font-weight: bold; color: #CC0000; }
  130.  
  131.  
  132.  
  133. h5 { font-size: 1.1em; font-weight: bold; color: #FF0000; }
  134.  
  135.  
  136.  
  137. h1.hamiltopia {
  138.  
  139. font-size: 8em;
  140.  
  141. font-weight: bold;
  142.  
  143. letter-spacing: -1.2em;
  144.  
  145. color: #D3D3D3;
  146.  
  147. font-family: Verdana;/* "Lucida Sans" */
  148.  
  149. }
  150.  
  151.  
  152.  
  153. /* Text */
  154.  
  155.  
  156.  
  157. p { font-size: 1.1em; line-height: 1.5; color: #333; }
  158.  
  159.  
  160.  
  161.  
  162.  
  163. /* Links */
  164.  
  165.  
  166.  
  167. /* this is a link OUTSIDE of a <P> */
  168.  
  169. a:link, a:active, a:visited { font-size: 1.1em; color: #003399; text-decoration: none; }
  170.  
  171. a:hover { color: #CC0000; text-decoration: underline; }
  172.  
  173.  
  174.  
  175.  
  176.  
  177. /* this is a link INSIDE of a <P> */
  178.  
  179. p a:link, p a:active, p a:visited { font-size: 1em; font-weight: bold; color: #336699; text-decoration: none; }
  180.  
  181. p a:hover { color: #CC0000; text-decoration: underline; background: #E3E3E3; }
  182.  
  183.  
  184.  
  185.  
  186.  
  187. /* Lists */
  188.  
  189.  
  190.  
  191. ul { list-style-type: none;}
  192.  
  193.  
  194.  
  195.  
  196.  
  197. /* Forms */
  198.  
  199.  
  200.  
  201.  
  202.  
  203. /* END: Font Styles ------------------ */
  204.  
  205.  
  206.  
  207.  
  208.  
  209. div#newsBoxHome {
  210.  
  211. width: 300px;
  212.  
  213. margin: 0; padding: 0;
  214.  
  215. background: #999 url() no-repeat bottom;
  216.  
  217. }
  218.  
  219.  
  220.  
  221. div#newsBoxHome span {
  222.  
  223. display: block;
  224.  
  225. width: 90%;
  226.  
  227. margin: 0 5%; padding: 5% 0;
  228.  
  229. background: transparent;
  230.  
  231. }
  232.  
  233.  
  234.  
  235. /* START: Font Styles ------------------ */
  236.  
  237.  
  238.  
  239. ul#formList {
  240.  
  241. list-style-type: none;
  242.  
  243. width: 300px;
  244.  
  245. }
  246.  
  247.  
  248.  
  249. ul#formList li {
  250.  
  251. display: block;
  252.  
  253. width: 300px;
  254.  
  255. padding: 10px 0;
  256.  
  257. border-bottom: 1px solid #CCC;
  258.  
  259. }
  260.  
  261.  
  262.  
  263. ul#formList li br {
  264.  
  265. clear: both;
  266.  
  267. height: 0;
  268.  
  269. }
  270.  
  271.  
  272.  
  273. form#quickForm {
  274.  
  275. display: inline;
  276.  
  277. width: 300px;
  278.  
  279. }
  280.  
  281.  
  282.  
  283. form#quickForm label {
  284.  
  285. float: left;
  286.  
  287. font-size: 1.2em;
  288.  
  289. font-weight: bold;
  290.  
  291. color: #CC0000;
  292.  
  293. text-decoration: none;
  294.  
  295. }
  296.  
  297.  
  298.  
  299. form#quickForm input.textField, form#quickForm select.selectList {
  300.  
  301. display: block;
  302.  
  303. float: right;
  304.  
  305. text-align: left;
  306.  
  307. width: 150px;
  308.  
  309. border: 1px solid #666;
  310.  
  311. background-color: #FFF;
  312.  
  313. font-size: 1em;
  314.  
  315. font-weight: bold;
  316.  
  317. color: #336699;
  318.  
  319. }
  320.  
  321.  
  322.  
  323. form#quickForm textarea.textArea {
  324.  
  325. display: block;
  326.  
  327. float: right;
  328.  
  329. text-align: left;
  330.  
  331. width: 150px;
  332.  
  333. height: 150px;
  334.  
  335. border: 1px solid #666;
  336.  
  337. background-color: #FFF;
  338.  
  339. font-size: 1em;
  340.  
  341. font-weight: bold;
  342.  
  343. color: #336699;
  344.  
  345. overflow: auto;
  346.  
  347. }
  348.  
  349.  
  350.  
  351. .formSubmit {
  352.  
  353. display: block;
  354.  
  355. float: right;
  356.  
  357. width: 150px;
  358.  
  359. border: 1px solid #666;
  360.  
  361. background-color: #FFF;
  362.  
  363. font-size: 1em;
  364.  
  365. font-weight: bold;
  366.  
  367. color: #336699;
  368.  
  369. padding: 0;
  370.  
  371. }
  372.  
  373.  
  374.  
  375. /* END: Font Styles ------------------ */
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382. </head>
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389. <div id="pageContainer"><!-- START: main content holder - this holds everything -->
  390.  
  391.  
  392.  
  393. <h1 class="hamiltopia">hamiltopia</h1>
  394.  
  395.  
  396.  
  397. <h1>This is an H1 tag</h1>
  398.  
  399.  
  400.  
  401. <h2>This is an H2 tag</h2>
  402.  
  403.  
  404.  
  405. <h3>This is an H3 tag</h3>
  406.  
  407.  
  408.  
  409. <h4>This is an H4 tag</h4>
  410.  
  411.  
  412.  
  413. <h5>This is an H5 tag</h5>
  414.  
  415.  
  416.  
  417.  
  418.  
  419. <p>
  420.  
  421. This ia paragraph text cum soluta nobis <a href="#" title="Title Tag">eleifend</a> option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
  422.  
  423. </p>
  424.  
  425.  
  426.  
  427.  
  428.  
  429. <a href="#" title="Title Tag">Link Item One</a><br>
  430.  
  431.  
  432.  
  433.  
  434.  
  435. <img src="imgs/jeep.jpg" alt="ALT Tag" width="275" height="190" border="0" title="Title Tag"><br>
  436.  
  437.  
  438.  
  439. <ul>
  440.  
  441. <li>List Item</li>
  442.  
  443. <li>List Item</li>
  444.  
  445. <li>List Item</li>
  446.  
  447. <li>List Item</li>
  448.  
  449. <li>List Item</li>
  450.  
  451. </ul>
  452.  
  453.  
  454.  
  455.  
  456.  
  457. <div id="newsBoxHome">
  458.  
  459. <span>
  460.  
  461.  
  462.  
  463. <h3>This is an H3 tag</h3>
  464.  
  465.  
  466.  
  467. <p>
  468.  
  469. This ia paragraph text cum soluta nobis <a href="#" title="Title Tag">eleifend</a> option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
  470.  
  471. </p>
  472.  
  473.  
  474.  
  475. </span>
  476.  
  477. </div>
  478.  
  479.  
  480.  
  481. <form action="" name="quickForm" id="quickForm">
  482.  
  483. <ul id="formList">
  484.  
  485. <li>
  486.  
  487. <label for="name">Name</label><input type="text" name="name" id="name" class="textField">
  488.  
  489. <br>
  490.  
  491. </li>
  492.  
  493. <li>
  494.  
  495. <label for="address">Address</label><input type="text" name="address" id="address" class="textField">
  496.  
  497. <br>
  498.  
  499. </li>
  500.  
  501. <li>
  502.  
  503. <label for="city">City</label><input type="text" name="city" id="city" class="textField">
  504.  
  505. <br>
  506.  
  507. </li>
  508.  
  509. <li>
  510.  
  511. <label for="state">State</label>
  512.  
  513. <select name="state" class="selectList">
  514.  
  515. <option value="" selected="selected">Select a State</option>
  516.  
  517. <option value="AL">Alabama</option>
  518.  
  519. <option value="AK">Alaska</option>
  520.  
  521. <option value="AZ">Arizona</option>
  522.  
  523. <option value="AR">Arkansas</option>
  524.  
  525. <option value="CA">California</option>
  526.  
  527. <option value="CO">Colorado</option>
  528.  
  529. <option value="CT">Connecticut</option>
  530.  
  531. <option value="DE">Delaware</option>
  532.  
  533. <option value="DC">District Of Columbia</option>
  534.  
  535. <option value="FL">Florida</option>
  536.  
  537. <option value="GA">Georgia</option>
  538.  
  539. <option value="HI">Hawaii</option>
  540.  
  541. <option value="ID">Idaho</option>
  542.  
  543. <option value="IL">Illinois</option>
  544.  
  545. <option value="IN">Indiana</option>
  546.  
  547. <option value="IA">Iowa</option>
  548.  
  549. <option value="KS">Kansas</option>
  550.  
  551. <option value="KY">Kentucky</option>
  552.  
  553. <option value="LA">Louisiana</option>
  554.  
  555. <option value="ME">Maine</option>
  556.  
  557. <option value="MD">Maryland</option>
  558.  
  559. <option value="MA">Massachusetts</option>
  560.  
  561. <option value="MI">Michigan</option>
  562.  
  563. <option value="MN">Minnesota</option>
  564.  
  565. <option value="MS">Mississippi</option>
  566.  
  567. <option value="MO">Missouri</option>
  568.  
  569. <option value="MT">Montana</option>
  570.  
  571. <option value="NE">Nebraska</option>
  572.  
  573. <option value="NV">Nevada</option>
  574.  
  575. <option value="NH">New Hampshire</option>
  576.  
  577. <option value="NJ">New Jersey</option>
  578.  
  579. <option value="NM">New Mexico</option>
  580.  
  581. <option value="NY">New York</option>
  582.  
  583. <option value="NC">North Carolina</option>
  584.  
  585. <option value="ND">North Dakota</option>
  586.  
  587. <option value="OH">Ohio</option>
  588.  
  589. <option value="OK">Oklahoma</option>
  590.  
  591. <option value="OR">Oregon</option>
  592.  
  593. <option value="PA">Pennsylvania</option>
  594.  
  595. <option value="RI">Rhode Island</option>
  596.  
  597. <option value="SC">South Carolina</option>
  598.  
  599. <option value="SD">South Dakota</option>
  600.  
  601. <option value="TN">Tennessee</option>
  602.  
  603. <option value="TX">Texas</option>
  604.  
  605. <option value="UT">Utah</option>
  606.  
  607. <option value="VT">Vermont</option>
  608.  
  609. <option value="VA">Virginia</option>
  610.  
  611. <option value="WA">Washington</option>
  612.  
  613. <option value="WV">West Virginia</option>
  614.  
  615. <option value="WI">Wisconsin</option>
  616.  
  617. <option value="WY">Wyoming</option>
  618.  
  619. </select>
  620.  
  621. <br>
  622.  
  623. </li>
  624.  
  625. <li>
  626.  
  627. <label for="comment">Comment</label><textarea cols="" rows="" name="comment" id="comment" class="textArea"></textarea>
  628.  
  629. <br>
  630.  
  631. </li>
  632.  
  633. <li>
  634.  
  635. <input type="submit" name="Submit" value="Submit" class="formSubmit">
  636.  
  637. <br>
  638.  
  639. </li>
  640.  
  641. </ul>
  642.  
  643. </form>
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651. </div><!-- END: main content holder -->
  652.  
  653.  
  654.  
  655.  
  656.  
  657. <div id="pageFooter"><!-- START: page footer -->
  658.  
  659.  
  660.  
  661. <br><br><br><br><br>
  662.  
  663.  
  664.  
  665. </div><!-- END: page footer -->
  666.  
  667.  
  668.  
  669. </body>
  670.  
  671. </html>

URL: hamiltopia_HtmlCssTemplate

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.