Forum Moderators: not2easy
I have the following CSS
BODY {width: 40em; margin: 0 auto; background: #FFFFFF;}
.menu {text-align: center; background-color: #FFCC99;}
.main {margin-left: 5em; width: 30em;}
This works in IE 6, IE 5.2 on the Mac, and Konqueror/Safari, and almost works in Netscape 4 and Gecko (Netscape 7/Mozilla).
The problem in Gecko is that if the window is resized so it's very narrow, some of the text is pushed to the left of the window, where it can't be reached even using the horizontal scroll-bar. I'm not sure if this is a serious problem, but I suspect it might be on devices such as mobile phones with small displays.
In Netscape 4, the background color is applied only to the immediate background of the menu text, rather than extending in a 40em stripe across the page.
Any advice on how to fix either of these problems would be appreciated.
I thought at least my book reviews would be easy to CSS, but this is getting complicated -- or am I missing something really obvious? (As I was when I was trying to use max-width, which was the wrong approach entirely.)
As to the Netscape 4 issue, the background will only stretch as far as the text/images etc. contained within. I hate doing it (largely cause its extra coding) but you can add a spacer pic that will take up the rest of the space after text.
I'm more worried about the Gecko/Mozilla problem, though - the NN4 one is just aesthetics, but Gecko may be used on some mobile phones etc. with very small displays, and having text that is actually impossible to get to is kind of catastrophic.