lgbtsource
07-26-2009, 01:06 AM
I'm using Javascript for my table, however when I put a table underneath the first one it makes go up into the logo area of the page. You can see what I mean here (http://lgbtsource.com/buddhism.html) on my site. I used the html <br> code to solve the issue, but it messes up in certain browsers. So, I'm looking for a way that doesn't involve the <br> code, but not sure what to use in it's place.
The code for both javascript tables is:
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="background-color: #FFFFFF; width: 100%;">';
str+='<tr>';
str+='<td style="vertical-align: top; padding: 5px"><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; background-color: #3B5323; width: 94%; border: 1px solid;">';
str+='<tr>';
str+='<td style="padding:0px; font-family:Comic Sans, Comic Sans MS; background-color:#3B5323; width:100%; text-align:center;">';
str+='<span style="font-size:120%;"><span style="color: #FFFFFF;">Gay Men\'s Buddhist Sangha<\/span><\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; width: 94%; border: 1px solid silver;">';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">About<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding: 0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='Seeks to introduce the teachings of the Buddha to gay men and help them to preserve a healthy and positive self-image particularly about their sexuality.';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">URL<\/font><\/b>';
str+='<\/td>';
str+=' ';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">';
str+='<a href="http:\/\/www.gaysangha.org\/">Gay Sangha<\/a>';
str+='<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Date Added<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">19 April 2009<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Categories<\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">Buddhism<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
document.write(str);
}
writeJS();
//-->
</script>
The code for the full page is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Name : Commission
Description: A two-column, fixed-width design for 1024x768 screen resolutions.
Version : 1.0
Released : 20090122
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>LGBTSource - Your Source For LGBT Orgzanizations & Services</title>
<meta name="keywords" content="gay, bisexual, gay tv, gay movies, gay men, gay celebrities, homosexuality, homosexual, gay marriage, dating, dating sites, lgbt directory, gay directory, lesbian, trans, transgender, queer, intersex, ftm, mtf, genderqueer, gender****, lgbt resources, bisexual, bi, questioning, lgbt christian, tranny, gay actors, gay resources, ***, religion, gay religion " />
<meta name="description" content="LGBTSource is a free LGBT directory listing service that is updated daily." />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style>
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
body {
margin: 0;
padding: 0;
background: #FFFFFF;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 13px;
color: #837669;
}
h1, h2, h3 {
margin: 0;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: normal;
color: #649632;
}
h1 { font-size: 44px; }
h2 { font-size: 26px; }
h3 { }
p, ul, ol {
margin-top: 0;
line-height: 240%;
text-align: justify;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
}
ul, ol { }
blockquote { }
a { color: #649632; }
a:hover { text-decoration: none; }
a img {
border: none;
}
img.left {
float: left;
margin: 7px 30px 0 0;
}
img.right {
float: right;
margin: 7px 0 0 30px;
}
hr { display: none; }
.list1 {
}
.list1 li {
float: left;
line-height: normal;
}
.list1 li img {
margin: 0 30px 30px 0;
}
.list1 li.alt img {
margin-right: 0;
}
/* Header */
#header-wrapper {
}
#header {
width: 1000px;
height: 40px;
margin: 0 auto;
background: #608F30;
border-bottom: 1px solid #2D4516;
}
/* Menu */
#menu {
float: left;
width: 680px;
height: 40px;
}
#menu ul {
margin: 0;
padding: 13px 0 0 20px;
list-style: none;
line-height: normal;
}
#menu li {
display: block;
float: left;
}
#menu a {
display: block;
float: left;
margin-right: 17px;
padding: 5px 12px;
text-decoration: none;
font: 14px Georgia, "Times New Roman", Times, serif;
color: #FFFFFF;
}
#menu a:hover { text-decoration: underline; }
#menu .current_page_item a {
background: #39561D;
color: #FFFFFF;
}
/* Search */
#search {
float: right;
width: 305px;
height: 40px;
}
#search form {
float: right;
margin: 0;
padding: 12px 20px 0 0;
}
#search fieldset {
margin: 0;
padding: 0;
border: none;
}
#search input {
float: left;
font: 12px Georgia, "Times New Roman", Times, serif;
border: none;
}
#search-text {
width: 135px;
height: 18px;
padding: 3px 0 0 5px;
background: #ECF9E4;
color: #658453;
}
#search-submit {
height: 21px;
margin-left: 12px;
color: #39561D;
}
/* Page */
#page {
width: 960px;
margin: 0 auto;
padding: 0 20px;
background: url(images/img01.jpg) repeat-x left top;
}
/** LOGO */
#logo {
height: 148px;
}
#logo h1, #logo p {
float: left;
margin: 0;
padding: 0;
line-height: normal;
}
#logo h1 { padding-top: 45px; }
#logo h1 a {
text-decoration: none;
color: #39561D;
}
#logo h1 a:hover { text-decoration: underline; }
#logo p {
padding: 65px 0 0 15px;
font: italic 13px Georgia, "Times New Roman", Times, serif;
color: #B6ACA2;
}
#logo p a {
text-decoration: none;
color: #B6ACA2;
}
#logo p a:hover { text-decoration: underline; }
/* Content */
#content {
float: left;
width: 660px;
}
/* Post */
.post {
margin-bottom: 25px;
}
.post .title {
margin-bottom: 3px;
padding: 2px 0px;
border-bottom: 1px dashed #B4F59D;
}
.post .meta {
margin: 0 0 3px 0;
padding: 2px 30px 2px 0px;
font: italic 13px Georgia, "Times New Roman", Times, serif;
color: #B6ACA2;
}
.post .meta a { color: #B6ACA2; }
.post .entry {
padding: 25px 0px;
}
.post .links {
margin: 0 250px 0 0;
padding: 0 0 0 0px;
}
.post .links .comments {
}
.post .links .permalink {
padding-left: 17px;
}
/* Sidebar */
#sidebar {
float: right;
width: 240px;
margin-top: -100px;
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}
#sidebar li {
margin-bottom: 30px;
padding: 0 0 20px 0px;
}
#sidebar li ul {
line-height: 200%;
}
#sidebar li li {
margin: 0;
padding: 0;
}
#sidebar h2 {
margin: 0 0 20px 0px;
padding: 2px 0 2px 0px;
border-bottom: 1px dashed #B4F59D;
font-size: 18px;
}
#sidebar p {
line-height: 200%;
}
/* Calendar */
#calendar {
}
#calendar caption {
padding-bottom: 5px;
font-weight: bold;
}
#calendar table {
width: 100%;
border-collapse: collapse;
border-right: 1px solid #F5F2EF;
}
#calendar thead th {
padding: 5px 0;
text-align: center;
border-top: 1px solid #F5F2EF;
border-left: 1px solid #F5F2EF;
background: #F5F2EF;
}
#calendar tbody td {
padding: 5px 0;
text-align: center;
border-top: 1px solid #F5F2EF;
border-left: 1px solid #F5F2EF;
}
#calendar tfoot td {
padding: 5px;
}
#calendar tfoot #next {
text-align: right;
}
#calendar #today {
background: #E7F1E1;
}
/* Footer */
#footer {
width: 1000px;
margin: 0 auto;
padding: 0;
background: #333333;
}
#footer p {
margin: 0;
padding: 20px 0;
text-align: center;
line-height: normal;
color: #B5ADA5;
}
#footer a {
color: #B5ADA5;
}
</style>
</head>
<body>
<div id="header-wrapper">
<div id="header">
<div id="menu">
<ul>
<li class="current_page_item"><a href="http://www.lgbtsource.com/">Home</a></li>
<li><a href="http://www.lgbtsource.com/about.html">About</a></li>
<li><a href="http://lgbtsource.com/contact.html">Contact</a></li>
<li><a href="http://www.lgbtsource.com/directory.html">Directory</a></li>
<li><a href="http://www.lgbtsource.com/dictionary.html">Dictionary</a></li>
</ul>
</div>
<!-- end #menu -->
<!-- end #header -->
</div>
<!-- end #header-wrapper -->
<div id="page">
<div id="logo">
<BR>
<img src="http://www.logomaker.com/logo-images/9930aae30a43f90b.gif"/>
<a href="http://www.logoworks.com"><img src="http://www.logomaker.com/images/logos.gif" alt="logo design" border="0"/></a>
<BR>
</div>
<!-- end #logo -->
<div id="content">
<div class="post">
<a name=top></a>
<h2 class="title"><font face="arial"><CENTER>Buddhism Listings</CENTER></font></h2>
<div class="entry">
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="background-color: #FFFFFF; width: 100%;">';
str+='<tr>';
str+='<td style="vertical-align: top; padding: 5px"><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; background-color: #3B5323; width: 94%; border: 1px solid;">';
str+='<tr>';
str+='<td style="padding:0px; font-family:Comic Sans, Comic Sans MS; background-color:#3B5323; width:100%; text-align:center;">';
str+='<span style="font-size:120%;"><span style="color: #FFFFFF;">Gay Men\'s Buddhist Sangha<\/span><\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; width: 94%; border: 1px solid silver;">';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">About<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding: 0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='Seeks to introduce the teachings of the Buddha to gay men and help them to preserve a healthy and positive self-image particularly about their sexuality.';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">URL<\/font><\/b>';
str+='<\/td>';
str+=' ';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">';
str+='<a href="http:\/\/www.gaysangha.org\/">Gay Sangha<\/a>';
str+='<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Date Added<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">19 April 2009<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Categories<\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">Buddhism<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
document.write(str);
}
writeJS();
//-->
</script>
<p align="center"><a href='#top'>Back To Top</a></p>
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="background-color: #FFFFFF; width: 100%;">';
str+='<tr>';
str+='<td style="vertical-align: top; padding: 5px"><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; background-color: #3B5323; width: 94%; border: 1px solid;">';
str+='<tr>';
str+='<td style="padding:0px; font-family:Comic Sans, Comic Sans MS; background-color:#3B5323; width:100%; text-align:center;">';
str+='<span style="font-size:120%;"><span style="color: #FFFFFF;">Gay Men\'s Buddhist Sangha<\/span><\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; width: 94%; border: 1px solid silver;">';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">About<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding: 0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='Seeks to introduce the teachings of the Buddha to gay men and help them to preserve a healthy and positive self-image particularly about their sexuality.';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">URL<\/font><\/b>';
str+='<\/td>';
str+=' ';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">';
str+='<a href="http:\/\/www.gaysangha.org\/">Gay Sangha<\/a>';
str+='<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Date Added<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">19 April 2009<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Categories<\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">Buddhism<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
document.write(str);
}
writeJS();
//-->
</script>
</div>
</div>
</div>
<!-- end #content -->
<div id="sidebar">
<ul>
<li>
<h2>
<CENTER><font face="arial">Search</font></CENTER>
</h2>
<p>
<form action="http://www.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="017423447592127873841:t1p4qsb55nc" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box〈=en"></script>
</p>
</li>
<li>
<h2>
<CENTER><font face="arial">Directory FAQ</font></CENTER>
</h2>
<font color="#000000" size="2" face="Arial">
Need help navigating the directory? Please visit the <a href="http://www.lgbtsource.com/directory-faq.html"><font color="#0000ff">Directory FAQ</font></a>.</font></p>
</li>
<li>
<h2>
<CENTER><font face="arial">New & Updated Additions</font></CENTER>
</h2>
<font color="#000000" size="2" face="Arial">
This site is currently being construted, so please bear this in mind.
</font>
</li>
<li>
<h2></h2>
<script type="text/javascript"><!--
google_ad_client = "pub-7647119287047910";
/* 250x250, created 5/25/09 */
google_ad_slot = "3291619044";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</li>
</ul>
</li>
</ul>
</div>
<!-- end #sidebar -->
<div style="clear: both;"> </div>
</div>
<!-- end #page -->
<div id="footer">
<p>Copyright (c) 2009 LGBTSource.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
</p>
</div>
<!-- end #footer -->
</body>
</html>
Thanks,
James
The code for both javascript tables is:
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="background-color: #FFFFFF; width: 100%;">';
str+='<tr>';
str+='<td style="vertical-align: top; padding: 5px"><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; background-color: #3B5323; width: 94%; border: 1px solid;">';
str+='<tr>';
str+='<td style="padding:0px; font-family:Comic Sans, Comic Sans MS; background-color:#3B5323; width:100%; text-align:center;">';
str+='<span style="font-size:120%;"><span style="color: #FFFFFF;">Gay Men\'s Buddhist Sangha<\/span><\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; width: 94%; border: 1px solid silver;">';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">About<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding: 0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='Seeks to introduce the teachings of the Buddha to gay men and help them to preserve a healthy and positive self-image particularly about their sexuality.';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">URL<\/font><\/b>';
str+='<\/td>';
str+=' ';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">';
str+='<a href="http:\/\/www.gaysangha.org\/">Gay Sangha<\/a>';
str+='<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Date Added<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">19 April 2009<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Categories<\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">Buddhism<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
document.write(str);
}
writeJS();
//-->
</script>
The code for the full page is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Name : Commission
Description: A two-column, fixed-width design for 1024x768 screen resolutions.
Version : 1.0
Released : 20090122
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>LGBTSource - Your Source For LGBT Orgzanizations & Services</title>
<meta name="keywords" content="gay, bisexual, gay tv, gay movies, gay men, gay celebrities, homosexuality, homosexual, gay marriage, dating, dating sites, lgbt directory, gay directory, lesbian, trans, transgender, queer, intersex, ftm, mtf, genderqueer, gender****, lgbt resources, bisexual, bi, questioning, lgbt christian, tranny, gay actors, gay resources, ***, religion, gay religion " />
<meta name="description" content="LGBTSource is a free LGBT directory listing service that is updated daily." />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style>
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
body {
margin: 0;
padding: 0;
background: #FFFFFF;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 13px;
color: #837669;
}
h1, h2, h3 {
margin: 0;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: normal;
color: #649632;
}
h1 { font-size: 44px; }
h2 { font-size: 26px; }
h3 { }
p, ul, ol {
margin-top: 0;
line-height: 240%;
text-align: justify;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
}
ul, ol { }
blockquote { }
a { color: #649632; }
a:hover { text-decoration: none; }
a img {
border: none;
}
img.left {
float: left;
margin: 7px 30px 0 0;
}
img.right {
float: right;
margin: 7px 0 0 30px;
}
hr { display: none; }
.list1 {
}
.list1 li {
float: left;
line-height: normal;
}
.list1 li img {
margin: 0 30px 30px 0;
}
.list1 li.alt img {
margin-right: 0;
}
/* Header */
#header-wrapper {
}
#header {
width: 1000px;
height: 40px;
margin: 0 auto;
background: #608F30;
border-bottom: 1px solid #2D4516;
}
/* Menu */
#menu {
float: left;
width: 680px;
height: 40px;
}
#menu ul {
margin: 0;
padding: 13px 0 0 20px;
list-style: none;
line-height: normal;
}
#menu li {
display: block;
float: left;
}
#menu a {
display: block;
float: left;
margin-right: 17px;
padding: 5px 12px;
text-decoration: none;
font: 14px Georgia, "Times New Roman", Times, serif;
color: #FFFFFF;
}
#menu a:hover { text-decoration: underline; }
#menu .current_page_item a {
background: #39561D;
color: #FFFFFF;
}
/* Search */
#search {
float: right;
width: 305px;
height: 40px;
}
#search form {
float: right;
margin: 0;
padding: 12px 20px 0 0;
}
#search fieldset {
margin: 0;
padding: 0;
border: none;
}
#search input {
float: left;
font: 12px Georgia, "Times New Roman", Times, serif;
border: none;
}
#search-text {
width: 135px;
height: 18px;
padding: 3px 0 0 5px;
background: #ECF9E4;
color: #658453;
}
#search-submit {
height: 21px;
margin-left: 12px;
color: #39561D;
}
/* Page */
#page {
width: 960px;
margin: 0 auto;
padding: 0 20px;
background: url(images/img01.jpg) repeat-x left top;
}
/** LOGO */
#logo {
height: 148px;
}
#logo h1, #logo p {
float: left;
margin: 0;
padding: 0;
line-height: normal;
}
#logo h1 { padding-top: 45px; }
#logo h1 a {
text-decoration: none;
color: #39561D;
}
#logo h1 a:hover { text-decoration: underline; }
#logo p {
padding: 65px 0 0 15px;
font: italic 13px Georgia, "Times New Roman", Times, serif;
color: #B6ACA2;
}
#logo p a {
text-decoration: none;
color: #B6ACA2;
}
#logo p a:hover { text-decoration: underline; }
/* Content */
#content {
float: left;
width: 660px;
}
/* Post */
.post {
margin-bottom: 25px;
}
.post .title {
margin-bottom: 3px;
padding: 2px 0px;
border-bottom: 1px dashed #B4F59D;
}
.post .meta {
margin: 0 0 3px 0;
padding: 2px 30px 2px 0px;
font: italic 13px Georgia, "Times New Roman", Times, serif;
color: #B6ACA2;
}
.post .meta a { color: #B6ACA2; }
.post .entry {
padding: 25px 0px;
}
.post .links {
margin: 0 250px 0 0;
padding: 0 0 0 0px;
}
.post .links .comments {
}
.post .links .permalink {
padding-left: 17px;
}
/* Sidebar */
#sidebar {
float: right;
width: 240px;
margin-top: -100px;
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}
#sidebar li {
margin-bottom: 30px;
padding: 0 0 20px 0px;
}
#sidebar li ul {
line-height: 200%;
}
#sidebar li li {
margin: 0;
padding: 0;
}
#sidebar h2 {
margin: 0 0 20px 0px;
padding: 2px 0 2px 0px;
border-bottom: 1px dashed #B4F59D;
font-size: 18px;
}
#sidebar p {
line-height: 200%;
}
/* Calendar */
#calendar {
}
#calendar caption {
padding-bottom: 5px;
font-weight: bold;
}
#calendar table {
width: 100%;
border-collapse: collapse;
border-right: 1px solid #F5F2EF;
}
#calendar thead th {
padding: 5px 0;
text-align: center;
border-top: 1px solid #F5F2EF;
border-left: 1px solid #F5F2EF;
background: #F5F2EF;
}
#calendar tbody td {
padding: 5px 0;
text-align: center;
border-top: 1px solid #F5F2EF;
border-left: 1px solid #F5F2EF;
}
#calendar tfoot td {
padding: 5px;
}
#calendar tfoot #next {
text-align: right;
}
#calendar #today {
background: #E7F1E1;
}
/* Footer */
#footer {
width: 1000px;
margin: 0 auto;
padding: 0;
background: #333333;
}
#footer p {
margin: 0;
padding: 20px 0;
text-align: center;
line-height: normal;
color: #B5ADA5;
}
#footer a {
color: #B5ADA5;
}
</style>
</head>
<body>
<div id="header-wrapper">
<div id="header">
<div id="menu">
<ul>
<li class="current_page_item"><a href="http://www.lgbtsource.com/">Home</a></li>
<li><a href="http://www.lgbtsource.com/about.html">About</a></li>
<li><a href="http://lgbtsource.com/contact.html">Contact</a></li>
<li><a href="http://www.lgbtsource.com/directory.html">Directory</a></li>
<li><a href="http://www.lgbtsource.com/dictionary.html">Dictionary</a></li>
</ul>
</div>
<!-- end #menu -->
<!-- end #header -->
</div>
<!-- end #header-wrapper -->
<div id="page">
<div id="logo">
<BR>
<img src="http://www.logomaker.com/logo-images/9930aae30a43f90b.gif"/>
<a href="http://www.logoworks.com"><img src="http://www.logomaker.com/images/logos.gif" alt="logo design" border="0"/></a>
<BR>
</div>
<!-- end #logo -->
<div id="content">
<div class="post">
<a name=top></a>
<h2 class="title"><font face="arial"><CENTER>Buddhism Listings</CENTER></font></h2>
<div class="entry">
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="background-color: #FFFFFF; width: 100%;">';
str+='<tr>';
str+='<td style="vertical-align: top; padding: 5px"><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; background-color: #3B5323; width: 94%; border: 1px solid;">';
str+='<tr>';
str+='<td style="padding:0px; font-family:Comic Sans, Comic Sans MS; background-color:#3B5323; width:100%; text-align:center;">';
str+='<span style="font-size:120%;"><span style="color: #FFFFFF;">Gay Men\'s Buddhist Sangha<\/span><\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; width: 94%; border: 1px solid silver;">';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">About<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding: 0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='Seeks to introduce the teachings of the Buddha to gay men and help them to preserve a healthy and positive self-image particularly about their sexuality.';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">URL<\/font><\/b>';
str+='<\/td>';
str+=' ';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">';
str+='<a href="http:\/\/www.gaysangha.org\/">Gay Sangha<\/a>';
str+='<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Date Added<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">19 April 2009<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Categories<\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">Buddhism<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
document.write(str);
}
writeJS();
//-->
</script>
<p align="center"><a href='#top'>Back To Top</a></p>
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="background-color: #FFFFFF; width: 100%;">';
str+='<tr>';
str+='<td style="vertical-align: top; padding: 5px"><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr>';
str+='<td><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; background-color: #3B5323; width: 94%; border: 1px solid;">';
str+='<tr>';
str+='<td style="padding:0px; font-family:Comic Sans, Comic Sans MS; background-color:#3B5323; width:100%; text-align:center;">';
str+='<span style="font-size:120%;"><span style="color: #FFFFFF;">Gay Men\'s Buddhist Sangha<\/span><\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:right; background-color:#FFF; width:2%;">';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="vertical-align: top; float:left; background-color:#FFF; width:2%;">';
str+='<tr><td><\/td><\/tr>';
str+='<\/table>';
str+=' ';
str+='<table style="float:center; width: 94%; border: 1px solid silver;">';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">About<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding: 0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='Seeks to introduce the teachings of the Buddha to gay men and help them to preserve a healthy and positive self-image particularly about their sexuality.';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">URL<\/font><\/b>';
str+='<\/td>';
str+=' ';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">';
str+='<a href="http:\/\/www.gaysangha.org\/">Gay Sangha<\/a>';
str+='<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Date Added<\/font><\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">19 April 2009<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+=' ';
str+='<tr><td><\/td><\/tr>';
str+=' ';
str+='<tr>';
str+='<td style="text-align:center; padding:0px; background-color:#8dab50; border:1px solid; width:20%;">';
str+='<b><font color="#232323">Categories<\/b>';
str+='<\/td>';
str+='<td style="padding:0px; background-color:#F2F2F2; border:1px solid silver; width:80%;">';
str+='<span style="margin-left:2px">Buddhism<\/span>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
document.write(str);
}
writeJS();
//-->
</script>
</div>
</div>
</div>
<!-- end #content -->
<div id="sidebar">
<ul>
<li>
<h2>
<CENTER><font face="arial">Search</font></CENTER>
</h2>
<p>
<form action="http://www.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="017423447592127873841:t1p4qsb55nc" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box〈=en"></script>
</p>
</li>
<li>
<h2>
<CENTER><font face="arial">Directory FAQ</font></CENTER>
</h2>
<font color="#000000" size="2" face="Arial">
Need help navigating the directory? Please visit the <a href="http://www.lgbtsource.com/directory-faq.html"><font color="#0000ff">Directory FAQ</font></a>.</font></p>
</li>
<li>
<h2>
<CENTER><font face="arial">New & Updated Additions</font></CENTER>
</h2>
<font color="#000000" size="2" face="Arial">
This site is currently being construted, so please bear this in mind.
</font>
</li>
<li>
<h2></h2>
<script type="text/javascript"><!--
google_ad_client = "pub-7647119287047910";
/* 250x250, created 5/25/09 */
google_ad_slot = "3291619044";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</li>
</ul>
</li>
</ul>
</div>
<!-- end #sidebar -->
<div style="clear: both;"> </div>
</div>
<!-- end #page -->
<div id="footer">
<p>Copyright (c) 2009 LGBTSource.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
</p>
</div>
<!-- end #footer -->
</body>
</html>
Thanks,
James