Scripsit C.W.Holeman II:
Jukka K. Korpela wrote:
>Scripsit C.W.Holeman II:
>>I what to hide an input element and the following text.
What?
An introduction with specific details shown below it.
What I wondered wasn't so much the details or the meaning of "what", which
is probably "want", but rather _why_ you would do such things. I can make
some guesses, but the idea of hiding the dummy preselected alternative -
which is probably what you are trying to achieve - is questionable. When
it's hidden, a normal user has no way of restoring the setting to that
default, except by destroying the entire input data by using an eventual
destroy button (aka. "reset button").
>>I have the selector for the input working
No you don't. It contains several constructs not supported by IE 6,
I forgot to include:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3)
Gecko/20070309 Firefox/2.0.0.3
Windows Internet Explorer Version: 7.0.5730.11
No you didn't. You forgot to check the topic of this group, which is CSS
authoring for the World Wide Web. Your personal choice of browser(s) is
ridiculously unimportant in this context. (The "ridiculously" part comes
from listing down the browsers down to the build of a variant of a minor
version.)
>which is still the most common browser.
I am not near the point of considering how that will effect what I am
doing.
Perhaps not much if you are not authoring for the WWW, but why did you post
to this group then and even claiming that something works when it clearly
doesn't in the majority of cases on the WWW?
>Wrap the text inside an element and develop a suitable selector.
I am hoping to not have to add that.
That's wrong hope. You should use label markup anyway. When you add it, it
should be rather trivial to add the markup you need for styling.
>><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
That's pointless.
From http://www.w3.org/TR/xhtml1/ Section 3.1.1.
XHTML 1.0 is pointless on the WWW, and XHTML 1.0 Transitional even more so.
Besides, you are not actually complying with the DTD given, so what's the
point?
>You don't comply with the XHTML 1.0 specification, or any HTML
specification.
I created a fragment to make it as easy as possible for readers to
follow my question.
How would invalid markup help then?
And you should have posted a URL.
The sample I am using is just a fragment.
That's one of your problems. You threw just a fragment of your problem at
us, and one that isn't even a real extract from the real page. So you should
expect to get, at most, fragments of answers.
Thank you for the reference
to <fieldsetwhich I did not know about.
It's a basic element in HTML 4.01 forms.
Is the <fieldsetelement
some how needed or related to the issue of hiding the "0"?
Maybe. Would that matter?
><div class="dummy"><label><input type="radio" name="numerator"
value="0" checked="checked"/>0</label></div>
Then you can simply use
.dummy { visibility: hidden; }
Yes, that works. If that is the only solution I will use it
With the given incomplete information, it pretty much is.
but I
would like to not have to create an name like "dummy" to tie the XSL
content to the CSS file.
Well, make it "huuhaa" then.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/