Help with horizontal menu css

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
outdoorxtreme1

Help with horizontal menu css

Post by outdoorxtreme1 »

I on have 4 items for my horizontal menu. The css settings make them float to the left. What do I need to change to center these items? I can get them to float left or right but not center.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: Help with horizontal menu css

Post by Greg »

If you are using CSSMenu and the default CSSMenuHorizontal.css try by changing the css for the following id:

Code: Select all

#primary-nav, #primary-nav ul {
   list-style: none;
   padding: 0px;
   width: 50%;
   margin: 0 auto;
}
You may need to try different percentages to get a 'centered' look.
Greg
outdoorxtreme1

Re: Help with horizontal menu css

Post by outdoorxtreme1 »

Thanks Greg. That worked.  ;D
outdoorxtreme1

Re: Help with horizontal menu css

Post by outdoorxtreme1 »

How do I keep menu items from going to a second line when a users screen resolution is under 1024 x 768?
Locked

Return to “CMSMS Core”