Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Location bar, menu bar at full screen

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
sbuckler
Posts: 35
Joined: Thu 27 Dec 2012 4:10 pm
Weather Station: Davis vantage Pro2 Plus
Operating System: Win 7
Location: Cape Cod, MA USA
Contact:

Location bar, menu bar at full screen

Post by sbuckler »

Just started using Cumulus and the steel gauges. Very nice look. I have everything working but I would like to tweak a couple of things and I have no idea how to do it. I was able to customize the appearance of cumulus by editing the css. How do I alter the my location bar, heading and menu bar at the bottom to stay centered regardless of how the browser screen is sized? Ideally, I would like it to be the size of my background image at all times. Looked around the site and could not find an answer.

My site: http://www.harwichweather.com

Screenshot examples below.

Stan
You do not have the required permissions to view the files attached to this post.
Image
User avatar
mcrossley
Posts: 12778
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Location bar, menu bar at full screen

Post by mcrossley »

Its because you have them in <div>'s with a class="content", the weather.css needs the div's to have an id="content"
sbuckler
Posts: 35
Joined: Thu 27 Dec 2012 4:10 pm
Weather Station: Davis vantage Pro2 Plus
Operating System: Win 7
Location: Cape Cod, MA USA
Contact:

Re: Location bar, menu bar at full screen

Post by sbuckler »

Okay, forgive the html newbiness, but I did not edit anything in the Cumulus css other than text and background colors. Are you saying I need to change "class" to "id" ?

Thanks for the quick reply.
Image
User avatar
mcrossley
Posts: 12778
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Location bar, menu bar at full screen

Post by mcrossley »

Yes, that should do it.
sbuckler
Posts: 35
Joined: Thu 27 Dec 2012 4:10 pm
Weather Station: Davis vantage Pro2 Plus
Operating System: Win 7
Location: Cape Cod, MA USA
Contact:

Re: Location bar, menu bar at full screen

Post by sbuckler »

And I edit the gauges-ssT.htm? Sorry for the required handholding. This all very new to me.
Image
User avatar
mcrossley
Posts: 12778
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Location bar, menu bar at full screen

Post by mcrossley »

Actually, looking at this I think I have cocked things up a bit. :oops:

A better course of action would be to edit "gauges-ss.css" and add the following section...

Code: Select all

.content {
	padding-right: 10%;
	padding-left: 10%;
	margin-right: 15%;
	margin-left: 15%;
}
I changed the div to a 'class' on the gauge-ss page because there is more than one 'content' div, and it is bad practice to have two elements or more with the same ID. But the default weatherstyle.css only has css code for the id='content' not a class name of content. As this is specific to the gauges page, best to make the amendment to the gauges css file.
sbuckler
Posts: 35
Joined: Thu 27 Dec 2012 4:10 pm
Weather Station: Davis vantage Pro2 Plus
Operating System: Win 7
Location: Cape Cod, MA USA
Contact:

Re: Location bar, menu bar at full screen

Post by sbuckler »

Works great, thank you and Happy New Year!
Image
Post Reply