I recently spent a whole semester using Dreamweaver for a grad school class, so I'm comfortable with the general creation and upload of websites. However, one problem that I don't know how to fix or even create, is that I want to make files appear in the center container of a page with dual sidebars and a header and footer.
Basically, someone hacked our baseball league website, so I logged on and deleted the whole virus-infected site, since I already had been working on the new one. After playing with it for awhile and learning the ins and outs of the hierarchy of uploading, I got the new site up. You can see it here:
GHBL The center container where the logo is, that is where I want all of the subpages to pop up (things like drills and whatnot). How do I fix the code to make this happen. Like I said, I'm completely clueless on this, and right now I have all of the menu pages opening in new windows so nobody has to use the back button to get back to the homepage, which gets kind of annoying.
Here is the code to the index page, if more code (like css) is necessary, let me know and I'll post that too.
----------------------------
Basically, someone hacked our baseball league website, so I logged on and deleted the whole virus-infected site, since I already had been working on the new one. After playing with it for awhile and learning the ins and outs of the hierarchy of uploading, I got the new site up. You can see it here:
GHBL The center container where the logo is, that is where I want all of the subpages to pop up (things like drills and whatnot). How do I fix the code to make this happen. Like I said, I'm completely clueless on this, and right now I have all of the menu pages opening in new windows so nobody has to use the back button to get back to the homepage, which gets kind of annoying.
Here is the code to the index page, if more code (like css) is necessary, let me know and I'll post that too.
----------------------------
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Garfield Heights Baseball League - Since 1952</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
}
.thrColFixHdr #container {
width: 995px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 0;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.thrColFixHdr #header {
background: #DDDDDD;
padding: 0px 0px 0px 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.thrColFixHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.thrColFixHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 180px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: #000033; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 0px 5px 0px 10px; /* padding keeps the content of the div away from the edges */
text-align: center;
color: #CCCC33;
}
.thrColFixHdr #sidebar2 {
float: right; /* since this element is floated, a width must be given */
width: 175px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: #000033; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 0px 5px 0px 10px; /* padding keeps the content of the div away from the edges */
text-align: center;
color: #CCCC33;
}
.thrColFixHdr #mainContent {
margin: 0; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
padding: 10px 10px 0px 10px;
text-align: center;
}
.thrColFixHdr #footer {
padding: 0px 0px 0px 0px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#000000;
color: #FFFFFF;
font-weight: bold;
}
.thrColFixHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 0px 0px 0px 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
.style3 {
color: #CCCCCC;
font-style: italic;
}
.style4 {
color: #00FFFF;
font-style: italic;
}
.style6 {color: #FF0000; font-style: italic; }
-->
</style><!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.thrColFixHdr #sidebar1 { width: 180px; }
.thrColFixHdr #sidebar2 { width: 190px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
.thrColFixHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>
<body class="thrColFixHdr">
<div id="container">
<div id="header">
<h1 align="center"><img src="images/head-bg.png" width="995" height="118" alt="header" /></h1>
<!-- end #header --></div>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#">History</a>
<ul>
<li><a href="#">GHBL History</a></li>
<li><a href="#">Hall of Fame</a></li>
<li><a href="#">Past Commissioners</a></li>
</ul>
</li>
<li><a href="baseball/board.html" title="GHBL Board of Directors" target="_blank">GHBL Board</a></li>
<li><a class="MenuBarItemSubmenu" href="#">Fundraising</a>
<ul>
<li><a href="baseball/backers.html" title="Backers" target="_blank">Backers</a> </li>
<li><a href="baseball/h2h.html" title="House to House" target="_blank">House to House</a></li>
<li><a href="baseball/candy.html" title="Candy Sales" target="_blank">Candy Sale</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Schedules</a>
<ul>
<li><a href="#">Peewee</a></li>
<li><a href="#">Minor</a></li>
<li><a href="#">Major</a></li>
<li><a href="#">Pony</a></li>
<li><a href="#">Colt</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Downloads</a>
<ul>
<li><a href="#">GHBL By-Laws</a></li>
<li><a href="#">Application</a></li>
<li><a href="#">Code of Conduct</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Drills</a>
<ul>
<li><a href="#" class="MenuBarItemSubmenu">Fielding Drills</a>
<ul>
<li><a href="baseball/alligator.html" title="Alligator Drills" target="_blank">Alligator Drills</a></li>
<li><a href="baseball/crowhop.html" title="Crow Hop Drill" target="_blank">Crow Hop Drill</a></li>
<li><a href="baseball/cutoff.html" title="Cutoff Drill" target="_blank">Cutoff Drill</a></li>
<li><a href="baseball/dp.html" title="Double Play Drill" target="_blank">Double Play Drill</a></li>
<li><a href="baseball/findball.html" title="Find the Ball Drill" target="_blank">Find the Ball Drill</a></li>
<li><a href="baseball/gap.html" title="Gap Drill" target="_blank">Gap Drill</a></li>
<li><a href="baseball/hat.html" title="Hat in Mouth Drill" target="_blank">Hat in Mouth Drill</a></li>
<li><a href="baseball/knockdown.html" title="Knockdown Drill" target="_blank">Knockdown Drill</a></li>
<li><a href="baseball/pitchercover.html" title="P Cover 1st Drill" target="_blank">P Cover 1st Drill</a></li>
<li><a href="baseball/shorthop.html" title="Short Hop Drill" target="_blank">Short Hop Drill</a></li>
<li><a href="baseball/shuffle.html" title="Shuffle Drill" target="_blank">Shuffle Drill</a></li>
</ul>
</li>
<li><a href="#">Hitting Drills</a> </li>
<li><a href="#" class="MenuBarItemSubmenu">Pitching Drills</a>
<ul>
<li><a href="baseball/grips.html" title="Grips" target="_blank">Grips</a></li>
<li><a href="baseball/gripflips.html" title="Grip Flips" target="_blank">Grip Flips</a></li>
<li><a href="baseball/dribble.html" title="Dribble" target="_blank">Changeup Dribble</a></li>
<li><a href="baseball/downhill.html" title="Downhill Plane" target="_blank">Downhill Plane</a></li>
<li><a href="baseball/ript.html" title="Rip-T" target="_blank">Rip-T</a></li>
<li><a href="baseball/kneelift.html" title="Knee Lift" target="_blank">Knee Lift</a></li>
<li><a href="baseball/riptkneelift.html" title="Rip-T - Lift Combo" target="_blank">Rip T - Lift Combo</a></li>
<li><a href="baseball/knee.html" title="1-Knee Followthrough" target="_blank">1-Knee Followthrough</a></li>
<li><a href="baseball/stride5.html" title="Stride + 5" target="_blank">Stride + 5</a></li>
<li><a href="baseball/longtowel.html" title="Long Towel Snaps" target="_blank">Long Towel Snaps</a></li>
</ul>
</li>
<li><a href="#">Catching Drills</a></li>
</ul>
</li>
<li><a href="#">Pictures</a></li>
<li><a href="http://ghbl.atfreeforum.com/" title="GHBL Discussion Forum" target="_blank">Forum</a></li>
</ul>
<div id="sidebar1">
<h3>Latest News:</h3>
<p>Signup Dates have been set for:</p>
<p>March 28-29 &<br />
April 4-5</p>
<p>at Garfield Hts. Civic Center from Noon-5PM</p>
<p>* Anyone who signs up after this date will be charged a late fee.</p>
<hr />
<p>
<!-- end #sidebar1 -->
We are currently seeking individuals to serve as field commissioners in each division. Field commissioners are responsible for managing the division and alerting the field directors if additional equipment or assistance is required on their specific fields. If you are interested, please contact us immediately.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<div id="sidebar2">
<h3>Field Conditions:</h3>
<table width="175" border="2" cellpadding="1">
<tr>
<td><div align="center"><strong>Donovan #1</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
<tr>
<td><div align="center"><strong>Donovan #2</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
<tr>
<td><div align="center"><strong>Donovan #3</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
<tr>
<td><div align="center"><strong>Elmwood</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
<tr>
<td><div align="center"><strong>Konet</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
<tr>
<td><div align="center"><strong>William Foster</strong></div></td>
</tr>
<tr>
<td><div align="center" class="style6">Unplayable</div></td>
</tr>
<tr>
<td><div align="center"><strong>Colt Field</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
<tr>
<td><div align="center"><strong>Cranwood #1</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
<tr>
<td><div align="center"><strong>Cranwood #2</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style6">Unplayable</span></div></td>
</tr>
</table>
<p>The accuracy of these conditions can be improved by contacting us and letting us know if you have been there and seen what it looks like.<br /><br />Please contact webmaster Bob Kilner with any questions/comments. My contact information is on the Board of Directors page.</p><br /><br />
<!-- end #sidebar2 --></div>
<div id="mainContent">
<h1><img src="images/logo.jpg" width="272" height="192" alt="logo" /></h1>
<h2>Welcome to the homepage of the Garfield Heights Baseball League. Here you will find links to information about our league including: downloads, schedules, drills, contact information and much more. Feel free to browse using the links at the top.</h2>
<!-- end #mainContent --></div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer">
<p>Garfield Heights Baseball League<br />
PO Box 25465<br />
Garfield Heights, OH 44125</p>
<!-- end #footer --></div>
<!-- end #container --></div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>