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

Validating CSS...error.

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Validating CSS...error.

Post by William Grimsley »

Hi Ken,

I have seem to crack the CSS errors this morning but I'm stuck on one.

This one:

Code: Select all

33	 .flyoutmenu li	 Value Error : margin only 0 can be a length. You must put a unit after your number : 1
The W3C CSS Validation Service Validator doesn't tell me what file is causing the error, but when I put the validated CSS code into the file with the possible error "weather-screen-blue-narrow.css"...my site pretty much disappeared...

Please help,

Thanks

William
water01
Posts: 3246
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Validating CSS...error.

Post by water01 »

You can't have many CSS files just look for one that has ".flyoutmenu li" at line 33.
David
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Validating CSS...error.

Post by steve »

It's not telling you which CSS file it's in, because it's not in a CSS file, it's inline in the page:

Code: Select all

/* style the list items */
.flyoutmenu li {
color: #336677;
background:white url(./ajax-images/flyout-shade-white.gif);
/* for IE7 */
float:left;
margin:1; /* mchallis added to tighten gaps between links */
}
You need to fix the margin line to supply a unit.
Steve
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Validating CSS...error.

Post by William Grimsley »

Hi David,

I have looked through every since .css file on my site at and around the line of 33 but there is nothing there.

Thanks

William
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Validating CSS...error.

Post by William Grimsley »

steve wrote:It's not telling you which CSS file it's in, because it's not in a CSS file, it's inline in the page:

Code: Select all

/* style the list items */
.flyoutmenu li {
color: #336677;
background:white url(./ajax-images/flyout-shade-white.gif);
/* for IE7 */
float:left;
margin:1; /* mchallis added to tighten gaps between links */
}
You need to fix the margin line to supply a unit.
Hi Steve,

Sorry, I've got a cold so my brain is having trouble trying to find that file! I know that code but what file is that?

Thanks

William
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Validating CSS...error.

Post by steve »

William Grimsley wrote:Sorry, I've got a cold so my brain is having trouble trying to find that file! I know that code but what file is that?
I've no idea, because the site is PHP rather than HTML, so I can't see the source files, and I have no idea how any of it works. I just did a 'view source' on the page.
Steve
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Validating CSS...error.

Post by William Grimsley »

Hi Steve,

All fixed now. I also did a view source on the same page and found it was the file "flyout-menu.php". I quickly found the line and changed:

Code: Select all

margin:1; /* mchallis added to tighten gaps between links */
To

Code: Select all

margin:0.5ex; /* mchallis added to tighten gaps between links */
Thanks for your help,

William
Post Reply