Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.1 (build 3096) - 31 October 2020 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Advisory text misaligned

Discussion of the Weather34 web site template

Moderators: saratogaWX, weatherist34

Post Reply
User avatar
grwkak
Posts: 107
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Advisory text misaligned

Post by grwkak »

See attached - this happens when dewpoints are below freezing. Is this something to do with advisory.php or elsewhere (cascading style sheet?).
advisory.JPG
Guy
You do not have the required permissions to view the files attached to this post.

User avatar
grwkak
Posts: 107
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Re: Advisory text misaligned

Post by grwkak »

Any suggestions on fixing this? My knowledge of css etc is limited!!

Guy

User avatar
saratogaWX
Posts: 1038
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Advisory text misaligned

Post by saratogaWX »

Sorry I missed this posting earlier....

It would really help to have the URL to the CU-HWS site that shows the problem in order to debug. Screen captures do show a problem, but the actual site has to be viewed to do debugging.

User avatar
grwkak
Posts: 107
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Re: Advisory text misaligned

Post by grwkak »

Thanks!

Here is the link - http://www.wilsonsweather.host-ed.me/CUtest/

The Dewpoint below freezing is not showing right now - that appears to be the only advisory that has this issue.

Guy

User avatar
saratogaWX
Posts: 1038
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Advisory text misaligned

Post by saratogaWX »

I'm not sure this will fix the issue, but there is one difference in css/main.dark.css you can change.

You currently have

Code: Select all

.orangealerticonheatindex {
    margin-top: -55px;
    margin-left: 140px;
    padding: 4px;
    line-height: 20px;
    position: relative
}
while the current prod release has

Code: Select all

.orangealerticonheatindex {
    margin-top: -35px;
    margin-left: 160px;
    padding: 4px;
    line-height: 20px;
    position: relative
}
Also, can you post a copy of advisory.php in your setup so I can take a look?

User avatar
saratogaWX
Posts: 1038
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Advisory text misaligned

Post by saratogaWX »

I found several issues with formatting in the advisory.php.

I've updated advisory.php and css/main.dark.css on the GitHub distribution.

Best regards,
Ken

User avatar
grwkak
Posts: 107
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Re: Advisory text misaligned

Post by grwkak »

Let me try those.

The .orangealerticonheatindex difference - that was me tinkering to see what altered the positioning of the text. Only the ! icon was affected - but in the right direction.
Quickly realized I had no idea what was what!!

Guy

User avatar
grwkak
Posts: 107
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Re: Advisory text misaligned

Post by grwkak »

Issue fixed - dewpoint below freezing looks good!

Thanks!

Guy

Post Reply