Warning: CSS show stopper
All,
Just had an issue that was driving me up the wall. Basically, i had been making lots of code changes to quite a few modules and had been merrily working my way thro some enhancements. all of a sudden, when selecting anything on a DropDown list, the behaviour off all DropDowns were displaying erratic behaviour. Basically it seemed to perform the postback as the dropdown was invoked, rather than when selected. after pulling my hair out for over an hour, i decided to try it with a different theme selected (manually setting the default in the <pages theme in the web.config file as i couldn't select it in the app as it wouldn't work). lo and behold, it worked fine. this led me up a different track and decided to look at the recent default.css changes that i'd made in my preferred scheme. turns out, the only major addition i'd made that day, was the additon of a new class in the css file:
.highlight {text-decoration:none; font-weight:bold; color:black; background:yellow;}
so, i decided to remove this entry and try again. bl**dy h*ll, the problem was gone and all worked fine. i then renamed this class to .highlightsrc and tried again and it still worked as it should do.
so, basically, the essence of this tale is to beware tracking down bugs in code that could be attributed to 'non-code' related issue such as css definitions.
this is also an advance warning to anyone planning to allow users to define their own css files that once you do, then the control of what's added to that file is out of your hands and any possible error reports will be well and truly out of your hands.
i urge everyone to try the above example just so that i know that it isn't just me that this happens with (i tried it on 2 different machines with the same result)
anyway - older and definately wiser!!
jim
|