[TYPO3-core] RFC: 8561 Checkboxes and labels are aligned badly if in one line

Uschi Renziehausen typo3news at otherone.de
Sat May 31 20:33:59 CEST 2008


Steffen Kamper wrote:
> "Martin Kutschker" <martin.kutschker-n0spam at no5pam-blackbox.net> schrieb im 
> Newsbeitrag 
> news:mailman.1.1212251743.27247.typo3-team-core at lists.netfielders.de...
>> Uschi Renziehausen schrieb:
>>> Benjamin Mack wrote:
>>>> Hey Uschi,
>>>>
>>>> you're using selectors - what about IE6?
>>> Well, it was not exactly me who introduced the attribute selector, but i 
>>> think it is a good idea, because this way you do not need to clutter up 
>>> your code with class="checkbox" for the good browsers. For IE6 this class 
>>> is necessary, but it is not (always) set.
>> This can be easily done by a "behaviours". I could write one that adds the 
>> type of each input element as additional class. There is only one 
>> drawback: IE6 ignores the *complete* rule when it encounters an attribute 
>> selector. So this won't work:
>>
>> input[type="checkbox"], input.checkbox {...}
>>
>> You have either to duplicate the rule or to use DOM manipulation for all 
>> browsers.
>>
>> Masi
> 
> We have a js-file for IE only, where it would be easy to apply a specific 
> css-class or an inline-rule for IE6 only,
> may be this is the most easy way and doesn't "pollute" the core with 
> IE6-stuff :-)
> 

If we use behaviours for IE 6 we could get rid of class="radio" 
class="checkbox" and the rest and just use attribute selectors. I must 
say I do like that idea.

Uschi
> vg Steffen 
> 
> 


More information about the TYPO3-team-core mailing list