- From: <ve3ll@cogeco.ca>
- Date: Fri, 29 Aug 2008 11:56:03 -0400
- To: www-amaya@w3.org
in some cases line returns change the rendering of elements even when they should not ... the following example shows differences in spacing of the tabs for a menu. this is caused when formfeeds are/are not placed before end of element tag! // demo file follows <?xml version="1.1" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head><title>Cryptology Terminology</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css"> body {background:#fdf5e6;color:#000;text-align:center; margin:0px;border:0px;padding:0px} div {margin:0px;border:0px;padding:0px} #main {background:#fefefe;width:710px;height:450px;text-align:left; margin:auto;padding:0px 25px 5px} .dmenu {margin-left:13%;clear:both} /* adjust to position menubar */ #dmenu, #dmenu ul {margin:0px;padding:0px;list-style:none} #dmenu a, #dmenu a:visited {color:#000;display:block;width:100px; background:#ffdead;height:20px;line-height:19px; text-decoration:none;text-indent:5px;font-size:12px; border:1px solid #000;border-width:0 1px 1px 1px} #dmenu a:hover {text-decoration:none;background:#ff8080;color:#707070} #dmenu li {float:left;position:relative;padding:0px} #dmenu li:hover > a{background:#ff8080;color:#707070} #dmenu li ul {display:none} #dmenu li:hover > ul {display:block;position:absolute;top:0;left:100px} #dmenu > li:hover > ul {left:0;top:21px} </style></head> <body><div id="main"> <div class="dmenu"><ul id="dmenu"> <li><a href="cyhome.htm">Cryptology</a> </li> <li><a href="cypeople.htm">People</a> </li> <li><a href="cyprogs.htm">Programs</a></li> <li><a href="cyterms.htm">References</a></li> <li><a href="http://home.cogeco.ca/~ve3ll/">JR's Home</a></li> </ul><br class="dmenu"/></div> <div class="c"><hr id="bot"/> <a href="http://home.cogeco.ca/~ve3ll/home.htm">JR's Home Page</a> | <a href="mailto:VE3LL@COGECO.CA?Subject=[cyterms.htm]">Comments</a> | [cyterms.htm:2008 03 28]</div></div></body></html> -- -- John Russell, VE3LL@COGECO.CA http://home.cogeco.ca/~ve3ll http://home.cogeco.ca/~trains http://home.cogeco.ca/~cipher
Received on Friday, 29 August 2008 15:56:29 UTC