harlequin2k5
05-30-2007, 05:48 PM
so the site I'm working on is at http://shiznit.no-ip.info/rjnall
if you'll notice on the left side I'm trying to create a transparent bg for the menu so that the gradient shows through from the main bg
when I run the page through the css validator it fails on those 3 lines where the opacity is in left-col-nav and the left-col-nav ul li:hover
is there a better way to do what I'm trying to do? did I just implement it incorrectly?
any help is greatly appreciated!
body{
font-family: verdana,arial,helvetica,sans-serif;
text-align:center;
color:#000000;
font-size: 12px;
background-color:#efefef;
text-align:center;
}
#main-wrap{
background-image:url(../img/mainbg.jpg);
background-repeat:repeat-y;
width:760px;
text-align:left;
margin-left:auto;
margin-right:auto;
font-family: verdana,arial,helvetica,sans-serif;
text-align:center;
color:#000000;
font-size: 12px;
}
h1 {
font-size:16px;
}
h2 {
font-size:14px;
}
* html #main-wrap{
height:600px;
}
#header{
width:760px;
height:119px;
background-image:url(../img/rjnallbanner2.jpg);
background-repeat:no-repeat;
background-color:#114076;
}
#col-wrap {
width:760px;
text-align:center;
background-image:url(../img/colbg2.jpg);
background-repeat:repeat-x;
min-height:600px;
}
#left-col-nav{
width:200px;
float:left;
margin:0;
padding:0;
text-align:center;
}
#left-col-nav ul {
padding:10px;
width:150px;
margin:10px auto 0 auto;
background-color:#ffffff;
text-align:left;
filter:alpha(opacity=50);
-moz-opacity:.50;
opacity:.50;
min-height:600px;
}
#left-col-nav li {
list-style-type:none;
text-indent:10px;
line-height:18px;
margin-top:10px;
}
#left-col-nav ul li a:link {
text-decoration:none;
color:#114076;
font-weight:bold;
}
#left-col-nav ul li a:visited {
text-decoration:none;
color:#114076;
font-weight:bold;
}
#left-col-nav ul li a:hover {
text-decoration:none;
background-color:#114076;
color:#ffffff;
font-weight:bold;
display:block;
width:150px;
filter:alpha(opacity=100);
-moz-opacity:1.0;
opacity:1.0;
}
#left-col-nav ul li a:active {
text-decoration:none;
background-color:#114076;
color:#ffffff;
font-weight:bold;
}
#left-col-nav ul li a:focus {
text-decoration:none;
background-color:#114076;
color:#ffffff;
font-weight:bold;
}
#content-container {
width:410px;
margin:10px auto 0 auto;
text-align:left;
float:left;
text-align:justify;
background-color:#ffffff;
min-height:600px;
}
#content {
margin:10px;
}
#right-col-nav{
width:150px;
float:right;
margin:0;
padding:0;
text-align:center;
min-height:600px;
}
#footer{
width:750px;
background-color:#114076;
padding:5px;
color:#ffffff;
text-align:center;
}
.clearfix{
clear:both;
}
.imageleft {
float:left;
margin:10px;
}
.imageright {
float:right;
margin:0 10px 10px 10px;
}
#right-col-nav .navtitle {
background-color:#ffffe8;
text-align:center;
margin:10px auto 0 auto;
padding:0;
width:130px;
}
#footer li {
display:inline;
padding:10px;
}
#footer li a:link{
color:#ffffff;
font-weight:bold;
}
#footer li a:visited{
color:#ffffff;
font-weight:bold;
}
#footer li a:hover{
background-color:#ffffff;
color:#114076;
font-weight:bold;
}
#footer a:link{
color:#ffffff;
font-weight:bold;
}
#footer a:visited{
color:#ffffff;
font-weight:bold;
}
#footer a:hover{
background-color:#ffffff;
color:#114076;
font-weight:bold;
}
.imgcontainerright {
padding:10px;
margin: 0 10px 10px 10px;
float:right;
border: 1px solid #114076;
text-align:center;
}
#formcontainer {
clear:left;
margin:10px;
background-color:#eeeeee;
border: 1px solid #114076;
}
if you'll notice on the left side I'm trying to create a transparent bg for the menu so that the gradient shows through from the main bg
when I run the page through the css validator it fails on those 3 lines where the opacity is in left-col-nav and the left-col-nav ul li:hover
is there a better way to do what I'm trying to do? did I just implement it incorrectly?
any help is greatly appreciated!
body{
font-family: verdana,arial,helvetica,sans-serif;
text-align:center;
color:#000000;
font-size: 12px;
background-color:#efefef;
text-align:center;
}
#main-wrap{
background-image:url(../img/mainbg.jpg);
background-repeat:repeat-y;
width:760px;
text-align:left;
margin-left:auto;
margin-right:auto;
font-family: verdana,arial,helvetica,sans-serif;
text-align:center;
color:#000000;
font-size: 12px;
}
h1 {
font-size:16px;
}
h2 {
font-size:14px;
}
* html #main-wrap{
height:600px;
}
#header{
width:760px;
height:119px;
background-image:url(../img/rjnallbanner2.jpg);
background-repeat:no-repeat;
background-color:#114076;
}
#col-wrap {
width:760px;
text-align:center;
background-image:url(../img/colbg2.jpg);
background-repeat:repeat-x;
min-height:600px;
}
#left-col-nav{
width:200px;
float:left;
margin:0;
padding:0;
text-align:center;
}
#left-col-nav ul {
padding:10px;
width:150px;
margin:10px auto 0 auto;
background-color:#ffffff;
text-align:left;
filter:alpha(opacity=50);
-moz-opacity:.50;
opacity:.50;
min-height:600px;
}
#left-col-nav li {
list-style-type:none;
text-indent:10px;
line-height:18px;
margin-top:10px;
}
#left-col-nav ul li a:link {
text-decoration:none;
color:#114076;
font-weight:bold;
}
#left-col-nav ul li a:visited {
text-decoration:none;
color:#114076;
font-weight:bold;
}
#left-col-nav ul li a:hover {
text-decoration:none;
background-color:#114076;
color:#ffffff;
font-weight:bold;
display:block;
width:150px;
filter:alpha(opacity=100);
-moz-opacity:1.0;
opacity:1.0;
}
#left-col-nav ul li a:active {
text-decoration:none;
background-color:#114076;
color:#ffffff;
font-weight:bold;
}
#left-col-nav ul li a:focus {
text-decoration:none;
background-color:#114076;
color:#ffffff;
font-weight:bold;
}
#content-container {
width:410px;
margin:10px auto 0 auto;
text-align:left;
float:left;
text-align:justify;
background-color:#ffffff;
min-height:600px;
}
#content {
margin:10px;
}
#right-col-nav{
width:150px;
float:right;
margin:0;
padding:0;
text-align:center;
min-height:600px;
}
#footer{
width:750px;
background-color:#114076;
padding:5px;
color:#ffffff;
text-align:center;
}
.clearfix{
clear:both;
}
.imageleft {
float:left;
margin:10px;
}
.imageright {
float:right;
margin:0 10px 10px 10px;
}
#right-col-nav .navtitle {
background-color:#ffffe8;
text-align:center;
margin:10px auto 0 auto;
padding:0;
width:130px;
}
#footer li {
display:inline;
padding:10px;
}
#footer li a:link{
color:#ffffff;
font-weight:bold;
}
#footer li a:visited{
color:#ffffff;
font-weight:bold;
}
#footer li a:hover{
background-color:#ffffff;
color:#114076;
font-weight:bold;
}
#footer a:link{
color:#ffffff;
font-weight:bold;
}
#footer a:visited{
color:#ffffff;
font-weight:bold;
}
#footer a:hover{
background-color:#ffffff;
color:#114076;
font-weight:bold;
}
.imgcontainerright {
padding:10px;
margin: 0 10px 10px 10px;
float:right;
border: 1px solid #114076;
text-align:center;
}
#formcontainer {
clear:left;
margin:10px;
background-color:#eeeeee;
border: 1px solid #114076;
}