djs.specs
03-10-2009, 04:00 PM
Hi all!
I'm really, really, really new to CSS and of course I'm jumping in at the deep end by trying to adjust a template :eek: The problem is that I'm currently getting this with the code as it stands:
http://i167.photobucket.com/albums/u147/lil_miss_stfu/Picture2-1.png
What I want is for the background image to stop at the end of the text and the footer image (the bit with the pentacle) to attach seamlessly to the bottom in such a way that it scrolls with the rest of it. Main reason I want this is so that I can use a static background image that overlaps underneath the text box, thus the need for transparency around the bottom half of the image.
Here is the code I currently have:
*{
padding: 0px;
margin: 0px;
}
body{
background: #000000 url(images/back_all.jpg) no-repeat fixed left;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #000000;
padding: 0px;
margin: 0px;
}
#content
{
width: 100%;
}
a{
color: #151422;
text-decoration:none;
}
a:hover, a:active{
color:#151422;
text-decoration:none;
}
#header{
height: 128px;
}
#menu
{
height: 39px;
width: 604px;
margin-bottom: 10px;
}
#menu ul li{
list-style: none;
display: inline;
}
#menu a
{
display: block;
float: left;
width: 83px;
height: 37px;
padding-left: 30px;
padding-top: 25px;
color: #ffffff;
font-size: 10px;
text-transform: uppercase;
font-weight: bold;
background: url(images/button.gif) no-repeat;
}
#menu a:hover
{
display: block;
padding-top: 25px;
height: 37px;
float: left;
color: #ffffff;
font-weight: bold;
background: url(images/button_r.gif) no-repeat;
}
#main
{
width:580px;
margin: 0 auto;
}
#wrapper
{
width: 604px;
background: url(images/table_back.gif) repeat-y center;
margin: 0px auto;
}
#logo
{
height: 66px;
width: 542px;
text-align: right;
}
#logo h1
{
font-size: 18px;
padding-top: 20px;
padding-left: 20px;
font-weight: bold;
color: #E6E6E6;
}
#logo h2 a
{
font-size: 10px;
padding-left: 20px;
font-weight: bold;
color: #E6E6E6;
text-transform: uppercase;
}
#top
{
background: url(images/top.gif) no-repeat top center
}
#text{
background: url(images/bottom.gif) no-repeat bottom center;
padding-bottom: 60px;
padding-left: 60px;
padding-right: 60px;
padding-top: 60px;
min-height: 480px;
}
#text p{
padding:5px;
}
h1, h2, h3{
color:#151422;
}
h1{
font-size:1.2em;
}
h2{
font-size:1.05em;
}
h3{
font-size:1em;
}
#text ul, ol{
padding-left:12px;
margin-left:12px;
}
.meta{
text-align:right;
color:#151422;
font-size:0.79em;
}
.meta a{
text-decoration:none;
}
#footer{
font-size:0.79em;
text-align:center;
margin-bottom: 20px;
height: 50px;
color: #FFFFFF;
padding-top: 10px;
}
#footer a{
text-decoration:none;
color: #FFFFFF;
}
Knowing my luck, its probably an easy fix but its not jumping out at me and the things that I've tried aren't working (I tried to fix the image as a static global footer but it killed something good). Any suggestions would be welcome :confused:
I'm really, really, really new to CSS and of course I'm jumping in at the deep end by trying to adjust a template :eek: The problem is that I'm currently getting this with the code as it stands:
http://i167.photobucket.com/albums/u147/lil_miss_stfu/Picture2-1.png
What I want is for the background image to stop at the end of the text and the footer image (the bit with the pentacle) to attach seamlessly to the bottom in such a way that it scrolls with the rest of it. Main reason I want this is so that I can use a static background image that overlaps underneath the text box, thus the need for transparency around the bottom half of the image.
Here is the code I currently have:
*{
padding: 0px;
margin: 0px;
}
body{
background: #000000 url(images/back_all.jpg) no-repeat fixed left;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #000000;
padding: 0px;
margin: 0px;
}
#content
{
width: 100%;
}
a{
color: #151422;
text-decoration:none;
}
a:hover, a:active{
color:#151422;
text-decoration:none;
}
#header{
height: 128px;
}
#menu
{
height: 39px;
width: 604px;
margin-bottom: 10px;
}
#menu ul li{
list-style: none;
display: inline;
}
#menu a
{
display: block;
float: left;
width: 83px;
height: 37px;
padding-left: 30px;
padding-top: 25px;
color: #ffffff;
font-size: 10px;
text-transform: uppercase;
font-weight: bold;
background: url(images/button.gif) no-repeat;
}
#menu a:hover
{
display: block;
padding-top: 25px;
height: 37px;
float: left;
color: #ffffff;
font-weight: bold;
background: url(images/button_r.gif) no-repeat;
}
#main
{
width:580px;
margin: 0 auto;
}
#wrapper
{
width: 604px;
background: url(images/table_back.gif) repeat-y center;
margin: 0px auto;
}
#logo
{
height: 66px;
width: 542px;
text-align: right;
}
#logo h1
{
font-size: 18px;
padding-top: 20px;
padding-left: 20px;
font-weight: bold;
color: #E6E6E6;
}
#logo h2 a
{
font-size: 10px;
padding-left: 20px;
font-weight: bold;
color: #E6E6E6;
text-transform: uppercase;
}
#top
{
background: url(images/top.gif) no-repeat top center
}
#text{
background: url(images/bottom.gif) no-repeat bottom center;
padding-bottom: 60px;
padding-left: 60px;
padding-right: 60px;
padding-top: 60px;
min-height: 480px;
}
#text p{
padding:5px;
}
h1, h2, h3{
color:#151422;
}
h1{
font-size:1.2em;
}
h2{
font-size:1.05em;
}
h3{
font-size:1em;
}
#text ul, ol{
padding-left:12px;
margin-left:12px;
}
.meta{
text-align:right;
color:#151422;
font-size:0.79em;
}
.meta a{
text-decoration:none;
}
#footer{
font-size:0.79em;
text-align:center;
margin-bottom: 20px;
height: 50px;
color: #FFFFFF;
padding-top: 10px;
}
#footer a{
text-decoration:none;
color: #FFFFFF;
}
Knowing my luck, its probably an easy fix but its not jumping out at me and the things that I've tried aren't working (I tried to fix the image as a static global footer but it killed something good). Any suggestions would be welcome :confused: