I'm currently developing a personal home page themed website for a local charity and am having problems with some CSS.
Basically, I have a set of anchors that I have declared their display as BLOCK level within a DIV container. When I hover over the links they work fine in Firefox and IE etc..
But for some reason on Opera the hover freezes and basically doesn't do anything. Is their a bug in Opera I should be aware of? or it's more likely to be my CSS?
You can view my problem at
http://www.mediamole.net/safe-fin/index.html
The other problem I have, which I believe is related in some way is a link heritance problem. I have a link at the very top of the page which is meant to take the font-size of the DIV container. However, you'll notice it seems to be getting it's font size from another declaration and not sure which.
Can anyone advise?
The CSS code I'm using is as follows:
Code:
body { font-family: "Lucida Grande", Arial, sans-serif;
font-size:100%;
color:#4D6E8E;
margin-top:0; }
div { width:650px; }
a:link { background-color:#4D6E8E; font-size:.92em; text-decoration:none; color:#fff;}
a:visited { color:#fff; text-decoration:none; font-size:.92em; background-color:#4D6E8E; }
a:hover { background-color:#CC0066; color:#fff; text-decoration:underline;}
a:active {background-color:#4D6E8E; font-size:.92em; text-decoration:none; color:#fff;}
div#header { font-size:.66em; background-color:#fff; color:#4D6E8E; }
div#header div#page_link { font-size:inherit; width:325px; float:left; text-align:left; padding-bottom:5px;}
div#header div#page_link a { background-color:#fff; color:#4D6E8E; text-decoration:none;}
div#header div#page_date {width:325px; font-size:inherit; float:right; text-align:right; padding-bottom:5px;}
ul#globalnav { margin:0; padding: 5px 0; background-color:#4D6E8E; width:650px; text-align:center; }
ul#globalnav li { margin:0; padding:0; display: inline; list-style:none; color:#fff; padding:0 3px; }
#container { width:650px; padding-top:15px;}
#leftcol { width:160px; float:left; }
#rightcol { width:460px; float:right; padding-left:30px; }
div#sidenav { width:160px; }
div#sidenav a { font-size:1.2em; background-color:#cff; color:#4D6E8E; display:block; border-style:solid; border-color:#fff; border-width:2px; }
div#sidenav a:hover { font-size:1.2em; background-color:#C06; color:#fff; border-style:solid; border-color:#fff; border-width:2px; text-decoration:none; }
div#leftcol a { font-size:1em; background-color:#cff; color:#4D6E8E; border-style:solid; border-color:#fff; border-width:2px; }
div#leftcol a:hover { font-size:1em; background-color:#c06; color:#fff; border-style:solid; border-color:#fff; border-width:2px; text-decoration:none; }
li { list-style-type:square; margin:10px; }
h1 { color: #C06; font-size: 1.8em; margin:0; letter-spacing:1pt;}
h2 { font-size:1.8em; background-color:#fff; color:#C06; margin:0; }
h3 { font-size:1em; background-color:#fff; color:#C06; margin:0; }
h1, h2, h3 { vertical-align:top; }
strong { color:#C06; font-size:1.2em; font-weight:bold; }
.fixclear:after { content:"."; display:block; height:0; clear:both; visibility:hidden; }
* html .fixclear { height:1%;}
.fixclear { display:block; }
Gaz