PayneLess_Designs

PayneLess Designs - Textarea Boxes - Side by Side

Feb 5th, 2012
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.77 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html><head>
  3. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  4. <title>Textarea Boxes - Side by Side</title>
  5. <link rel="stylesheet" type="text/css" href="css_page_designs.css">
  6. <meta name="description" content="">
  7. <meta name="keywords" content="">
  8. <meta name="author" content="">
  9. <meta name="generator" content="Matrix Y2K from van IJperen Software Inc. - http://www.crystalfibers.com">
  10. <style type="text/css">
  11. * { margin: 0; padding: 0; border: 0; }
  12. body {
  13. font-size: 1.25em;
  14. color: #fff;
  15. background: #000;
  16. }
  17.  
  18. div#wrap {
  19. width: 800px;
  20. margin: 2% auto;
  21. border: 5px inset #070;
  22. background: #f0f;
  23. }
  24.  
  25. div#contents {
  26. width: 100%;
  27. padding: 1%;
  28. }
  29.  
  30. h1, h2, h3, h4 {
  31. text-align: center;
  32. color: #0f0;
  33. }
  34.  
  35. div#side-by-side_centering {
  36. width: 745px;
  37. margin: 0 auto;
  38. }
  39.  
  40. div#textarea_centering {
  41. clear: both;
  42. width: 745px;
  43. margin: 1% auto;
  44. }
  45.  
  46. textarea {
  47. font-size: 1.0em;
  48. font-weight: bold;
  49. }
  50.  
  51. strong { color: #600; }
  52.  
  53. p.blocked {
  54. text-align: justify;
  55. padding: 5px;
  56. margin: 0 2%;
  57. clear: both;
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <div id="wrap"><!-- START WRAP --><div id="contents"><!-- START CONTENTS -->
  63.  
  64. <h1>Textarea Boxes - Side by Side</h1>
  65.  
  66. <div id="side-by-side_centering">
  67. <div style="float: left;">
  68. <p><a class="selectall" href="#" onclick="document.getElementById('postemail').select(); return false">Select All</a><br><textarea id="postemail" style="background: transparent;" rows="8" cols="25">Text here if wanted</textarea></p>
  69. </div>
  70.  
  71. <div style="float: right;">
  72. <p><a class="selectall" href="#" onclick="document.getElementById('postemail1').select(); return false">Select All</a><br><textarea id="postemail1" style="background: transparent;" rows="8" cols="25">Text here if wanted</textarea></p>
  73. </div>
  74. </div>
  75.  
  76. <div id="textarea_centering">
  77. <p>Select code used for "Textarea Boxes - Side by Side" below:</p>
  78. <p><a class="selectall" href="#" onclick="document.getElementById('postemail2').select(); return false">Select All</a><br><textarea id="postemail2" style="background: transparent;" rows="8" cols="70">
  79. CSS:
  80.  
  81. div#side-by-side_centering {
  82. width: 745px;
  83. margin: 0 auto;
  84. }
  85.  
  86. HTML:
  87.  
  88. &lt;div id="side-by-side_centering">
  89. &lt;div style="float: left;">
  90. &lt;p>&lt;a class="selectall" href="#" onclick="document.getElementById('postemail').select(); return false">Select All&lt;/a>&lt;br>&lt;textarea id="postemail" style="background: transparent;" rows="8" cols="25">Text here if wanted&lt;/textarea>&lt;/p>
  91. &lt;/div>
  92.  
  93. &lt;div style="float: right;">
  94. &lt;p>&lt;a class="selectall" href="#" onclick="document.getElementById('postemail1').select(); return false">Select All&lt;/a>&lt;br>&lt;textarea id="postemail1" style="background: transparent;" rows="8" cols="25">Text here if wanted&lt;/textarea>&lt;/p>
  95. &lt;/div>
  96. &lt;/div></textarea>
  97. </div>
  98.  
  99. <p class="blocked">If using the Select All function in more than one text box on the same page, just change "onclick="document.getElementById('<strong>postemail</strong>')" to "onclick="document.getElementById('<strong>postemail2</strong>')" and change "&lt;textarea id="<strong>postemail</strong>"" to "&lt;textarea id="<strong>postemail2</strong>"." Do this for each added textarea box incrementing the "Id" value in both places.</p>
  100.  
  101. <p><a href="http://validator.w3.org/check?uri=referer" title="Valid HTML 4.01 Strict"><img style="width:88px; height:31px; border:0;" src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01 Strict"></a><a href="http://jigsaw.w3.org/css-validator/" title="Valid CSS!"><img style="width:88px; height:31px; border:0;" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!"></a></p>
  102. </div><!-- END CONTENTS --></div><!-- END WRAP -->
  103. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment