Web Weather > Custom Website Templates
Fly-out menu in Saratoga template [Resolved]
(1/1)
Vasco:
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."
saratogaWX:
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: ---/* 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;
}
--- End code ---
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: ---border-width:1px 1px 1px 1px;
--- End code ---
to see the effect.
You could try using
--- Code: ---border-width:0.5px 1px 0.5px 1px;
--- End code ---
instead to see if that is more pleasing to your eye.
Vasco:
--- Quote from: saratogaWX on April 15, 2023, 04:43:58 PM ---There is no associated XML schema needed for those functions, so none was generated with the initial release back in 18-Mar-2008.
--- End quote ---
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.
--- End quote ---
OK. I've tried the options and I think I'll leave it as it is ;)
Many thanks.
Navigation
[0] Message Index
Go to full version