CSS problem in IE: IE reserves an empty line in ul list where item is hidden. Also, how to add padding in ddl?
Posted on 2011-05-11
Two issues... the first is a ul list. I'm using that as a container for radio buttons. However, at some point I want to hide the first two radio buttons (ajax call) in the list, or unhide them. That works fine in firefox. In IE7 it seems to actually reserve the space for those empty items... that is, even though there is nothing there as those two radiobuttons are hidden, there are still two empty lines present where the radio buttons would be. In Firefox it just removes those empty lines. So, what's going on there and how to solve?
Second issue is adding padding or margins to a dropdownlist. I was able to add padding to a label by setting the css to display:inline-block. Doing the same with a dropdownlist though is not working for me?