> I have a basic page that currently uses an Iframe to display the main
> content and several menu options which load the Iframe with new content.
>
> Can this be achieved with CSS? Obviously I could set the visibility of DIVs
> on or off based on a Onclick event or something, but that would mean
> maintaining all the content in one page, which is not possible. What's the
> best way to convert this to CSS?

It is not the job of CSS to link different documents or define
behaviour. CSS is mainly there to define how something defined by
XML/HTML looks.
There is no such thing as an onclick event in CSS (there is :active
and :hover and :focus, but those cannot fire off a function or reach
anything outside the element they are applied to (yes, you could use
the + selector to reach the next element, but that aside))

What you are looking for is either a server side solution
(PHP,JSP,Cold Fusion,ASP.NET,ASP,ModPerl...) or JavaScript, whereas
the latter is not really a foolproof option as it may be turned off.

http://www.wait-till-i.com/index.php?p=136

--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to