Doing this as a class group project, I'm doing the front end while other members are doing the backend. I'm using the 960 grid system, to try and position everything. It is my first time really doing a project using CSS and the 960 grid system.
I'm using javascript to include other html files.Excluding the header and footer, I created 6 divs for the main content area and want each div to include a different html file. 2 Rows of 3 divs.
The problem I have come across is that the divs are stacking ontop of each other and I cant really control how wide each div is even though i gave it a grid_8 class. On top of that they are stacking ontop of each other, and it gets cut off at the bottom even after I scroll down. I also want to make the footer stay at the bottom but instead of being fixed on the bottom of the browser at all times I want to scroll all the way down to be able to see it.
Here is what it looks like atm, I gave borders to the divs so you can see how they are stacking http://i53.tinypic.com/2lbzgp.png
Any help is appreciated.
*edit forgot to mention i've put <div id="clear"></div> into the header.html and footer.html etc
I'm using javascript to include other html files.Excluding the header and footer, I created 6 divs for the main content area and want each div to include a different html file. 2 Rows of 3 divs.
The problem I have come across is that the divs are stacking ontop of each other and I cant really control how wide each div is even though i gave it a grid_8 class. On top of that they are stacking ontop of each other, and it gets cut off at the bottom even after I scroll down. I also want to make the footer stay at the bottom but instead of being fixed on the bottom of the browser at all times I want to scroll all the way down to be able to see it.
Here is what it looks like atm, I gave borders to the divs so you can see how they are stacking http://i53.tinypic.com/2lbzgp.png
Any help is appreciated.
Code:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="javascript/jquery-1.5.min.js"></script>
<script type="text/javascript" src="javascript/ticker.js"></script>
<script type="text/javascript" src="javascript/stock.js"></script>
<script type="text/javascript" src="javascript/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="javascript/dataTable.findRow.js"></script>
<script type="text/javascript" src="javascript/jquery-ui.1.8.10.custom.min.js"></script>
<script type="text/javascript" src="javascript/jquery.metadata.js"></script>
<script type="text/javascript" src="javascript/jquery.validate.js"></script>
<script type="text/javascript" src="javascript/jquery-impromptu.3.1.min.js"></script>
<link rel="StyleSheet" href="css/jquery-ui-1.8.10.custom.css" type="text/css" >
<link rel="StyleSheet" href="css/examples.css" type="text/css" >
<link rel="StyleSheet" href="css/client.css" type="text/css" >
<link rel="StyleSheet" href="css/style.css" type="text/css" >
<link rel="StyleSheet" href="css/960_24_col.css.css" type="text/css" >
<link rel="StyleSheet" href="css/text.css" type="text/css" >
<link rel="StyleSheet" href="css/reset.css" type="text/css" >
</head>
<body>
<body>
<div class="container_24" style="border: yellow solid 1px;">
<!-- HEADER BEGINS -->
<%@include file="header.html" %>
<!-- HEADER ENDS -->
<!-- MAIN CONTAINER BEGINS -->
<!-- BEGIN ROW 1 -->
<div id="topleft" class="grid_8" style="border: red solid 1px;" width="25%" height="100%">
<%@include file="topleft.html" %>
</div>
<div id="topcenter" class="grid_8" style="border:blue solid 1px;" width="25%" height="100%">
<%@include file="topcenter.html" %>
</div>
<div id="topright" class="grid_8" style="border: green solid 1px;" width="25%" height="100%">
<h1>TOP RIGHT BLAH BLAH</h1>
</div>
<div id="clear"></div>
<!-- END ROW 1 -->
<!-- BEGIN ROW 2 -->
<div id="bottomleft" class="grid_8" style="border:green solid 1px;" width="25%" height="100%">
<%@include file="bottomleft.html" %>
</div>
<div id="bottomcenter" class="grid_8" style="border:red solid 1px;" width="25%" height="100%">
<%@include file="bottomcenter.html" %>
</div>
<div id="bottomright" class="grid_8" style="border:blue solid 1px;" width="25%" height="100%">
<h1>BOTTOM RIGHT BLAH BLAH</h1>
</div>
<!-- END ROW 2 -->
<div class="clear"></div>
<!-- MAIN CONTAINER ENDS -->
<!-- FOOTER BEGINS -->
<div id="siteinfo" class="grid_24">
<%@include file="footer.html" %>
</div>
<!-- FOOTER ENDS -->
</div>
</body>
</html>
*edit forgot to mention i've put <div id="clear"></div> into the header.html and footer.html etc
Last edited: