The correct answer to the question you ask in the Subject line is "No."
There is no CSS selector related to clicking.
a:hover a:active a:visited ?
"CSS-only navigation menus" ?
It has to be done only once.
Huh? This relates to clicking, right?
Yep: it means I don't care how to get the element back (again by CSS
means only, no scripting) after clicking.
<div>
<p>Some content</p>
<p><a href="#">Hide</a></p>
</div>
You do realize, don't you, that in HTML terms the link points to the start
of the current document, instead of being a no-op.
Moreover, I even know that these funny words in brackets are called
T-A-G's and you do stuff with them in ... that's the difficult one...
H-T-M-L
As you can see I'm rather well prepared, but still thank you for taking
your time to explain.
;-)
Anyway, I needed a warning in <noscriptuser could remove from the
screen but only after having read it. Obviously I needed CSS only means
as the situation presumes no script support. Not to say I do care too
much about such situations as they are not relevant to my target
auditory; yet I wanted to keep a solution in my folder (for
presentational purposes).
This is what I did (either disable your script support or remove
<noscripttags to see it):
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<style>
#noScript {
display: block;
position: absolute;
top: 20px;
left: 20px;
width: 40%;
margin: 0px 0px;
padding: 10px 10px;
border: medium solid red;
background-color: white;
color: black;
font: bolder 100% Verdana, Geneva, sans-serif;
line-height: 200%;
text-align: center;
text-decoration: none;
cursor: default;
}
#noScript: active {
display: none !important;
}
#noScript:visited {
display: none !important;
}
</style>
</head>
<body>
<h1>Lorem ipsum</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.</p>
<noscript
><a id="noScript" href="#"
<span>Client-side scripting is disabled.<br
Some extended features of this page will
be not available.</span><br
><span style="
color:blue;
text-decoration: underline;
cursor: pointer;"
>Dismiss this warning</span
</a
</noscript>
</body>
</html>