Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html lang="en-US"><head>
- <title>Triple Bordered Backgrounds - Table Method</title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- <meta name="created" content="Mon, 20 Jun 2011 06:22:37 GMT">
- <meta name="description" content="">
- <meta name="keywords" content="">
- <meta name="author" content="PayneLess Designs">
- <meta name="copyright" content="Jan 2004 to present.">
- <style type="text/css">
- * { margin: 0; padding: 0; border: 0; }
- #page-wrap {
- width: 960px;
- margin: 0 auto;
- }
- h1 {
- text-align: center;
- }
- ul li { list-style-type: none; }
- p {
- margin: 2% 0;
- font-size: 1em;
- padding: 10px;
- text-align: justify;
- }
- #example {
- width: 960px;
- padding: 5px;
- }
- </style>
- <!--[if IE]>
- <link rel="stylesheet" type="text/css" href="iestyle.css">
- <![endif]-->
- </head>
- <body>
- <h1>Triple Bordered Backgrounds - Table Method</h1>
- <div id="page-wrap">
- <ul>
- <li>1.) Triple bordered backgrounds are made utilizing tables. Mostly tables within tables, with background images or colors applied.</li>
- <li>2.) Set the page to the desired resolution, nowadays its 1024x768, then set a table within the page and then a table within that table. If using a html editor, such as Frontage (I recommend you not use this) , Dreamweaver, NVU or any WYSIWYG Editor, you just start with a new page and insert the tables.</li>
- <li>3.) Background colors or images are applied to the page and each table. I recommend using CSS to set table attributes and place your page contents into the middle table. Height of the table is determined by the amount of content you place within the middle table, the more content you add, the longer the page becomes.</li>
- <li>4.) To help you get started, see the template that you can view or download and use at <a href="http://www.hypergurl.com/trippleborder.html" onclick="window.open (this.href, ''); return false">www.hypergurl.com</a>, with the tables already set for you and more instructions on making your triple bordered background, or you can copy and paste the html code below.</li>
- <li>5.) Within the html of the template <!-- comments like this --> have been placed. You can alter the look of the triple bordered background to suit your personal taste easily. This will also give you the feel of what the html for tables is required.</li>
- <li>6.) Take a look at the <a href="http://www.hypergurl.com/trippleborder.html" onclick="window.open (this.href, ''); return false">TRIPLE BORDERED BACKGROUND</a> template and if you want, freely use the template for your own site. Compliments of www.hypergurl.com.</li>
- </ul>
- <p>EXAMPLE (body tag not included here. Using bgcolors instead of image backgrounds.):</p>
- <div id="example">
- <p><!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE TOP BORDER OF THE FIRST background AND THE TOP BORDER OF THE SECOND background --></p>
- <p><!-- THE NEXT LINE CENTERS THE MAIN table ON THE PAGE --></p>
- <p><!-- START OF MAIN table WITH THE WIDTH SET TO 90% OF BROWSER WINDOW TO GIVE THE EFFECT OF THE SECOND BORDER --></p>
- <table border="2" style="width: 90%; margin: 0 auto; padding: 5px; background: #ff0000 url('ImageURL#2.jpg') no-repeat center scroll;" summary="">
- <tr>
- <td><p><!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE TOP BORDER OF THE SECOND
- background AND THE TOP BORDER OF THE MIDDLE background--></p><p><!-- NESTED table INSIDE THE MAIN table is CENTERED --></p>
- <p><!-- START OF CENTER NESTED table WITH THE WIDTH SET TO 85% TO GIVE THE EFFECT OF THE THIRD BORDER--></p>
- <table border="2" style="width: 85%; margin: 0 auto; padding: 20px; background: #00ff00 url('ImageURL#3') no-repeat center scroll;" summary="">
- <tr>
- <td style="background: #c0c0c0 url('ImageURL#4.jpg') no-repeat center scroll;"><p><!-- HERE IS WHERE YOU WILL PLACE ALL YOUR TEXT AND IMAGES FOR YOUR PAGE --></p><p>Here is where you will place all the text and images for your web page. Don't forget to change the text, link, active link and visited link colors to suit your page. Play around with the table widths, cellpadding, cellspacing and border attributes like color and size. By experimenting with these settings you can customize how your page will look. You'll notice a lot of comments between <!--these--> characters in the html code. Browsers ignore any information contained within these characters, so you can put in any comments you like or delete them completely and it won't affect your page. I've added the comments to help you with using this template.</p><p>Please note that the height of the table is determined by the amount of content you have in this area. The more content you have, the longer the table.</p></td>
- </tr>
- </table>
- <p><!-- END OF CENTER NESTED table --></p>
- <p><!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE BOTTOM BORDER OF THE MIDDLE background AND THE BOTTOM BORDER OF THE SECOND background --></p></td>
- </tr>
- </table>
- <p><!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE BOTTOM BORDER OF THE SECOND background AND THE BOTTOM OF THE FIRST background --></p>
- </div>
- <p>Below is an example of the html used. Copy/paste as needed.</p>
- <pre>
- <!DOCTYPE here>
- <html><head>
- <title>write the name of your page title here</title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- </head>
- <body background="ImageURL#1.jpg" color="#999999" link="#6633FF" vlink="#cc3300" alink="#669999">
- <!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE TOP
- BORDER OF THE FIRST background AND THE TOP BORDER OF THE SECOND background -->
- <br><br>
- <!-- THE NEXT LINE CENTERS THE MAIN table ON THE PAGE -->
- <div align="center">
- <!-- START OF MAIN table WITH THE WIDTH SET TO 90% OF BROWSER WINDOW TO GIVE THE EFFECT OF THE
- SECOND BORDER -->
- <table border="2" width="90%" cellpadding="5" cellspacing="0" background="ImageURL#2.jpg" summary="">
- <tr>
- <td>
- <!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE TOP
- BORDER OF THE SECOND background AND THE TOP BORDER OF THE MIDDLE background-->
- <br><br>
- <!-- CENTERS THE NESTED table INSIDE THE MAIN table -->
- <div align="center">
- <!-- START OF CENTER NESTED table WITH THE WIDTH SET TO 85% TO GIVE THE EFFECT OF THE THIRD BORDER-->
- <table border="2" cellpadding="20" width="85%" background="ImageURL#3" summary="">
- <tr>
- <td background="ImageURL#4.jpg">
- <!-- HERE IS WHERE YOU WILL PLACE ALL YOUR TEXT AND IMAGES FOR YOUR PAGE -->
- <p>Here is where you will place all the text and images for your web page.</p>
- <p>Don't forget to change the text, link, active link and visited link colors to suit your page.</p>
- <p>Play around with the table widths, cellpadding, cellspacing and border attributes like color and size. By
- experimenting with these settings you can customize how your page will look.</p>
- <p>You'll notice a lot of comments between <!--these--> characters in the html code. Browsers ignore
- any information contained within these characters, so you can put in any comments you like or delete them completely
- and it won't affect your page. I've added the comments to help you with using this template.</p>
- <p>Please note that the height of the table is determined by the amount of content you have in this area. The
- more content you have, the longer the table.</p>
- </td>
- </tr>
- </table>
- <!-- END OF CENTER NESTED table -->
- </div>
- <!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE BOTTOM
- BORDER OF THE MIDDLE background AND THE BOTTOM BORDER OF THE SECOND background -->
- </td>
- </tr>
- </table>
- <!-- END OF MAIN table -->
- </div>
- <!-- THE NUMBER OF LINE BREAKS YOU PLACE HERE WILL DETERMINE THE SPACING BETWEEN THE BOTTOM
- BORDER OF THE SECOND background AND THE BOTTOM OF THE FIRST background -->
- </body></html>
- </pre>
- </div>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment