Dear experts,

As a variation on the underscore hack, I would dearly love to use the following variation:

#tester{
     width : 500px;

     [/*ie only*/width: 610px;]  or just  [width: 610px;]

     padding : 50px;
     border : 5px solid #ff0000;
}

or even:

------------------------------------------------------------------
#tester{
 padding : 50px;
 border : 5px solid #ff0000;
 width : 500px;
}

#tester {  [/*ie only*/ width: 602px; ]  }

---------------------------------------------------------------------

I find the square brackets to be neat, simple and it makes for readable and more 'understandable' code. It validates fine and there doesn't seem to be a problem. However, I do understand that, whereas the underscore is not reserved for future developments, other characters such as square brackets are actually considered by the W3C to be syntax errors at this time (even though, as I said, the markup validates). Now, I have also been told that the problem will occur when I start to parse XML - but when is that likely to be? (I have no plans/need to at this time). If It's going to be five years off, then IE5 and it's kin will be long gone and I can delete these IE only lines.

So, finally, my question: When do you reckon that using [ ] will be a problem and in what way, from a practical point of view?

Many thanks,

Bob McClelland
www.gwelanmor-internet.co.uk


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to