Sandaysoft

Support forum for Cumulus weather station software
It is currently Thu Jun 20, 2013 7:36 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: My navigation bar
PostPosted: Sun Jan 22, 2012 2:09 am 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
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.

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Mon Jan 23, 2012 4:51 am 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
so no one will help me? okay then

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Mon Jan 23, 2012 5:14 am 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
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.

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Mon Jan 23, 2012 10:02 am 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
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

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Mon Jan 23, 2012 11:11 am 
Offline
User avatar

Joined: Wed Apr 08, 2009 12:38 pm
Posts: 514
Location: Weeley, Essex, UK
Weather Station: La-Crosse WS2300 Serial (Wired)
Operating System: Win XP Pro SP3 & Win 7
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! :)

_________________
Jason Duncombe
La-Crosse WS2300 (Wired & Serial) - Cumulus V1.9.3
Check out the Weather Blog

Image

Image


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Mon Jan 23, 2012 5:39 pm 
Offline

Joined: Fri Dec 09, 2011 5:16 pm
Posts: 61
Location: East TN, USA
Weather Station: LaCrosse 2315
Operating System: Windows XP SP3
Try some of there googled for you

https://www.google.com/#hl=en&sugexp=ep ... 24&bih=615


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Mon Jan 30, 2012 1:36 am 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
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.

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Mon Jan 30, 2012 2:00 am 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
ok i got it thats fine

#nav li a.current {
background-image:url(../images/nav-hover.jpg);
font-weight:bold;
}

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Fri Feb 10, 2012 11:15 am 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
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;
}

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Fri Feb 10, 2012 11:37 am 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
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"?

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Fri Feb 10, 2012 12:19 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1888
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
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:
/* 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 !


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Fri Feb 10, 2012 12:26 pm 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
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:
/* 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

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
 Post subject: Re: My navigation bar
PostPosted: Fri Feb 10, 2012 12:51 pm 
Offline

Joined: Sun Jun 13, 2010 12:35 am
Posts: 384
Location: Ballina Australia
Weather Station: Davis vantage vue
Operating System: windows 7
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?

_________________
Antonio

Visit my website - http://www.ncstormchasers.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group