|  | Posted by David Dorward on 06/05/05 22:05 
Gavin wrote:
 > I have the code below in my html page:
 >
 > <div id=menu>
 > <a onclick="P7_swapClass(1,'sub1','sectionon','sectionoff','div')"
 > href="javascript:;">
 
 Why is this an anchor?
 
 Why doesn't the href point to anything useful?
 
 > On
 >             Air...</a> </font>
 
 You have a </font>, but no <font> (not that you should be using the font
 element anyway - it *is* 2005 now).
 
 You should probably pay a visit to http://validator.w3.org/
 
 > 1</a> <a hre
 
 Nothing between anchors except white space, this isn't a good idea. The
 links will tend to blur into each other and be difficult to tell apart.
 
 Since you appear to have a list of links, why doesn't your markup reflect
 that? http://css.maxdesign.com.au/listamatic/
 
 
 >     font-family: Verdana;
 
 The trouble with Verdana is that it encourages authors to use very small
 fonts. This wouldn't be too bad if you could be certain that every visitor
 will have Verdana installed (its more readable then most fonts at very
 small sizes), but you can't.
 
 >     font-size: 18pt;
 
 Browsers are not very good at knowing the correct DPI of the system, so the
 point unit is highly inappropriate for use on screen. It also causes
 additional problems in Internet Explorer since that browser provides no
 convenient way to resize text specified in points.
 
 http://css-discuss.incutio.com/?page=UsingPoints
 
 > #menu a:link, #menu a:active, #menu a:visited, #menu a {
 >  color: #000000;
 
 It isn't a very good idea to set visited and unvisited links to be the same
 colour - you remove a very useful visual clue from the user by doing so.
 
 >  font-size: 11px;
 
 11px is very small (see my previous point about Verdana), and also suffers
 from the resizing issue in MSIE.
 
 http://css-discuss.incutio.com/?page=UsingPixels
 
 > I have a CSS file saying what the menu tags should be formated like, but
 > when the new drop down menu appears it doesn't display any text or links?
 
 Since you have failed to provide a complete set of code to recreate this
 problem, its rather difficult to tell. Try providing a URL to a live
 example (URLs are much between then a bunch of files since whomever decides
 to help would have to recreate your files, which takes time - and they
 aren't being paid to help you).
 
 I'd suggest you fix any machine detectable syntax errors though. (Some good
 reasons for that can be found at
 http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you )
 
 --
 David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
 Home is where the ~/.bashrc is
  Navigation: [Reply to this message] |