Hi Chris,

On Mar 6, 2007, at 12:35 AM, Chris Chen wrote:

> Is there a recommended way to do in-frame navigation with CSS 
> (replacement for <frameset>)?

Navigation isn't a concern of CSS, which has to do with presentation.  
But you knew that already :-)... Questions I would have, given that you 
are looking for an alternative to <frameset>: (1) what about the 
problem recommends <frameset> as a solution in the first place? (not a 
skeptical question here, just askin'...)  And (2), have you considered 
<iframe>s?

Do you have a demo we could look at?

>  Currently I am implementing that by toggling <div>s between "display: 
> block" and "display: none". Two annoying things are:
>
> (1) This looks like an ugly hack to me. Objection?

It sounds like probably it is an ugly hack :-)... but again, it would 
help to see a demo.

> (2) Ideally the menu list should be done with <a>s that handle the 
> navigation automatically for me. However, in my case since I have to 
> manually toggle the display visibility of various <div>s, there seems 
> to be no way but resorting to scripting to do that. This looks like 
> double-ugly to me, and kinda defeats the purpose of <a>'s. Maybe this 
> is a legitimate case not to use <a>s for menu list?

It probably isn't that.  Even if you do have to resort to some kind of 
monkey-business behind the scenes to get the behavior you need, that 
still does not change the semantics of a link, which is "clickable 
thing that loads content" (or appears to load content).  If you didn't 
use <a>, it would have to be some other clickable thing: a form control 
or image map, which would probably make your document semantically more 
obscure.

cheers,
—ml—
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to