<![CDATA[ Nav Menu CSS Centering - My Forums]]> https://forums.modx.com/thread/?thread=89450 <![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553209 lkfranklin Aug 16, 2017, 04:49 AM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553209 <![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553208
I am pretty new to the whole MODX scene and just took over my companies website that was origianlly built on MODX platform.

I've changed the menu to something that I like better but for some reason it keeps staying to the left of the page under the banner no matter what I do to it.

Any ideas? All help is very much appreciated since I am trying to learn all this stuff.

Here is the CSS:
.jqueryslidemenu{
font: bold 12px Verdana;
background: #414141;
width: 100%;
}

.jqueryslidemenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}

/*Top level list items*/
.jqueryslidemenu ul li{
position: relative;
display: inline;
float: left;
}

/*Top level menu link items style*/
.jqueryslidemenu ul li a{
display: block;
background: #414141; /*background of tabs (default state)*/
color: white;
padding: 8px 10px;
border-right: 1px solid #778;
color: #2d2b2b;
text-decoration: none;
}

* html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}

.jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{
color: white;
}

.jqueryslidemenu ul li a:hover{
background: black; /*tab link background during hover state*/
color: white;
}
	
/*1st sub level menu*/
.jqueryslidemenu ul li ul{
position: absolute;
left: 0;
display: block;
visibility: hidden;
}

/*Sub level menu list items (undo style from Top level List Items)*/
.jqueryslidemenu ul li ul li{
display: list-item;
float: none;
}

/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.jqueryslidemenu ul li ul li ul{
top: 0;
}

/* Sub level menu links style */
.jqueryslidemenu ul li ul li a{
font: normal 13px Verdana;
width: 160px; /*width of sub menus*/
padding: 5px;
margin: 0;
border-top-width: 0;
border-bottom: 1px solid gray;
}

.jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/
background: #eff9ff;
color: black;
}

/* ######### CSS classes applied to down and right arrow images  ######### */

.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}

.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}
]]>
loiariu Aug 16, 2017, 03:51 AM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553208
<![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553207 loiariu Aug 16, 2017, 03:50 AM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553207 <![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491920 gekinwired24 Mar 06, 2014, 08:32 AM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491920 <![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491880 paulp Mar 05, 2014, 03:35 PM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491880 <![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491879
]]>
gekinwired24 Mar 05, 2014, 03:32 PM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491879
<![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491877

.jqueryslidemenu {
    background: none repeat scroll 0 0 #7CCCBF;
    font: bold 12px Verdana;
    text-align: center;
    width: 100%;
}
.jqueryslidemenu ul li {
    display: inline-block;
    position: relative;
}
]]>
paulp Mar 05, 2014, 03:20 PM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491877
<![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491874 http://www.capecoraleyecenter.com/duplicate-of-home1.html

The blue block across the top is where the new banner will be. And the menu will be centered under it. Or least that's the goal.

Thanks for your help! Seriously]]>
gekinwired24 Mar 05, 2014, 03:16 PM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491874
<![CDATA[Re: Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491869
Also theres no need for display inline and float left on .jqueryslidemenu ul li]]>
paulp Mar 05, 2014, 02:46 PM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491869
<![CDATA[Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491868
I am pretty new to the whole MODX scene and just took over my companies website that was origianlly built on MODX platform.

I've changed the menu to something that I like better but for some reason it keeps staying to the left of the page under the banner no matter what I do to it.

Any ideas? All help is very much appreciated since I am trying to learn all this stuff.

Here is the CSS:
.jqueryslidemenu{
font: bold 12px Verdana;
background: #414141;
width: 100%;
}

.jqueryslidemenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}

/*Top level list items*/
.jqueryslidemenu ul li{
position: relative;
display: inline;
float: left;
}

/*Top level menu link items style*/
.jqueryslidemenu ul li a{
display: block;
background: #414141; /*background of tabs (default state)*/
color: white;
padding: 8px 10px;
border-right: 1px solid #778;
color: #2d2b2b;
text-decoration: none;
}

* html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}

.jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{
color: white;
}

.jqueryslidemenu ul li a:hover{
background: black; /*tab link background during hover state*/
color: white;
}
	
/*1st sub level menu*/
.jqueryslidemenu ul li ul{
position: absolute;
left: 0;
display: block;
visibility: hidden;
}

/*Sub level menu list items (undo style from Top level List Items)*/
.jqueryslidemenu ul li ul li{
display: list-item;
float: none;
}

/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.jqueryslidemenu ul li ul li ul{
top: 0;
}

/* Sub level menu links style */
.jqueryslidemenu ul li ul li a{
font: normal 13px Verdana;
width: 160px; /*width of sub menus*/
padding: 5px;
margin: 0;
border-top-width: 0;
border-bottom: 1px solid gray;
}

.jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/
background: #eff9ff;
color: black;
}

/* ######### CSS classes applied to down and right arrow images  ######### */

.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}

.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}
]]>
gekinwired24 Mar 05, 2014, 02:39 PM https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-491868