Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Re: CSS Not Working Please Help
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Re: CSS Not Working Please Help
#40443
Re: CSS Not Working Please Help 11 Years ago Karma: 0
Hi,

I must admit I am new to Joomla, but I am a fairly fast learner with experience in other coding.

I have added the module successfully, but I need for the menu to be centered, and for it to be black. I have added the CSS code found below in the "CSS Styles" section of the backend panel for the module. However, I have applied/saved and I have even cleaned my cache but the CSS does not seem to be working? Do I need to modify the code, if so to what?

Code:

div.menu {
width: 100%;
height: 44px;
background: #000;
text-align: center;
position: relative;
z-index: 2;
}
div.menu ul {
width: 970px;    
margin: 0 auto;
}
#mainmenu li {  
float: left;
display: block;
height: auto;
position: relative;
border-right: 1px solid #404040;
}
#mainmenu li a {
display: block;
height: 44px;
color: #fff;
padding: 0 20px;
text-align: center;
text-decoration: none;
font: normal 12px/44px Verdana, Arial, sans-serif;
}
#mainmenu li#current a,
#mainmenu li a:hover,
#mainmenu li.parent:hover a,
#mainmenu li.parent.active a {
text-decoration: none;
background: url(../images/menu_item_active_bg.png) repeat-x 0 0;
}    
#mainmenu li ul {
display: none;
position: absolute;
top: 44px;
left: -4px;
width: 196px;
margin: 0;
background: url(../images/submenu_bg.png) repeat-y center;
}
#mainmenu li:hover ul {
display: block;
}
#mainmenu li ul li {
margin-left: 4px;
height: 36px;
padding: 0;
border-right: none;
border-bottom: 1px solid #cfd4d8;
}
#mainmenu li ul li a {
color: #57adf0;
width: 170px;
height: 36px;
line-height: 36px;
padding: 0 9px;
text-align: left;
}
#mainmenu li:hover ul li a,
#mainmenu li.parent:hover ul li a,
#mainmenu li.parent.active ul li a {
background: none;
}
#mainmenu li ul li:first-child a {
border-top: 1px solid #cfd4d8;
}
#mainmenu li ul li#current a,
#mainmenu li ul li a:hover,
#mainmenu li.parent.active ul li a:hover {
color: #fff;
background: #697177!important;
}



Any and all help is greatly appreciated! My website is at ipgrealestate.com, if you want to see what the menu is currently doing (nothing where it should be centered in the middle, and a black menu).

Thank You!

J. Greene
The administrator has disabled public write access.
 
#40450
Re: CSS Not Working Please Help 11 Years ago Karma: 748
Hello,

Add the following CSS rules to centered the menu:

.ux-menu-container
{
text-align: center;
}

.ux-menu-container .ux-menu
{
display: inline-block;
}

Menu background color can be set in module settings.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#40520
Re: CSS Not Working Please Help 11 Years ago Karma: 0
Hello

The problem was solved! It is a conflict when the GK Use Cache is enabled on the Gavick template gk news. When this function desabilutar ie the 9-met!
The administrator has disabled public write access.
 
Go to topPage: 1