Opino como javierB, el problema debe estar en otro lado.
Igualmente, para acceder a los valores de estilos definidos sin el atributo style hay un camino sencillo, que consiste en obtener los estilos computados: 
Código:
 function t(id){return document.getElementById(id);} 
function css(id,prop){
    if(window.getComputedStyle){
        return document.defaultView.getComputedStyle(t(id),null).getPropertyValue(prop);
    }else{
        var re = /(-([a-z]){1})/g;
        if (prop == 'float') prop = 'styleFloat';
        if (re.test(prop)) {
            prop = prop.replace(re, function () {
                return arguments[2].toUpperCase();
            });
        }
        return t(id).currentStyle[prop] ? t(id).currentStyle[prop] : null;
    }
}