> Although a hack, doesn't IE allow you to put conditional
statement
> comments in css?
Yup, ...but it's a particularly ugly and wordy
hack, so I'd personally hesitate to use it for a non-essential purpose in a
default stylesheet. Here's roughly what it would look like...
input { border:1px solid black;
}
, if applied only to text and
password controls, would end up reading:
/* for CSS3 (NN, FF, Moz):
*/
input[type="text"], input[type="password"]
{
border:1px solid black;
}
/* for IE 5.0+:
*/
input {
border:
expression(this.type=="text"? '1px solid
black':
this.type=="password"? '1px solid
black':
'default');
}
Add properties for each of the four borders
separately (to get that nice 3D effect), and you'd start to see some serious
bloat.
By comparison, targeting a single, added class
for both text and password fields would look something like
this:
input.textfield { border:1px solid
black; }
> for the moment, I'd rather not have to use classes for each of
> the different form widgets - it'll never ever get applied to
every
> single thing - the buttons are bad enough, but it makes you
have to
> stop and think.
If you're questioning whether it would get
applied to every single thing in the current version, all I can say is
that my work here would be very, very thorough. :-) Do you mean
that you don't want to have one more thing to remember when you're writing a
new template or updating/adding code once I'm done with those
revisions?
The reason I ask -- and the reason I'm in
favor of adding those classes in there -- is that they would add
functionality (a greater ability to customize) without affecting any
existing function or aesthetics; and because fixing CSS bugs (like
the form-widget height/alignment bug Alfred mentioned earlier today) or
adding future CSS functionality (like the possibility of including more than one
template to choose from in future releases) would be severely limited, if not
impossible, without being able to "hook into" and style those different
<input> types individually.
My question isn't rhetorical; I'm genuinely
interested in your thoughts on this.
> I'd rather accept the consequences of the current
>
stylings, or take out the css that's causing it - whichever the
>
majority thinks is best - I'm leaning towards accepting the
>
consequences, as IE 7 is coming out soon :)
Well, if these are the only options to
choose from, ...I'd actually lean the other way. [Gee, isn't having a new
developer fun? ;-) ] My reason for that preference is one of usability over
aesthetics.
Here's a screenshot of the current IE/Win radio
buttons :
The first problem is that some less-worldly visitors may not realize that
they are buttons. After all, they don't look like "the regular" (read:
browser default) buttons, and they sure don't look like "those fancy" (read:
beveled-edge, Photoshop-created) ones either.
The second problem is that even when someone understands what they are and
what they do, their surrounding borders distract visually, making it a little
more difficult to tell at a glance which one is checked. (This is a difficult
thing to show you, seeing as you most likely have perfect vision and
definitely know what you're looking for, ...but by taking a few steps away from
you monitor, glancing away, and then quickly glancing back, you might get a
better idea of what I mean here.)
...Of course, this is just one man's opinion. I look forward to everyone
else's thoughts!
And while we're on the topic of CSS functionality: I was also thinking
about adding a couple of extra id's to the templates: id="Breadcrumbs" was the main one,
although id="RSSlinks" might be
a possibility too. This isn't because anything in either the current breadcrumbs
or RSS/Atom links need changing (that I can see, anyhow!) but simply so that
designers could more easily customize those page elements without
digging into the .tmpl files themselves.
Any objections to this? And if not: Any other page elements I haven't
thought of? (...No, I won't be adding that sort of CSS hook to the non-Pro-Dada
footer, thankyouverymuch. Anything else?)
Post:
mailto:dadadev@PROTECTED
Unsubscribe:
http://mojo.skazat.com/cgi-bin/dada/mail.cgi/u/dadadev/
List Information:
http://mojo.skazat.com/cgi-bin/dada/mail.cgi/list/dadadev
Archive:
http://mojo.skazat.com/cgi-bin/dada/mail.cgi/archive/dadadev