two7s_clash wrote:
Quote:
Considering: http://townscapes.net/
I'm also having some trouble with the menu... I want the the <a
padding to go red on hover, but stay within the white border and also
not dynamically push anything out (this mainly seems to happen in IE6). |
See if this is good enough for you (although I really only addressed
this problem as I saw it in FF, but read on):
#menu a, #menu a:link {
margin-top:-1em;
background-color: #009933;
padding: .9em .8em;
color: black;
text-decoration: none;
float: left;
}
#menu a:hover, #menu a:active {
padding: .9em .8em;
background-color: #991A00;
color: #FFFFFF;
float: left;
}
Your padding for hover has to be the same as your padding for non-hover,
otherwise you'll get...what you've had.
You'll probably see some slight differences at the lower edge of the
#menu a:hover when you try different font sizes, but maybe it's close
enough for you. I only tested in FF. I think the discepancies come from
the multiple definitions of font size and line-height you're using; I
can't tell *what* the em value for these <a>s are supposed to be. All of
these appear to apply:
html, body {font: 100%/120%}
body {font-size: 72%; line-height: 1.5em;}
#content {font-size: 98%;}
#wrapper{width:100%; }
#content {font-size: 98%;}
#menu {font-size: 100%;}
..content{font-size: 105%;} Oops, no, not the *class* content, only the
*id* content.
Anyway, I hope this helps.
--
John