Hello all,
I'm slowly familiarizing myself with CSS and how various browsers
implement this. I'm trying to improve my personal page. I have a
vertical left navigation bar with a ul button menu with several li
links. The CSS is below. It looks like I wish it to in Firefox
2.0.0.9, Opera 9.50 beta, and IE7. However, if I choose the largest
font in IE7, the text in the li links starts to protrude from the
fixed width containing elements (phrases do break correctly, but long
words protrude). I thought I could fix this by the method of
width:auto and min-width:<my current width size>. However, I then have
two problems:
1) the navigation bar background (left floating blue background) does
not expand along with the ul, even if I make the left_nav width auto
as well. I suspect it has to do with the floating part, but am not
sure what I should be doing to relate the two width-wise.
2) while all li elements are the same width in FF and Opera, they
become *different* widths in IE7 :-( I'm stumped on how to get all li
the same width.
I'd be really grateful for any pointers on where to look for solutions
to these issues. My page (sorry, it is on Dynamic DNS and may not
always be up) is at www.aikishugyo.dnsdojo.org/index.html
(unfinished), and the stylesheet is site.css. I pasted the relevant
sections below---this left_nav is inside a page_container.
#left_nav {
float:left;
z-index: 1;
margin:0;
padding:0;
height: 100%;
width: auto;
min-width: 110px;
}
#button {
font: 0.6em/1em;
width: 110px;
margin-bottom: 1em;
font-family: "Times New Roman", "Lucida Grande", Verdana,
Helvetica, Arial, sans-serif;
z-index: 5;
background-color: #90bade;
border-right: 1px solid #508fc4;
padding: 0;
}
#button ul {
list-style: none;
margin: 0;
padding: 0;
border: none;
width: 110px;
z-index: 10;
}
#button li {
font-size: 0.8em;
line-height: 1.2em;
margin: 0;
padding: 0;
width:110px;
text-align: left;
border-bottom: 1px solid #90bade;
z-index: 15;
}
#button li a {
display: block;
padding: 0; /*5px 5px 5px 0.5em;*/
margin: 0;
margin-left: 5px;
margin-right: 5px;
text-decoration: none;
text-align: left;
padding-left: 5px;
padding-top: 5px;
padding-bottom: 5px;
width: 85px;
border-left: 5px solid #508fc4; /* #314a85;*/
border-right: 5px solid #508fc4;
background-color: #2175bc;
color: #fff;
}
#button li a:hover {
border-left: 5px solid #5ba3e0; /* #1c64d1 */;
border-right: 5px solid #5ba3e0;
background-color: #2586d7;
padding:0;
padding-left: 5px;
padding-top: 5px;
padding-bottom: 5px;
margin:0;
color: #fff;
}
Regards, Gernot
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/