If I use inline
Code: Select all
style="width: 100%"I thought styles (regardless of origin: inline, style or external) would basically override the same founding property for that element and thus when you requested the value:
Code: Select all
document.getElementById('test').style.widthWhat am I doing wrong here or is this the way it works? Is there anyway I can access external CSS properties short of parsing the CSS file?