Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

My navigation bar

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

My navigation bar

Post by pacificblue03 »

Hello just a simple Question really

On my website here http://www.ballinanswweather.com/

How can i make it that in my navigation bar the current page that you are on is highlighted in the appropriate tab in the navbar?

Antonio.
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: My navigation bar

Post by pacificblue03 »

so no one will help me? okay then
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: My navigation bar

Post by GraemeT »

It's not that no one will help you Antonio.
It's just that half the world's asleep and the other half is out working.... :D

Why would you want to highlight the current menu item when the visitor should already know what page he's on?

Seriously, it's done with CSS.

I think you'll find what you're after if you check out Jacques 'sunnyweather templates' available here: http://meteoduquebec.com/dl_eng.php

Examine his menus and css and you'll be right.
Cheers,
Graeme.
User avatar
robynfali
Posts: 1076
Joined: Sat 31 Jul 2010 10:34 pm
Weather Station: Vantage Vue
Operating System: Windows XP
Location: Anglesey, North Wales, UK
Contact:

Re: My navigation bar

Post by robynfali »

And maybe a little patience too, expecting an answer within 2hrs of posting, on a board that provides support for a free weather program, not website help?

Life is too short to go rushing around, take things a little easier
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: My navigation bar

Post by 6719jason »

Agreed Steve!

Last time I check the world did not revolve around Antonio and his website!!

Not sure about anyone else but I enjoy my Sundays, especially if I can spend them with my girlfriend so I try to do things other than Web Design on a Sunday :|

If in doubt, Google! There is endless forums and websites on Web Design who can normally put you on the right track.

We'll all help as and when we can but please understand this... Bad Manners, Demands and self pity will do anyone no favours.

Have a good day everyone! :)
RobertY
Posts: 61
Joined: Fri 09 Dec 2011 5:16 pm
Weather Station: LaCrosse 2315
Operating System: Windows XP SP3
Location: East TN, USA
Contact:

Re: My navigation bar

Post by RobertY »

pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: My navigation bar

Post by pacificblue03 »

so i wanted to use this

.currentab
{
background-image:(the image);
}

in the html i put

<a href="#" class="currentab">home</a>


and my tab wont highlight

i am lost. i have tried many others too this is why came here.
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: My navigation bar

Post by pacificblue03 »

ok i got it thats fine

#nav li a.current {
background-image:url(../images/nav-hover.jpg);
font-weight:bold;
}
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: My navigation bar

Post by pacificblue03 »

Hello i have run into a little doozy, i have added a background image to the navigation bar that i made and its working good, but how do i change it so that my dropdown or submenu items do not share this background? i would like it to be just a simple dark grey and it keeps using my image, the css is below. Excuse my notes :) SITE:http://www.ballinanswweather.com/

______________________________________

@charset "utf-8";


#navMenu {
margin:0;
padding:0;
/* the padding and margin 0 removes the default padding */
}

#navMenu ul {
margin:0;
padding:0;
line-height:40px; /* how high we want the text to be */
/* the padding and margin 0 removes the default padding */
}

/* this is how we want the list to appear */
#navMenu li {
margin:0;
padding:0;
list-style:none;
float:left;
position:relative;
background:#999;
background-image:url(../images/nav-normal.jpg);

}

/* this is where we style what the navbar links look like on the main menu part */
#navMenu ul li a {
text-align:center;
font-family:"Comic Sans MS", cursive;
font-size:14px;
text-decoration:none;
height:40px;
width:140px;
display:block; /* for navbar to look like a navbar */
color:#FFF; /* color of the link text */
/*border:1px solid #FFF;*/ /* this adds a border on the outside of the links NOTE the positioning of the hover will be off!!! fix by adding how many pixels you used for the border into the ul ul 2 times the amount eg. if 1 px use 2px */
text-shadow: 1px 1px 1px #000;
}

/* this makes the dropdown hover effect work for a ul inside a ul */
#navMenu ul ul {
position:absolute;
visibility:hidden; /* hides the submenu links */
top:40px; /* same height as the links, this is also where we adjust the border pixels used for the ul li a */
height:20px;
}

/* this is used to bring back the hidden submenu items */
#navMenu ul li:hover ul {
visibility:visible; /* this is used to show the submenu when hovered over */

}

/**************************************************************************************************************************/

/* this adds style to the main horizontal menu */
#navMenu li:hover {
background:#09f;
}

/* this changes the hover effect of the submenu items and will enable the top items to stay another color */
#navMenu ul li:hover ul li a:hover {
background:#ccc;
color:#000;

}

/* changes the hover text color of the main menu on the top and then when you go down the submenu it changes back to the color of the normal hover */
#navMenu a:hover {
color:#000;
}

.clearFloat {
clear:both; /* clears the left and the right */
margin:0;
padding:0;
}
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: My navigation bar

Post by pacificblue03 »

the only thing that i can make work is

#navMenu li.subs {
margin:0;
padding:0;
list-style:none;
float:left;
position:relative;
background:#000;

then <li class="subs" > that seems to work but is that the "proper way"?
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: My navigation bar

Post by beteljuice »

I've haven't got a clue which bits of your css menu handle which :lol:

But your 'problem' is inheritance.

So - if I'm guessing correctly about the section of css for the sub menu drop-down, all you need to do is turn the background image 'off':

Code: Select all

/* this is used to bring back the hidden submenu items */
#navMenu ul li:hover ul {
visibility:visible; /* this is used to show the submenu when hovered over */
background-image: none;
}
Image
......................Imagine, what you will KNOW tomorrow !
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: My navigation bar

Post by pacificblue03 »

beteljuice wrote:I've haven't got a clue which bits of your css menu handle which :lol:

But your 'problem' is inheritance.

So - if I'm guessing correctly about the section of css for the sub menu drop-down, all you need to do is turn the background image 'off':

Code: Select all

/* this is used to bring back the hidden submenu items */
#navMenu ul li:hover ul {
visibility:visible; /* this is used to show the submenu when hovered over */
background-image: none;
}
Sorry BJ i just tried that and when i did the background image still showed up, when i apply the new class that i made the "subs" one it does work
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: My navigation bar

Post by pacificblue03 »

okay well i decided to use the li class = subs code cause it seems to work, now you see how when you use a dropdown the submenu is as high as the top menus eg- box height, how do i make the height smaller and also keep to top links formatting?

then in the submenu where in my css can i apply text align left?
Post Reply