M
Martin Magnusson
Hi, I'm in the process of migrating from "traditional" HTML layout to
CSS, and I have two questions.
I've posted minimal examples at
http://www.update.uu.se/~martin/wb/annat/index.htm and
http://www.update.uu.se/~martin/wb/annat/styles.css
Firstly, I would like the "navbar" <div> to resize vertically for people
with really narrow windows, when the horizontally aligned <ul> gets line
breaked (is that a proper expression?). Explorer 6 does this, but not NS
7.1 or Opera 7.2, so I suspect setting the height of "navbar" to 1 em is
not the way to go, but if I omit the height attribute entirely, the
height is set to zero and the floating <ul> ends up outside of the <div>.
Secondly, I would expect all of the text in the <ul> to be bold.
However, my fairly empty definition of the style for <a> seems to
override the font-weight. Is there an easy way to get bold links in the
list, which change colour on mouse-over?
/ martin
CSS, and I have two questions.
I've posted minimal examples at
http://www.update.uu.se/~martin/wb/annat/index.htm and
http://www.update.uu.se/~martin/wb/annat/styles.css
Firstly, I would like the "navbar" <div> to resize vertically for people
with really narrow windows, when the horizontally aligned <ul> gets line
breaked (is that a proper expression?). Explorer 6 does this, but not NS
7.1 or Opera 7.2, so I suspect setting the height of "navbar" to 1 em is
not the way to go, but if I omit the height attribute entirely, the
height is set to zero and the floating <ul> ends up outside of the <div>.
Secondly, I would expect all of the text in the <ul> to be bold.
However, my fairly empty definition of the style for <a> seems to
override the font-weight. Is there an easy way to get bold links in the
list, which change colour on mouse-over?
/ martin