Vertical vs. Horizontal |
symptomYou want to display a horizontal menu (e.g. you are using the menu template son-of-suckerfish-horizontal) but it appears vertical instead. causeA common cause for this problem is that the parent element of the menu (usually a div) is not wide enough. The HTML code (simplified) may look like this:
If the above div element is either very small or set to use as little as possible space then the menu items will not positioned in one line anymore and appear vertical. solutionIf you are not a CSS expert you may find it difficult to modify the CSS to allow the div to be as wide as necessary. The easiest way to fix it is to set a fixed width instead, either for the div element or the ul element itself. For example with the following CSS:
Please note that usually a class suffix is used. You can look at the HTML source your browser receives to make sure you enter the correct CSS. |