Posted by riverrat on December 18, 2010 at 6:22pm
Hi
Not sure how t happened but after I added some extra modules (location and calendar) the block that contains the primary links menu expanded from 45 to 123 (firebug).
I am using a submenu based on openpublish-theme. If I have empty files under the css in the submenu it stays the same size. If I go back to the openpublish theme then everything goes back to normal.
I can get round it by putting top.-50px; in the css for nav but would prefer to find the source of the problem and correct it there.
Any thoughts anyone, and please be gentle if the answer is really obvious.
Comments
Use firebug to see what css
Use firebug to see what css is making it larger. Apparently one of the modules came with some styling that applied to your nav.
Thanks for the reply ksweet,
Thanks for the reply ksweet, but as you will have noticed, above, that I used firebug to find the actual increase in size. Have looked at all the css files referenced in firebug and can find any statement which affects the nav class so as to increase the size of the block.
In fact to be clear there is no problem if I use the openpublish theme it is only when I over ride it with my own sub-theme that the problem occurs. I have even emptied the css files in my own subtheme so that there is no over ride and the problem remains. Is it possible that it the subtheme.info file which is causing the problem?
Oh and I have cleared the cache each time I have made a change.
Something has to be adding
Something has to be adding the css. In Firebug, if you inspect the element, the style tab on the right will show every styling that is being applied to the element. Look at the nav element and its descendants. Eventually you'll find the reason why it's being displayed larger and that'll give you your next clue where to look. There's no way for us to know what went wrong. Subthemes don't magically create css styling that makes navs bigger, so something is doing it and the best advice is to gather clues through firebug.
You are absolutely correct
You are absolutely correct but I have looked and can not find it, so I have altered it using the margin setting.
It is possible that some how the rendered content is causing the problem though how I haven't a clue.
Thanks for trying, and I do know that you can not help in detail. I posted it because I thought there might be someone else who had the same problem. Clearly it is just mine.
Problem Solved
Thought to publish the cause of the problem and its solution to help others should they encounter the same thing.
The cause is the height of the logo.gif in logo-area and the size of the area allowed for the search box.
The openpublish theme uses a height of 77px and mine was 113px the height shown for the logo-area. If I reduce the size to 77px as per the openpublish theme all works as expected.
If it is slightly expanded the problem returns. This is caused by the css attributes of search_box_top and specifically the padding-top which is set to 45px. If this is altered the size of the logo can be enlarged.
I hope this is useful to someone
Adding language causes same problem
I added french and the menu block got larger again for the French but not the default english. It only happens with the logged in users not the anonymous users