On 11/30/10 4:00 PM, Michael McGinnis wrote:
Using Javascript, clicking on a span either shows or hides a div. But I want
to make the span disappear after I click on it. I see that I can style
span:hover and span:active, but not span:visited, since it's not actually a
link. But is there a counterpart or workaround? Or would this be done using
Javascript rather than CSS?

That's hard to answer without seeing some code and a better idea of what you are trying to do. But CSS does give you a number of options for showing and hiding content. You can shift stuff that's inside an element with "overflow: hidden;" on it, for example. Look into the :target pseudo-element as well--available on most browsers, and also in IE 6-8 with Dean Edwards's ie9.js -

<http://ie7-js.googlecode.com/svn/test/index.html>

Cordially,
David
--
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to