Thousands of verified Experts are ready to answer your specific questions 24/7.
Satisfaction is guaranteed and you pay your Expert only if you are satisfied.
Just type your detailed question and click "Get an Answer."
In minutes you'll get a response from an Expert. You can always ask follow-up questions.
Happy with your answer? Just click "Accept" to pay your Expert.
Hello. I have searched the Joomla help forum and asked on the forum, to no avail. My problem seems simple enough...but I'm really having difficulty getting someone to answer with a solution that works. Not their fault..I know they are volunteering their help, but my issue persists.The problem: I simply need to make submenu items a different color than the main menu item listings, so they're easier for visitors to notice. (For several reaons, we aren't going with flyout-type menus.)I've uploaded an illustration of what I need:http://scdt.files.wordpress.com/2010/04/menuscreen1.pngI am using Joomla 1.5.11 with the JS Education template. Demo can be found here:http://www.joomlashack.com/download-free-joomla-templates/317-js-education-templateI just need to know A) which file to edit, and B) what code to use. Thank you in advance for any guidance!
Hi there,I'd love to take a look at this but that demo doesn't appear to be the same as what you have in your screenshot. Is the site available somewhere that I can see it?Let me know.Best Regards,Brandon
Hi Brandon, and thanks for your timely reply.You're right -- the template has changed considerably since I downloaded it. I'm happy to give you the site location:http://www.south-central.orgI've received several responses on the forums, but none have worked. I hope you'll see something they couldn't. Many thanks for trying!XXXXX XXXXX
Thanks for the link. I think I found a way. What color would you like the submenu items to be? Darker or lighter?
I was thinking #740000 - the same red as the main menu heading text. And possibly even bolded.Or maybe black...not sure! I'd like to be able to experiment.For your convenience, here is the code from my template's menu.css file in Joomla:/* @group SUCKERFISH */#navbar { height: 32px; padding: 0px 0px 0px 0px; margin: 0; position: relative; z-index: 900; float: none; width: 100%; font: 14px "Lucida Grande", Lucida, Verdana, sans-serif;}#navbar ul { float: left; list-style: none; padding: 0; margin: 0; margin-left: 2px;}#navbar ul li { position: relative; margin: 0;}/*PARENT MENU*/#navbar a { float: left; color: #ffffff; text-decoration: none; display: block; cursor: pointer; height: 32px; line-height: 32px; padding: 0px 15px;}/*PARENT MENU ITEM HOVER*/#navbar li a:hover { background:#333;}#navbar ul li:hover,#navbar ul li.sfhover { /*background: url(../images/menu_over.png) no-repeat left top;*/}/*ALL LISTS*/#navbar li { float: left; padding: 0; border-bottom: 1px solid #94876B; /*background: url(../images/menu_normal.png) no-repeat left top;*/}#navbar ul li { margin-right: 1px; border-right: 1px solid #94876B;}#navbar ul li ul li { margin-right: 0px; border-right: 0px solid #94876B;}#navbar li:hover ul, #navbar li li:hover ul, #navbar li li li:hover ul, #navbar li li li li:hover ul,#navbar li.sfhover ul, #navbar li li.sfhover ul, #navbar li li li.sfhover ul,#navbar li li li li.sfhover ul { background: #740000;/* url(../images/menu_gradient.png) repeat-x left top;*/}/*DEFINE HOVER COLORS*/#navbar li:hover a, #navbar li.sfhover a { color: #fff;}#navbar ul li ul li a:link,#navbar ul li ul li a:visited { color: #fff;}#navbar ul li ul li a:hover,#navbar ul li.active ul li a:hover { color: #000; background:#bfb9a7;}/*SUBLEVEL STYLES*//*SUBLEVEL TEXT STYLES*/#navbar li li a { font-weight: bold; padding: 0; height: 26px; line-height: 26px; text-indent: 5px;color: black;}#navbar ul ul a { display: block; text-decoration: none; width: 170px; text-transform: none;}#navbar li li { padding: 0; background: none; /*DONT SHOW THE BACKGROUND IMAGE*/}/*SUBLEVEL POSITIONING*/#navbar li li { float: left; padding: 0; width: 173px;}#navbar li ul ul { margin: -29px 0 0 173px;}#navbar li:hover, #navbar li.sfhover { left: 0;}/*SUBLEVEL HOVER STYLES*/#navbar ul ul a:hover { background: none; height: 26px; line-height: 26px; padding: 0; margin: 0;}#navbar li ul { top: 32px; position: absolute; left: -999em; height: auto; width: 173px; font: 12px "Lucida Grande", Lucida, Verdana, sans-serif; font-weight: normal; border-width: 0; margin: 0; padding: 0; border-right: 1px solid #94876B; border-left: 1px solid #b6b08f; border-bottom: 1px solid #7c725a;}/* MAINLEVEL ACTIVE-A:LINK STYLE */#navbar li.active a:link,#navbar li.active a:visited,#navbar li.active ul.sfhover { background:#333; color: #fff;}/* SUBLEVEL ACTIVE-A:LINK STYLE */#navbar li.active ul li a:link,#navbar li.active ul li a:visited,#navbar li.active li { color: #fff000; background: #740000;}/* SUBLEVEL ACTIVE-A:LINK:HOVER STYLE */#navbar li.active li a:hover,#navbar li.active li.hover { /*color: #fff; background:#333;*/}/* SUBLEVEL LI BACKGROUND */#navbar li li:hover { background: #bfb9a7;}/*SUBLEVEL PARENT INDICATORS*/#navbar ul li ul li a.child,#navbar ul li ul li a.child:hover { background: url(../images/arrow_right.gif) 100% 50% no-repeat;}#navbar ul li.active ul li a.child { background: url(../images/arrow_right.gif) 100% 50% no-repeat;}#navbar ul li ul li a:hover { background-image: none;}/* HIDE OTHER LISTS FROM IE */#navbar li:hover ul ul, #navbar li:hover ul ul ul,#navbar li:hover ul ul ul ul, #navbar li.sfhover ul ul, #navbar li.sfhover ul ul ul, #navbar li.sfhover ul ul ul ul { left: -999em;}#navbar li:hover ul, #navbar li li:hover ul, #navbar li li li:hover ul, #navbar li li li li:hover ul,#navbar li.sfhover ul, #navbar li li.sfhover ul, #navbar li li li.sfhover ul,#navbar li li li li.sfhover ul { z-index: 100; left: 0;}/* BECAUSE IE DOESNT UNDERSTAND CSS EVEN IN 2007 */#navbar li.sfhover ul li.sfhover { background: #bfb9a7;}#navbar li:hover li:hover a.child,#navbar li.sfhover li.sfhover a.child { color: #fff;}/* @end */In case you wanted to look at the template_css.css code as well, here it is:/*JS EducationCopyright 2007 Joomlashack*//*--- editor body ---*/body.mceContentBody {background-color: #FFFFFF !important;background-image: none;}/* undohtml.css (CC) 2004 Tantek Celik. Some Rights Reserved.http://creativecommons.org/licenses/by/2.0This style sheet is licensed under a Creative Commons License.Purpose: undo some of the default styling of common (X)HTML browsers */body.contentpane {background:#fff; margin: 20px;}body.contentpane .contentheading {color:#900; font-size: 1.75em; line-height: 1.75em; font-weight: bold;}:link,:visited { text-decoration:none }ul,ol { }h1,h2,h3,h4,h5,h6,pre,code { font-size:1em; }ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input{ margin:0; padding:0 }.rightdes{text-indent:-5000px;text-decoration:none;}a img,:link img,:visited img { border:none }address { font-style:normal }a:focus {outline:0;}.designer {margin:14px 5px 0px 5px;color: #d6d6d6;text-align:right;}.designer a:link,.designer a:visited{color: #d6d6d6;font-size:0.8em;text-decoration:none;}.designer a:hover {color:#666;}/* $1 - Site Structure Styles ///////////////////////////////////////////////////////////////////////////////////*//* @group Basic Styles */html, body { height:100%; font-family:"Tahoma", Verdana, "Tahoma", Verdana, Arial, Helvetica, Sans-Serif; background-color: #fff;}a:focus { outline: 0;}#mainbody ul { padding-left: 20px;}p { margin: 0px 0px 10px 0px; color: #666; line-height: 145%;}td { color: #666;}ul, li { margin: 0; padding: 0;}img { border: none;}.clear { clear: both;}#main_content h1 { font: bold 2.5em/1.5em Helvetica, Arial, Verdana, serif; letter-spacing: -1px; color: #670001;}#main_content h2 { font: bold 2em/1.75em Arial, Verdana, serif; letter-spacing: -1px; color: #000;}#main_content h3 { font: bold 1.5em/1.75em Arial, Verdana, serif; letter-spacing: -1px; color: #2d3129;}#main_content h4 { font: bold 1.25em/1.5em Arial, Verdana, serif; letter-spacing: -1px; color: #2d3129;}ul#checklist li { list-style: none; line-height: 16px; padding: 2px 0px 2px 18px; background: url(../images/tick.png) no-repeat left center;}blockquote { background: #fffee4; color: #333; border: 1px solid #d5d5d5; padding: 10px; margin: 10px 50px;}/* @end */table.table-wrapper { height:100%; padding:0; background:#E8E3D4; border-bottom:7px solid #780000; }table.blog {width:100%;} /*1.5 bug fix*/#header { position:relative; height:144px; }#site-container { background:#fff url(http://south-central.noeca.net/templates/js_education/images/site-bg.jpg) repeat-x; }#container { width:780px; margin:0 auto; }#content-container { width:780px; padding-bottom:0px; font: 1em "Tahoma", Verdana, "Tahoma", Verdana, Arial, Helvetica, Sans-Serif; color:#4A4537;}#leftcol {width:21%;padding:0 2%;}#maincol { width:25%; padding:0 2%; background:url(http://south-central.noeca.net/templates/js_education/images/border-line.gif) 0px 40px no-repeat; }#rightcol { width:42%; padding:0 2%; background:url(../images/border-line.gif) 0px 40px no-repeat; }#left_sidebar { width:180px; padding:15px;line-height:1.5; background: #E8E3D4 url(../images/border-line_left.gif) repeat-y left;}#left_sidebar h3, #right_sidebar h3 { padding: 5px; margin: 0; background: url(../images/lower-content-bg.gif) repeat-x; margin: -5px -5px 5px -5px; font-weight: bold; height: 27px; line-height: 18px; text-indent: 5px;}#main_content { padding:5px 10px; }#right_sidebar { width:180px; padding:5px;line-height:1.5; background: #E8E3D4 url(../images/border-line_right.gif) repeat-y right; }#lower-content { background: url(../images/lower-content-bg.gif) repeat-x; padding-bottom:20px; }.lower-content-container { width:780px; margin:0 auto; font:1em "Tahoma", Verdana, Arial, Helvetica, Sans-Serif; line-height:1.5; background:url(../images/border-line.gif) 100% 40px no-repeat; }.footer { text-align:center; margin-top:-23px;}/* $2 - Header Styles */.header-logo { height:87px; padding-top:24px; }.header-logo h1 a { color: #FFF; padding:0; margin: 0; font: 38px/38px Georgia, "Georgia"; text-decoration: none;}.header-logo h2 { color: #8C0000; font: 20px/20px Georgia, "Times New Roman", Times, serif; padding:0; margin: 0;}#header-functions { position:absolute; top:20px; right:0; width:250px; }p.date { padding-left:5px; font:bold .75em "Tahoma", Verdana, Arial, Helvetica, Sans-Serif; color:white; letter-spacing:1px; margin:0 0 6px 0; }.moduletable-search { padding-left:5px; }.search-search input { float:left; border:none; }.search-search input { height:19px; width:199px; padding:0 3px; margin-right:2px; background:url(../images/search-bg.gif) no-repeat; }.search-search input.button-search { height:19px; width:30px; padding:0; background:url(../images/button-search-bg.gif) no-repeat; font:bold 1em "Tahoma", Verdana, Arial, Helvetica, Sans-Serif; color:white; cursor:pointer; }/* $3 - Content Styles */a,a:link,a:visited { color:#740000; }a:hover { text-decoration:underline; }/*Content Links*/#content-container td.contentheading, #content-container .contentheading { color:#780000; text-align: left; text-decoration:none; font: normal 1.5em/1.5em "Trebuchet MS", Geneva, sans-serif; padding: 0; border-bottom: 1px solid #ccc;}#content-container a.contentpagetitle:link,#content-container a.contentpagetitle:visited { color:#780000; text-align: left; text-decoration:none; font: normal 1.0em/1.5em "Trebuchet MS", Geneva, sans-serif;}#content-container a.contentpagetitle:hover {color:#000;text-decoration:none;}#content-container .componentheading {color:#780000;font:bold 1.07em/1.5em Arial, Helvetica, sans-serif; border-bottom: 1px solid #ccc;}#content-container div.sitemap h2.componentheading { color :#780000; text-align : left; text-decoration :none; font : normal 1.5em/1.5em "Trebuchet MS", Geneva, sans-serif; padding : 0; border-bottom : 1px solid #ccc;} h1,h2,h3,h4,h5,h6 { color:#740000; font-family:"Tahoma", Verdana, Arial, Helvetica, Sans-Serif; }.lower-content-container h3 { height:35px; line-height:31px; font-size:13px; }div#content-container ul, div#content-container ol, #lower-content ul, #lower-content ol { margin-left: 20px; }div#content-container ul, #lower-content ul { margin-left:0px; list-style:none; }img { border:none; }.lower-content-container .moduletable { padding:0 0 15px 0; margin-bottom:15px; background:url(../images/border-hz.gif) 0% 100% no-repeat; }.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden;}.clearfix {display:inline-block;}/* Hides from IE-mac \*/* html .clearfix {height: 1%;}.clearfix {display: block;}/* End hide from IE-mac *//* Left Column Menu Flat List */#left_sidebar ul { font: normal normal 12px "Lucida Grande", Lucida, Verdana, sans-serif; list-style:none; margin:0; padding:0;}#left_sidebar li { list-style:none; margin:0; padding:0;}#left_sidebar li a { height: 16px; display: block; padding: 2px 0px 2px 5px; margin-bottom: 1px; color: #fff; text-decoration: none; border: none; background: url(../images/mainlevel.png) repeat-x 0 0;}#left_sidebar li a:hover { background: url(../images/mainlevel.png) repeat-x 0 -20px;}#left_sidebar li.latestnews a,#left_sidebar li.mostread a{display:inline;padding:0; margin-bottom:0; color:#000; background:none;}#left_sidebar a.latestnews:hover,#left_sidebar a.mostread:hover {background:none;text-decoration:underline;}/* @end *//* $4 Header Nav Styles *//*--- forms styles ---*/form { padding: 0; margin: 0;}input.button { color: #740000; padding: 4px; margin: 10px; font-size: 10px; background: url(../images/but_bg.png) repeat-x center center; border:1px solid #ccc;}div.message { color: #cd2800; font-size: 18px; font-weight: bold;}.inputbox { border: 1px solid #999;}.moduletable .inputbox { border: 1px solid #999; height: 14px; font: 11px Arial, Helvetica, Geneva, sans-serif; color: #333;}/*-- default Joomla styles --*/.article_seperator { }.back_button { }.blog { }.blog_more { }.blogsection { }.button {background: #666 url(../images/mainlevel.png) repeat-x left center;border: 1px solid #000;color: #fff;font-size: 11px;line-height: 16px;}.buttonheading { }.category { }.clr {clear:both;}.componentheading { }.contact_email { }.content_rating { }.content_vote { }.contentdescription { }.contentheading { }.contentpagetitle { }.contentpane { }.contentpaneopen { } .contenttoc { }.createdate {margin:5px;color: #bbb;font-size: 10px;}.fase4rdf { }.frontpageheader { }.highlight {background-color:#FFFFCD;color:#000000;}.latestnews { }.message { }.modifydate {margin:5px;color: #bbb;font-size: 10px;}.module { }div.moduletable {margin-bottom: 20px;} div.mosimage {border: 1px solid #eaeaea;margin: 7px;}div.mosimage_caption {padding: 2px;background-color: #f7f7f7;border-top: 1px solid #eee;}.mostread { }.newsfeed { }.newsfeeddate {margin:5px;color: #bbb;font-size: 10px;}.newsfeedheading { }.pagenav { }.pagenav_next { }.pagenav_prev { }.pagenavbar { }.pagenavcounter { }.pathway { }.polls { }table.pollstableborder {text-align:left;}table.pollstableborder tr {padding: 2px 0;}table.pollstableborder td {padding: 0 2px;}a.readon {color: #740000;display: block;float: right;line-height: 12px;background: url(../images/readon.gif) no-repeat left center;text-indent: 16px;text-decoration: underline;}a.readon:hover {color: #600;display: block;float: right;line-height: 12px;background: url(../images/readon.gif) no-repeat left center;text-indent: 16px;text-decoration: none;}#left_sidebar a.readon {color: #740000;display: block;float: right;line-height: 12px;background: url(../images/readon_side.gif) no-repeat left center;text-indent: 16px;text-decoration: underline;}#left_sidebar a.readon:hover {color: #600;display: block;float: right;line-height: 12px;background: url(../images/readon_side.gif) no-repeat left center;text-indent: 16px;text-decoration: none;}#right_sidebar a.readon {color: #740000;display: block;float: right;line-height: 12px;background: url(../images/readon_side.gif) no-repeat left center;text-indent: 16px;text-decoration: underline;}#right_sidebar a.readon:hover {color: #600;display: block;float: right;line-height: 12px;background: url(../images/readon_side.gif) no-repeat left center;text-indent: 16px;text-decoration: none;}.search { }.searchintro { }td.sectiontableentry1 {padding: 4px;}td.sectiontableentry2 {background: #f2f2f2;padding: 4px;}td.sectiontableheader {background: #d8d8d8;color: #333;font-weight: bold;padding: 4px;}.sitetitle { }.small {margin:5px;color: #bbb;font-size: 10px;}.smalldark {margin:5px;color: #994;font-size: 10px;}.syndicate { }.syndicate_text { }.toclink { }.weblinks { }.wrapper { } Looking forward to hearing your idea! Have a good Thursday.Linda
You didn't need to paste them, I can see them from the page but thank you. All you need to do is add this piece to your template_css.css file:#left_sidebar li ul a { height: 16px; display: block; padding: 2px 0px 2px 5px; margin-bottom: 1px; color: #fff; text-decoration: none; border: none; background: url(../images/mainlevel.png) repeat-x 0 -20px;}#left_sidebar li ul a:hover { background: url(../images/mainlevel.png) repeat-x 0 0;}All I did was reverse the background image that was already there but this should get you started. Just remove the background image and use colors if you wish to do that instead. It works from here so it should work for you as well. I tested it on a few pages.Just so you know, all I did was take the existing CSS codes for the menu items and added a ul. All submenu items are <ul>'s under the <li> of the menu item. I hope that makes sense.Let me know how it goes!Best Regards,Brandon
Excellent, Brandon! We are almost there.I hadn't thought about reversing the background images. That does help. I also went in and added "bold" to the code. It looks better, but it's not *quite* there yet. I still need different colored text on the submenu items, but I'm not CSS-savvy enough to figure out how to get it. I've tried and failed at several attempts since receiving your mail.Any suggestions on how to change the COLOR of the text? If I can get that fixed, we can call this done!Many thanks,Linda
Just change the color value. it's currently #fff which is white. You can add the color line under the second section which will change the color when you hover over it. Change those and let me know how it goes.Best Regards,Brandon
Ha...Now why couldn't all the Joomla forum experts tell me something as simple as this? Thank you so much, Brandon. You solved a problem I've been wrestling with for weeks.Now ONE more question and I promise I will accept your answer and leave you alone.In your response, you said "...add the color line under the second section which will change the color when you hover..." Exactly where is this second section, and what exactly is the syntax of the "color line?"I know. I'm ignorant. But I'm learning! Thank you.
Don't worry about bothering me. I enjoy HTML/CSS questions.The second section as in this section that you pasted:#left_sidebar li ul a:hover {so change it to look like this:#left_sidebar li ul a:hover { background: url(../images/mainlevel.png) repeat-x 0 0;color: #fff;}The color line can take any HTML color value. The color value has been shortened from #ffffff to #fff. Check out this HTML color table for some generic colors:http://www.visibone.com/color/chart_847.gifHope this helps! Let me know if you need anything else.Best Regards,Brandon
Web Designer
Web Design for 10 years, HTML, XML, PHP/MySQL, Perl, JavaScript, CSS
That's the ticket -- thank you, Brandon! If I can submit a testimonial for you (providing my clicking "Accept Answer" doesn't allow me to do it), let me know. You've taught me a great deal over the last 24 hours.Best,LindaPS - I think I might have arrived at something I like, with your help. Check out the site and click on, say, the Elementary School link. http://www.south-central.org
I took a look at the site. The colors look great. You should be given the option to leave me feedback.If you wish to request me in the future, you may bookmark my profile and ask me a question from there. It will request me specificially.http://www.justanswer.com/profile.aspx?PF=12024030&FID=53Glad to hear it's working. Have a great evening!Best Regards,Brandon