martynball
New Member
- Messages
- 60
- Reaction score
- 0
- Points
- 0
Bascially, I want the "main_text" div go all the way to the bottom of the page, but for some reason width:100%; won't do it :S
CSS:
http://martynleeball.x10hosting.com/index.php
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>Fenton Gallery - Home</title>
<?php include 'includes/inc_scripts.php'; ?>
</head>
<body>
<div class="header">
<div class="links" align="center">
<?php include 'includes/inc_menu.php'; ?>
</div>
</div>
<div class="navbar" align="center">
<?php include 'includes/inc_navbar_content.php'; ?>
</div>
<div class="main_text">
<p class ="g1">Fenton Gallery is now taking Art from all ages. Anyone can easily submit their artwork to our website by simply uploading the picture. We will then check that the Art does not violate our <a class="plain" href="#">Terms and Conditions</a>, then add it to the gallery.</p>
</div>
<div class="bottom-bar" align="center">
<?php include 'includes/inc_sponser.php'; ?>
</div>
</body>
</html>
CSS:
Code:
@import "text-styles.css";
@import "gallery-styles.css";
@import "contact-styles.css";
@import "download-styles.css";
@import "database-styles.css";
/* Start Main Styles */
body { /*Top header with background image*/
background-image:url(../images/vista/header.jpg);
background-repeat:no-repeat;
background-position:top;
background-color:#1b1b1b;
}
.header { /*Contains background with curved edges and navagation links inside*/
background-image:url(../images/vista/header_links.png);
background-repeat:no-repeat;
height:3.3em;
margin-top:9.3em;
background-position:center;
}
.navbar { /*Bar going accross page under the navigation links*/
background-image:url(../images/vista/narbar.gif);
background-repeat:repeat-x;
height:3em;
width:100%;
left:0px;
position:absolute;
margin-bottom:0px;
z-index:1;
}
.main_text { /*Main content div*/
padding-top:2em;
background-color:#2a2a2a;
width:785px;
height:100%;
border-left:1px;
border-right:1px;
border-left-color:#62c2ff;
border-right-color:#333333;
border-style:solid;
border-bottom:none;
margin:0 auto;
}
.bottom-bar {
background-color:#282828;
bottom:0px;
width:100%;
height:1.5em;
left:0px;
border-top-style:solid;
border-top-width:1px;
border-top-color:#333333;
position:fixed;
}
.wrapper-1 {
position: relative;
clear: both;
background-color:#333333;
margin:0 auto;
height:100%;
}
/* End Main Styles */
/*Special*/
.spon-img {
opacity:0.3;
filter:alpha(opacity=35);
margin-left:5em;
}
.spon-img:hover {
opacity:1.0;
filter:alpha(opacity=100);
margin-left:5em;
}
a.img { /*Removes styles from images*/
border:0px;
padding:0px;
background:none;
margin:0px;
}
/*END Special*/
/*Menu Links */ /*Menu link styles*/
a.menu:link {
color:#CCCCCC;
text-decoration: none;
font-family:calibri;
background-image:url(../images/vista/button_unactive.png);
background-repeat:no-repeat;
background-position:center;
padding:14px;
padding-left:36px;
padding-right:36px;
margin-left:25px;
}
a.menu:visited {
color:#CCCCCC;
font-family:calibri;
text-decoration: none;
background-image:url(../images/vista/button_unactive.png);
background-repeat:no-repeat;
background-position:center;
padding:14px;
padding-left:36px;
padding-right:36px;
margin-left:25px;
}
a.menu:hover {
color:#CCCCCC;
font-family:calibri;
text-decoration: none;
background-image:url(../images/vista/button.png);
background-repeat:no-repeat;
background-position:center;
padding:14px;
padding-left:36px;
padding-right:36px;
margin-left:25px;
}
/*END LinkStyle */
http://martynleeball.x10hosting.com/index.php
Last edited: