Just took this site live (still waiting for the URL to be released by the client’s former host).
It displays okay in FF and IE, but when I open it up in Opera, the blue nav bar appears to be almost entirely hidden behind the content area. A refresh makes it snap into place. Anyone have any thoughts as to why?
(Second question: the colors seem a bit “heavy” to me. Anyone else get that impression?)
This design “sat” for several months while the site owners dealt with illness and other issues. I haven’t looked at it since before Christmas until just the other day, and I see some things I probably would do differently if I were to do it from scratch again. But the concealed nav bar concerns me.
That was one of the things I noted as “do differently next time.” I originally wrote that code quick&dirty, and never went back to do it right.
I tried it locally without the RP fix, and you’re right, apparently that was what was causing Opera to chuff a hairball. Now I get to make sure not to allow that to propagate in some of my other designs…
A refresh makes it snap into place. Anyone have any thoughts as to why?
When I run your files locally it loads fine on the initial page load.
I’m not sure if this is having anything to do with it but I see that your <div id=“navcontainer”> is an unstyled div. I would start by getting rid of it and targeting the li items via the <ul id=“navlist”>.
It may not fix the problem but it will eliminate an unnecessary div. It is hard to track down the real cause since it works fine locally and a refresh fixes it on your live page.
Ray, thanks for the recode. It seems to work on an initial test-drive. I’ll try it on a larger basis and see if it does the trick all around. That * a {position:relative;} thing is part of the global reset, which I cribbed wholesale from the YUI Library – I made some changes to it, but never took that out. Good catch!
Edit: I wonder why these fixes worked, but I’ll probably never quite figure that one out…
Hey Max,
I see you got those changes in place now. I cleared my cache in Opera and went to your page again, it loaded fine the first time.
The navbar is actually depending on the “Paws Place” logo image to position it correctly. There is a slight delay with the navbar positioned to high until the logo image loads.
You might consider setting it as a BG image in a div then nesting the anchor in that div as display:block; width/height:100%. That will hold the height open while the image loads and keep the navbar from jumping down.
Edit: I wonder why these fixes worked, but I’ll probably never quite figure that one out…
To figure out the “why” you could run some tests with anchors at their default of display:inline; along with RP.
I am guessing that the RP on the anchor was the cause of it and not that unstyled #navcontainer div.