Author Topic: Fly-out menu in Saratoga template [Resolved]  (Read 730 times)

0 Members and 1 Guest are viewing this topic.

Offline Vasco

  • Forecaster
  • *****
  • Posts: 342
    • PWS
Fly-out menu in Saratoga template [Resolved]
« on: April 15, 2023, 01:59:26 PM »
Why is there no top border to the subsidiary fly-out menus?

P.S. tried validating my flyout-menu.xml and got:

"Schema Error: XML document with no namespace; cannot determine any schema to use for validation."
« Last Edit: April 15, 2023, 05:05:52 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9287
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Fly-out menu in Saratoga template
« Reply #1 on: April 15, 2023, 04:43:58 PM »
The flyout-menu.xml is a bare-bones XML format (just enough to ensure that xml_parser_create() and the xml_parse() functions can establish the menu heirarchy).  There is no associated XML schema needed for those functions, so none was generated with the initial release back in 18-Mar-2008.

As for the missing top line around the first entry, that's likely a CSS change from the original author's HTML/CSS menu script that was originally used (with permission) as the prototype for the structure of the generated CSS/HTML.  http://www.cssplay.co.uk/menus/flyout_4level.html

The CSS in question is in flyout-menu.php
Code: [Select]
/* style the links */
.flyoutmenu a, .flyoutmenu a:visited {
display:block;
text-decoration:none;
line-height: 1.8em;
width:95px; /* mchallis changed for adjusting firefox link width */
color:{$LC};
padding: 0 2px 0 5px;
border:1px solid {$BC};
border-width:0 1px 1px 1px;
}
the border-width: 0 1px 1px 1px directive causes the top border to not show.  it was done that way to prevent a 2px border between entries from showing (which looked kinda clunky).  Change it to
Code: [Select]
border-width:1px 1px 1px 1px; to see the effect.

You could try using
Code: [Select]
border-width:0.5px 1px 0.5px 1px; instead to see if that is more pleasing to your eye.

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Vasco

  • Forecaster
  • *****
  • Posts: 342
    • PWS
Re: Fly-out menu in Saratoga template
« Reply #2 on: April 15, 2023, 05:05:25 PM »
There is no associated XML schema needed for those functions, so none was generated with the initial release back in 18-Mar-2008.

Thanks, Ken, it's obviously not important. The notes at the top of flyout-menu.xml invite you to validate the xml, so I tried. . .  :-)

Quote
As for the missing top line around the first entry, that's likely a CSS change from the original author's HTML/CSS menu script that was originally used (with permission) as the prototype for the structure of the generated CSS/HTML. 

OK. I've tried the options and I think I'll leave it as it is  ;)

Many thanks.
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

 

anything